/*
Theme Name: Custom Frontend to WordPress
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: A modern WordPress theme for the Custom Frontend to WordPress plugin landing page. Features a futuristic, non-scrollable design with ACF integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-frontend-wp
Tags: one-column, custom-colors, featured-images, custom-menu, threaded-comments

This theme requires Advanced Custom Fields (ACF) plugin for content editing.
*/

/* ===========================
   CSS VARIABLES & DESIGN SYSTEM
   =========================== */
:root {
  /* Colors - HSL values */
  --background: 240, 20%, 6%;
  --foreground: 210, 100%, 98%;
  --card: 240, 15%, 10%;
  --card-foreground: 210, 100%, 98%;
  --primary: 189, 94%, 55%;
  --primary-foreground: 240, 20%, 6%;
  --primary-glow: 189, 94%, 65%;
  --secondary: 270, 80%, 60%;
  --secondary-foreground: 210, 100%, 98%;
  --secondary-glow: 270, 80%, 70%;
  --muted: 240, 10%, 20%;
  --muted-foreground: 210, 20%, 60%;
  --border: 240, 10%, 20%;
  --input: 240, 10%, 15%;
  --ring: 189, 94%, 55%;
  
  /* Shadows */
  --shadow-glow: 0 0 30px hsla(var(--primary), 0.3);
  --shadow-glow-secondary: 0 0 30px hsla(var(--secondary), 0.3);
  --shadow-card: 0 10px 40px hsla(240, 20%, 3%, 0.5);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   BASE STYLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, hsl(var(--background)), hsl(250, 25%, 10%), hsl(var(--background)));
  background-attachment: fixed;
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow: hidden;
}

/* ===========================
   GRID PATTERN BACKGROUND
   =========================== */
.grid-pattern {
  background-image: 
    linear-gradient(hsla(var(--primary), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--primary), 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.site-container {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.main-grid {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 3rem;
  }
  
  .hero-section {
    grid-column: span 7;
    grid-row: 1;
  }
  
  .how-to-use-section {
    grid-column: span 7;
    grid-row: 2;
  }
  
  .sidebar-section {
    grid-column: span 5;
    grid-row: 1 / 3;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }
}

/* ===========================
   DECORATIVE ELEMENTS
   =========================== */
.decorative-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}

.blob-primary {
  top: 5rem;
  right: 5rem;
  height: 16rem;
  width: 16rem;
  background: hsla(var(--primary), 0.05);
}

.blob-secondary {
  bottom: 5rem;
  left: 5rem;
  height: 24rem;
  width: 24rem;
  background: hsla(var(--secondary), 0.05);
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  animation: fadeIn 0.8s ease-out;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  margin-bottom: 1.5rem;
}

.status-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  animation: glowPulse 2s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 40rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.gradient-text {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: hsla(var(--card), 0.5);
  border: 1px solid hsla(var(--border), 0.5);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: hsla(var(--primary), 0.5);
}

.feature-card:nth-child(2):hover {
  border-color: hsla(var(--secondary), 0.5);
}

.feature-icon {
  padding: 0.5rem;
  border-radius: 0.375rem;
  background: hsla(var(--primary), 0.1);
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.feature-card:nth-child(2) .feature-icon {
  background: hsla(var(--secondary), 0.1);
}

.feature-card:nth-child(2) .feature-icon svg {
  color: hsl(var(--secondary));
}

.feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-description {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===========================
   HOW TO USE SECTION
   =========================== */
.how-to-use-section {
  position: relative;
  z-index: 1;
  animation: fadeInDelayed 0.8s ease-out 0.4s both;
  margin-bottom: 2rem;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 42rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: hsla(var(--card), 0.3);
  border: 1px solid hsla(var(--border), 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.step-item:hover {
  border-color: hsla(var(--primary), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px hsla(240, 20%, 3%, 0.3);
}

.step-item:hover::before {
  opacity: 1;
}

.step-item:nth-child(2):hover {
  border-color: hsla(var(--secondary), 0.4);
}

.step-item:nth-child(2)::before {
  background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--primary)));
}

.step-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsla(var(--primary), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.step-item:nth-child(2) .step-icon {
  background: hsla(var(--secondary), 0.1);
}

.step-item:nth-child(3) .step-icon {
  background: hsla(var(--primary), 0.1);
}

.step-icon i {
  font-size: 1.25rem;
  color: hsl(var(--primary));
  transition: var(--transition-smooth);
}

.step-item:nth-child(2) .step-icon i {
  color: hsl(var(--secondary));
}

.step-item:hover .step-icon {
  background: hsla(var(--primary), 0.2);
  transform: scale(1.05);
}

.step-item:nth-child(2):hover .step-icon {
  background: hsla(var(--secondary), 0.2);
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item:nth-child(2) .step-number {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.step-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .steps-container {
    gap: 1.25rem;
  }
  
  .step-item {
    padding: 1.25rem;
  }
  
  .step-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .step-icon i {
    font-size: 1rem;
  }
}

/* ===========================
   TIMELINE SECTION
   =========================== */
.timeline-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInDelayed 0.8s ease-out 0.2s both;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 1rem;
  border-left: 2px solid hsla(var(--border), 0.5);
  transition: var(--transition-smooth);
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.timeline-item:hover {
  border-left-color: hsla(var(--primary), 0.5);
}

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 0;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: var(--shadow-glow);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.timeline-date {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-family: 'Courier New', monospace;
}

.timeline-status {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.status-upcoming {
  background: hsla(var(--primary), 0.1);
  color: hsl(var(--primary));
}

.status-planned {
  background: hsla(var(--muted), 0.5);
  color: hsl(var(--muted-foreground));
}

.timeline-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-description {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===========================
   BETA SIGNUP FORM
   =========================== */
.beta-signup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: fadeInDelayed 0.8s ease-out 0.2s both;
}

.beta-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: hsla(var(--card), 0.5);
  border: 1px solid hsla(var(--border), 0.5);
  backdrop-filter: blur(12px);
}

.beta-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.beta-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  background: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

.form-button {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-glow);
}

.form-button:hover {
  background: hsl(var(--primary-glow));
  transform: translateY(-2px);
}

.success-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: hsla(var(--primary), 0.1);
  border: 1px solid hsla(var(--primary), 0.2);
  margin-bottom: 1rem;
}

.success-message svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.success-text {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  font-weight: 500;
}

.beta-footer {
  padding-top: 1rem;
  border-top: 1px solid hsla(var(--border), 0.5);
}

.beta-features {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* full hd only */
@media (min-width: 1700px) and (max-width: 2400px) {
  .hero-title {
    font-size: 3.5rem;
    line-height: 1;
  }

  .step-item {
    padding: 0.25rem;
    background: transparent;
    border: none;
  }
}

/* mobile only */
@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .beta-signup {
    margin-top: 3rem;
  }

  .hero-section {
    margin-top: 0;
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.glow-primary {
  box-shadow: var(--shadow-glow);
}

.glow-secondary {
  box-shadow: var(--shadow-glow-secondary);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDelayed {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: var(--shadow-glow);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 15px hsla(var(--primary), 0.5);
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1023px) {
  .site-container {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  
  .main-grid {
    padding: 3rem 1.5rem;
  }
  
  .sidebar-section {
    gap: 3rem;
  }
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid hsla(var(--border), 0.3);
  background: hsla(var(--background), 0.5);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1640px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.footer-link {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: hsl(var(--primary-glow));
  text-shadow: 0 0 8px hsla(var(--primary), 0.5);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 1.5rem 1rem;
  }
  
  .footer-copyright {
    font-size: 0.75rem;
  }
}