/* ==========================================================================
   YAVONIX - Manufacturing Analytics Platform
   Design Concept: Monochrome Plus (Slate Blue + Coral Accent)
   ========================================================================== */

@layer reset, tokens, layout, components, utilities;

/* ==========================================================================
   RESET LAYER
   ========================================================================== */

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    min-height: 100vh;
    line-height: 1.6;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  input, button, textarea, select {
    font: inherit;
  }

  button {
    cursor: pointer;
    border: none;
    background: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul, ol {
    list-style: none;
  }
}

/* ==========================================================================
   TOKENS LAYER
   ========================================================================== */

@layer tokens {
  :root {
    /* Monochrome Plus: Slate Blue Family + Coral Accent */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;

    /* Accent Color - Coral */
    --color-coral-400: #fb7185;
    --color-coral-500: #f43f5e;
    --color-coral-600: #e11d48;

    /* Semantic Colors */
    --color-bg-primary: var(--color-slate-50);
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: var(--color-slate-100);
    --color-bg-dark: var(--color-slate-900);
    --color-text-primary: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-600);
    --color-text-tertiary: var(--color-slate-500);
    --color-text-inverse: var(--color-slate-50);
    --color-accent: var(--color-coral-500);
    --color-accent-hover: var(--color-coral-600);
    --color-border: var(--color-slate-200);
    --color-border-light: var(--color-slate-100);

    /* Typography Scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-display: 'General Sans', var(--font-sans);

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius Scale */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadow System - Consistent Light Source (Top-Left) */
    --shadow-sm: 
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-md: 
      0 2px 4px rgba(15, 23, 42, 0.05),
      0 4px 8px rgba(15, 23, 42, 0.04),
      0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-lg: 
      0 4px 6px rgba(15, 23, 42, 0.05),
      0 10px 20px rgba(15, 23, 42, 0.08),
      0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-xl: 
      0 8px 12px rgba(15, 23, 42, 0.06),
      0 20px 40px rgba(15, 23, 42, 0.10),
      0 4px 8px rgba(15, 23, 42, 0.05);
    --shadow-2xl: 
      0 12px 24px rgba(15, 23, 42, 0.08),
      0 30px 60px rgba(15, 23, 42, 0.12),
      0 6px 12px rgba(15, 23, 42, 0.06);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 16px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1280px;
    --container-padding: var(--space-6);
  }

  @media (max-width: 768px) {
    :root {
      --container-padding: var(--space-4);
    }
  }
}

/* ==========================================================================
   LAYOUT LAYER
   ========================================================================== */

@layer layout {
  body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
  }

  .container-wide {
    max-width: 1440px;
  }

  .container-narrow {
    max-width: 920px;
  }

  main {
    flex: 1;
  }

  /* Section Spacing */
  .section {
    padding-block: var(--space-20);
  }

  .section-lg {
    padding-block: var(--space-32);
  }

  @media (max-width: 768px) {
    .section {
      padding-block: var(--space-16);
    }

    .section-lg {
      padding-block: var(--space-20);
    }
  }
}

/* ==========================================================================
   COMPONENTS LAYER
   ========================================================================== */

@layer components {

  /* ==========================================================================
     HEADER & NAVIGATION
     ========================================================================== */

  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-4);
    gap: var(--space-8);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-slate-900);
    transition: color var(--transition-fast);
  }

  .logo:hover {
    color: var(--color-accent);
  }

  .logo svg {
    width: 36px;
    height: 36px;
  }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }

  .nav-links {
    display: flex;
    gap: var(--space-8);
  }

  .nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
  }

  .nav-link:hover {
    color: var(--color-text-primary);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  /* Language Switcher */
  .lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-slate-100);
    border-radius: var(--radius-full);
  }

  .lang-btn {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-tertiary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
  }

  .lang-btn:hover {
    color: var(--color-text-primary);
  }

  .lang-btn.active {
    color: var(--color-slate-50);
    background: var(--color-slate-700);
  }

  .lang-divider {
    color: var(--color-slate-300);
    font-size: var(--text-sm);
  }

  /* Mobile Menu */
  .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    z-index: 1001;
  }

  .mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-slate-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-secondary);
    padding: var(--space-20) var(--space-6);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .nav-mobile.active {
    transform: translateX(0);
  }

  .nav-mobile .nav-links {
    flex-direction: column;
    gap: var(--space-4);
  }

  .nav-mobile .nav-link {
    font-size: var(--text-xl);
  }

  .nav-mobile .lang-switcher {
    margin-top: var(--space-8);
  }

  @media (max-width: 768px) {
    .nav-desktop {
      display: none;
    }

    .mobile-menu-toggle {
      display: flex;
    }

    .nav-mobile {
      display: block;
    }
  }

  /* ==========================================================================
     HERO SECTION
     ========================================================================== */

  .hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-slate-800) 0%, var(--color-slate-900) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
  }

  .hero-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    overflow: hidden;
    opacity: 0.08;
    pointer-events: none;
  }

  .hero-marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
  }

  .hero-marquee-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    color: var(--color-slate-50);
    padding-right: var(--space-16);
  }

  @keyframes marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .hero-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-2xl);
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-slate-100);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-slate-700);
    margin-bottom: var(--space-6);
  }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-slate-900);
    margin-bottom: var(--space-6);
  }

  .hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
  }

  .hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  .hero-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(15, 23, 42, 0.4) 100%);
  }

  @media (max-width: 968px) {
    .hero {
      min-height: auto;
      padding-block: var(--space-20);
    }

    .hero-grid {
      grid-template-columns: 1fr;
      gap: var(--space-12);
    }

    .hero-content {
      padding: var(--space-8);
    }

    .hero-visual {
      order: -1;
    }
  }

  /* ==========================================================================
     BUTTONS
     ========================================================================== */

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
  }

  .btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 
      0 2px 4px rgba(244, 63, 94, 0.2),
      0 4px 12px rgba(244, 63, 94, 0.15);
  }

  .btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 
      0 4px 8px rgba(244, 63, 94, 0.25),
      0 8px 20px rgba(244, 63, 94, 0.2);
  }

  .btn-secondary {
    background: var(--color-slate-700);
    color: var(--color-slate-50);
    box-shadow: var(--shadow-md);
  }

  .btn-secondary:hover {
    background: var(--color-slate-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .btn-outline {
    background: transparent;
    color: var(--color-slate-700);
    border: 2px solid var(--color-slate-300);
  }

  .btn-outline:hover {
    background: var(--color-slate-100);
    border-color: var(--color-slate-400);
  }

  .btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
  }

  /* ==========================================================================
     MARQUEE TICKER
     ========================================================================== */

  .ticker {
    background: var(--color-slate-800);
    padding-block: var(--space-6);
    overflow: hidden;
    position: relative;
  }

  .ticker::before,
  .ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
  }

  .ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--color-slate-800), transparent);
  }

  .ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--color-slate-800), transparent);
  }

  .ticker-track {
    display: flex;
    gap: var(--space-12);
    animation: ticker 30s linear infinite;
  }

  .ticker-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    white-space: nowrap;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-slate-100);
  }

  .ticker-item i {
    color: var(--color-accent);
  }

  @keyframes ticker {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* ==========================================================================
     WORKFLOW VISUALIZATION
     ========================================================================== */

  .workflow {
    background: var(--color-bg-secondary);
  }

  .section-header {
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: var(--space-16);
  }

  .section-subtitle {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-slate-900);
    margin-bottom: var(--space-4);
  }

  .section-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
  }

  .workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    position: relative;
  }

  .workflow-step {
    position: relative;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
  }

  .workflow-step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-slate-200), var(--color-slate-100));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
  }

  .workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

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

  .workflow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    box-shadow: 
      0 4px 8px rgba(244, 63, 94, 0.2),
      0 2px 4px rgba(244, 63, 94, 0.15);
  }

  .workflow-step h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: var(--space-3);
  }

  .workflow-step p {
    color: var(--color-text-secondary);
    line-height: 1.6;
  }

  /* ==========================================================================
     BENEFITS GRID
     ========================================================================== */

  .benefits {
    background: linear-gradient(135deg, var(--color-slate-50) 0%, var(--color-slate-100) 100%);
  }

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
  }

  .benefit-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
  }

  .benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
  }

  .benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-slate-100), var(--color-slate-50));
    color: var(--color-accent);
    font-size: var(--text-2xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
  }

  .benefit-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: var(--space-3);
  }

  .benefit-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
  }

  /* ==========================================================================
     FEATURES SECTION
     ========================================================================== */

  .features {
    background: var(--color-bg-secondary);
  }

  .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }

  .features-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  .features-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .features-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-slate-900);
    margin-bottom: var(--space-6);
  }

  .features-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }

  .feature-item {
    display: flex;
    gap: var(--space-4);
  }

  .feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-slate-100);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
  }

  .feature-text h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: var(--space-2);
  }

  .feature-text p {
    color: var(--color-text-secondary);
    line-height: 1.6;
  }

  @media (max-width: 968px) {
    .features-grid {
      grid-template-columns: 1fr;
      gap: var(--space-12);
    }

    .features-image {
      order: -1;
    }
  }

  /* ==========================================================================
     STATS SECTION
     ========================================================================== */

  .stats {
    background: var(--color-slate-900);
    color: var(--color-slate-50);
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    text-align: center;
  }

  .stat-item {
    position: relative;
  }

  .stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--color-slate-700);
  }

  .stat-item:last-child::after {
    display: none;
  }

  .stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
  }

  .stat-label {
    font-size: var(--text-lg);
    color: var(--color-slate-300);
  }

  @media (max-width: 768px) {
    .stat-item::after {
      display: none;
    }
  }

  /* ==========================================================================
     CTA SECTION
     ========================================================================== */

  .cta-section {
    background: linear-gradient(135deg, var(--color-slate-800) 0%, var(--color-slate-900) 100%);
    color: var(--color-slate-50);
    position: relative;
    overflow: hidden;
  }

  .cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
    border-radius: 50%;
  }

  .cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
  }

  .cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
  }

  .cta-content p {
    font-size: var(--text-lg);
    color: var(--color-slate-300);
    margin-bottom: var(--space-8);
    line-height: 1.7;
  }

  .cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ==========================================================================
     COURSES SECTION
     ========================================================================== */

  .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
  }

  .course-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
  }

  .course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
  }

  .course-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
  }

  .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
  }

  .course-card:hover .course-image img {
    transform: scale(1.05);
  }

  .course-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--color-accent);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
  }

  .course-content {
    padding: var(--space-8);
  }

  .course-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
  }

  .course-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .course-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: var(--space-3);
  }

  .course-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
  }

  .course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
  }

  .course-price {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-accent);
  }

  @media (max-width: 768px) {
    .courses-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ==========================================================================
     CONTACT FORM
     ========================================================================== */

  .contact-section {
    background: var(--color-bg-secondary);
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-slate-900);
    margin-bottom: var(--space-4);
  }

  .contact-info p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }

  .contact-detail {
    display: flex;
    gap: var(--space-4);
  }

  .contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-slate-100);
    color: var(--color-accent);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
  }

  .contact-detail-text h3 {
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: var(--space-1);
  }

  .contact-detail-text p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
  }

  .contact-form-wrapper {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
  }

  .form-group {
    margin-bottom: var(--space-6);
  }

  .form-label {
    display: block;
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: var(--space-2);
  }

  .form-input,
  .form-textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    transition: all var(--transition-fast);
  }

  .form-input:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
  }

  .form-textarea {
    min-height: 150px;
    resize: vertical;
  }

  .form-checkbox-group {
    display: flex;
    gap: var(--space-3);
    align-items: start;
  }

  .form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
  }

  .form-checkbox-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
  }

  .form-checkbox-label a {
    color: var(--color-accent);
    text-decoration: underline;
  }

  .map-container {
    margin-top: var(--space-16);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
  }

  .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  @media (max-width: 968px) {
    .contact-grid {
      grid-template-columns: 1fr;
      gap: var(--space-12);
    }

    .contact-form-wrapper {
      padding: var(--space-6);
    }
  }

  /* ==========================================================================
     THANK YOU PAGE
     ========================================================================== */

  .thanks-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-slate-50) 0%, var(--color-slate-100) 100%);
  }

  .thanks-content {
    max-width: 600px;
  }

  .thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--color-accent);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    margin-bottom: var(--space-8);
    box-shadow: 
      0 8px 16px rgba(244, 63, 94, 0.25),
      0 4px 8px rgba(244, 63, 94, 0.2);
  }

  .thanks-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-slate-900);
    margin-bottom: var(--space-4);
  }

  .thanks-content p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
  }

  /* ==========================================================================
     LEGAL PAGES
     ========================================================================== */

  .legal-section {
    background: var(--color-bg-secondary);
  }

  .legal-content {
    max-width: 900px;
    margin-inline: auto;
  }

  .legal-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-slate-900);
    margin-bottom: var(--space-4);
  }

  .legal-updated {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-12);
  }

  .legal-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-slate-900);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
  }

  .legal-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-slate-800);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
  }

  .legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
  }

  .legal-content ul,
  .legal-content ol {
    margin-left: var(--space-6);
    margin-bottom: var(--space-6);
  }

  .legal-content li {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-3);
    list-style: disc;
  }

  .legal-content ol li {
    list-style: decimal;
  }

  /* ==========================================================================
     FOOTER
     ========================================================================== */

  .footer {
    background: var(--color-slate-900);
    color: var(--color-slate-300);
    padding-block: var(--space-16);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-slate-50);
  }

  .footer-logo svg {
    width: 32px;
    height: 32px;
  }

  .footer-description {
    color: var(--color-slate-400);
    line-height: 1.7;
  }

  .footer-column h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-slate-50);
    margin-bottom: var(--space-4);
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer-link {
    color: var(--color-slate-400);
    transition: color var(--transition-fast);
  }

  .footer-link:hover {
    color: var(--color-accent);
  }

  .footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-slate-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
  }

  .footer-copyright {
    color: var(--color-slate-500);
    font-size: var(--text-sm);
  }

  .footer-legal {
    display: flex;
    gap: var(--space-6);
  }

  .footer-legal a {
    color: var(--color-slate-500);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
  }

  .footer-legal a:hover {
    color: var(--color-accent);
  }

  @media (max-width: 968px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: var(--space-8);
    }

    .footer-brand {
      grid-column: 1 / -1;
    }

    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }

    .footer-legal {
      flex-direction: column;
      gap: var(--space-3);
    }
  }

  /* ==========================================================================
     COOKIE CONSENT
     ========================================================================== */

  .cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-slate-900);
    color: var(--color-slate-100);
    padding: var(--space-6);
    box-shadow: var(--shadow-2xl);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-base);
  }

  .cookie-consent.show {
    transform: translateY(0);
  }

  .cookie-consent-container {
    max-width: var(--container-max);
    margin-inline: auto;
    display: flex;
    gap: var(--space-6);
    align-items: center;
    justify-content: space-between;
  }

  .cookie-consent-text {
    flex: 1;
    font-size: var(--text-sm);
    line-height: 1.6;
  }

  .cookie-consent-text a {
    color: var(--color-accent);
    text-decoration: underline;
  }

  .cookie-consent-buttons {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
  }

  .cookie-consent-btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
  }

  .cookie-consent-accept {
    background: var(--color-accent);
    color: white;
  }

  .cookie-consent-accept:hover {
    background: var(--color-accent-hover);
  }

  .cookie-consent-decline {
    background: var(--color-slate-700);
    color: var(--color-slate-100);
  }

  .cookie-consent-decline:hover {
    background: var(--color-slate-600);
  }

  @media (max-width: 768px) {
    .cookie-consent-container {
      flex-direction: column;
      align-items: stretch;
    }

    .cookie-consent-buttons {
      flex-direction: column;
    }

    .cookie-consent-btn {
      width: 100%;
    }
  }
}

/* ==========================================================================
   UTILITIES LAYER
   ========================================================================== */

@layer utilities {
  .text-center {
    text-align: center;
  }

  .text-gradient {
    background: linear-gradient(135deg, var(--color-slate-900), var(--color-slate-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}