@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* 1. CASCADE LAYERS SETUP */
@layer reset, base, theme, layout, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

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

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

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

  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul, ol {
    list-style: none;
  }
}

@layer base {
  :root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Design Tokens - Colors (Light / Dark Adaptive) */
    --color-brand-primary: #ff4d4f; /* NetKode Coral Red */
    --color-brand-primary-hover: #ff7875;
    --color-brand-secondary: #00f0ff; /* Electric Cyan */
    --color-brand-secondary-hover: #36cfc9;
    --color-brand-blue: #096dd9; /* Cisco blue style */
    
    /* Dynamic theme colors using light-dark() */
    --color-bg-base: light-dark(#ffffff, #060913);
    --color-bg-surface: light-dark(#f8fafc, #0d1222);
    --color-bg-surface-glass: light-dark(rgba(248, 250, 252, 0.75), rgba(13, 18, 34, 0.75));
    --color-border-subtle: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
    --color-border-card: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.12));
    
    --color-text-main: light-dark(#0f172a, #f1f5f9);
    --color-text-muted: light-dark(#64748b, #94a3b8);
    --color-text-inverse: light-dark(#ffffff, #090d16);
    
    --color-shadow-base: light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3));
    --color-shadow-hover: light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    transition: background-color var(--transition-medium), color var(--transition-medium);
    overflow-x: hidden;
  }
}

@layer theme {
  /* Configured for Light/Dark Mode via system default & toggle */
  :root {
    color-scheme: light dark;
  }
  
  html.light {
    color-scheme: light;
  }
  
  html.dark {
    color-scheme: dark;
  }
  
  /* Focus outlines */
  :focus-visible {
    outline: 2px solid var(--color-brand-primary);
    outline-offset: 4px;
  }
  
  /* Custom scrollbar */
  body::-webkit-scrollbar {
    width: 10px;
  }
  body::-webkit-scrollbar-track {
    background: var(--color-bg-base);
  }
  body::-webkit-scrollbar-thumb {
    background: var(--color-border-card);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-bg-base);
  }
  body::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
  }
}

@layer layout {
  .container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 5vw, 3rem);
  }

  .grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  section {
    padding-block: clamp(4rem, 8vw, 8rem);
  }
}

@layer components {
  /* GLASSMORPHISM CARD */
  .glass-card {
    background: var(--color-bg-surface-glass);
    border: 1px solid var(--color-border-card);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 var(--color-shadow-base);
    transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
  }
  
  .glass-card:hover {
    border-color: var(--color-brand-primary);
    box-shadow: 0 12px 40px 0 var(--color-shadow-hover);
    transform: translateY(-4px);
  }

  /* BUTTONS */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-align: center;
    user-select: none;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--color-brand-primary), #d82c2e);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(255, 77, 79, 0.4);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-brand-primary-hover), var(--color-brand-primary));
    box-shadow: 0 6px 20px 0 rgba(255, 77, 79, 0.5);
    transform: translateY(-1px);
  }

  .btn-secondary {
    background: var(--color-bg-surface);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-card);
  }

  .btn-secondary:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-base);
  }

  .btn-text {
    color: var(--color-brand-primary);
    padding-inline: 0;
    position: relative;
  }
  .btn-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-brand-primary);
    transition: width var(--transition-fast);
  }
  .btn-text:hover::after {
    width: 100%;
  }

  /* NAVBAR */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: light-dark(rgba(255, 255, 255, 0.8), rgba(6, 9, 19, 0.8));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    transition: background-color var(--transition-medium), border-color var(--transition-medium);
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
  }

  .logo {
    display: flex;
    align-items: center;
    height: 44px;
    color: var(--color-text-main);
  }
  
  .logo img {
    height: 100%;
    width: auto;
  }

  .nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
  }

  @media (min-width: 992px) {
    .nav-links {
      display: flex;
    }
  }

  .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding-block: 0.5rem;
  }

  .nav-link:hover, .nav-link.active {
    color: var(--color-text-main);
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-brand-primary);
    border-radius: var(--radius-full);
  }

  /* Theme Toggle Button */
  .theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-card);
    color: var(--color-text-main);
    transition: background-color var(--transition-fast);
  }
  
  .theme-toggle:hover {
    background-color: var(--color-border-subtle);
  }

  .theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .theme-toggle .sun-icon {
    display: none;
  }
  .theme-toggle .moon-icon {
    display: block;
  }

  html.dark .theme-toggle .sun-icon {
    display: block;
  }
  html.dark .theme-toggle .moon-icon {
    display: none;
  }

  /* HERO SECTION */
  .hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    overflow: hidden;
  }

  /* Mesh Gradient Animated Background */
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    opacity: 0.4;
    filter: blur(100px);
    pointer-events: none;
  }

  .hero-blob {
    position: absolute;
    border-radius: var(--radius-full);
    mix-blend-mode: screen;
    animation: floatBlob 20s infinite alternate;
  }

  .hero-blob-1 {
    top: -10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 77, 79, 0.3) 0%, rgba(255, 77, 79, 0) 70%);
  }

  .hero-blob-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(0, 240, 255, 0) 70%);
    animation-delay: -5s;
    animation-duration: 25s;
  }

  .hero-blob-3 {
    top: 30%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(9, 109, 217, 0.2) 0%, rgba(9, 109, 217, 0) 70%);
    animation-delay: -10s;
  }

  @keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.2); }
    100% { transform: translate(-30px, 30px) scale(0.9); }
  }

  .hero-tagline {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: light-dark(rgba(255, 77, 79, 0.1), rgba(255, 77, 79, 0.15));
    color: var(--color-brand-primary);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    text-wrap: balance;
  }

  .hero-title span {
    background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-wrap: pretty;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* AUTOMATION SIMULATOR CONSOLE */
  .console {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e6edf3;
    display: flex;
    flex-direction: column;
    height: 480px;
  }

  .console-header {
    background: #121824;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .console-dots {
    display: flex;
    gap: 6px;
  }

  .console-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
  }
  .console-dot.red { background: #ff5f56; }
  .console-dot.yellow { background: #ffbd2e; }
  .console-dot.green { background: #27c93f; }

  .console-title {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
  }

  .console-controls {
    display: flex;
    background: #0d131f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
  }

  .console-tab {
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    color: #8b949e;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
  }

  .console-tab:hover {
    color: #e6edf3;
    background: rgba(255, 255, 255, 0.02);
  }

  .console-tab.active {
    color: var(--color-brand-secondary);
    background: #090d16;
    border-bottom: 2px solid var(--color-brand-secondary);
  }

  .console-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .console-code-pane {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: #090d16;
    line-height: 1.5;
  }

  .console-output-pane {
    height: 150px;
    background: #06090f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    overflow-y: auto;
    color: #39d353;
  }

  .console-output-pane pre {
    white-space: pre-wrap;
    word-break: break-all;
  }

  .console-footer {
    background: #121824;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .console-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
  }

  .console-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b949e;
  }

  .console-status-dot.active {
    background: #39d353;
    box-shadow: 0 0 8px #39d353;
  }
  
  .console-status-dot.running {
    background: #ffbd2e;
    box-shadow: 0 0 8px #ffbd2e;
    animation: pulse 1s infinite alternate;
  }

  @keyframes pulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
  }

  .console-run-btn {
    background: var(--color-brand-primary);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
  }

  .console-run-btn:hover:not(:disabled) {
    background: var(--color-brand-primary-hover);
    transform: translateY(-1px);
  }

  .console-run-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* CODE HIGHLIGHTING IN CONSOLE */
  .keyword { color: #ff7b72; }
  .string { color: #a5d6ff; }
  .comment { color: #8b949e; font-style: italic; }
  .number { color: #79c0ff; }
  .class { color: #ffa657; }
  .tag { color: #7ee787; }

  /* PHILOSOPHY SECTION */
  .section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 4rem;
  }

  .section-subtitle {
    color: var(--color-brand-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    text-wrap: balance;
  }

  .philosophy-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: light-dark(rgba(255, 77, 79, 0.1), rgba(255, 77, 79, 0.15));
    color: var(--color-brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .philosophy-icon svg {
    width: 24px;
    height: 24px;
  }

  /* TECHNOLOGY SHOWCASE */
  .tech-showcase {
    background: var(--color-bg-surface);
    position: relative;
  }

  .tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .tech-card {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-sm);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
  }

  .tech-card:hover {
    border-color: var(--color-border-card);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow-base);
  }

  .tech-card img {
    height: 48px;
    margin-bottom: 1rem;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all var(--transition-fast);
  }

  .tech-card:hover img {
    filter: grayscale(0);
    opacity: 1;
  }

  .tech-card span {
    font-weight: 600;
    font-size: 0.95rem;
  }

  /* LIFECYCLE SERVICES (LCS) STEPPER */
  .lcs-stepper {
    margin-top: 3rem;
  }

  .lcs-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  @media (min-width: 992px) {
    .lcs-container {
      grid-template-columns: 1.2fr 1.8fr;
    }
  }

  .lcs-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .lcs-step-trigger {
    background: none;
    border: 1px solid var(--color-border-subtle);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--color-text-muted);
    transition: all var(--transition-medium);
  }

  .lcs-step-trigger:hover {
    border-color: var(--color-border-card);
    color: var(--color-text-main);
  }

  .lcs-step-trigger.active {
    background: var(--color-bg-surface);
    border-color: var(--color-brand-primary);
    color: var(--color-text-main);
    box-shadow: 0 4px 12px var(--color-shadow-base);
  }

  .lcs-step-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    background: var(--color-border-card);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition-medium);
  }

  .lcs-step-trigger.active .lcs-step-number {
    background: var(--color-brand-primary);
    color: #ffffff;
  }

  .lcs-step-title {
    font-weight: 600;
    font-size: 1.05rem;
  }

  .lcs-content-pane {
    display: none;
    animation: fadeIn var(--transition-medium);
  }

  .lcs-content-pane.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .lcs-content-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-card);
    border-radius: var(--radius-md);
    padding: 3rem;
    position: relative;
    overflow: hidden;
  }

  .lcs-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-brand-primary);
  }

  .lcs-pane-kicker {
    color: var(--color-brand-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: block;
  }

  .lcs-pane-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
  }

  .lcs-pane-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
  }

  .lcs-pane-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .lcs-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .lcs-bullet svg {
    width: 20px;
    height: 20px;
    color: #39d353;
    flex-shrink: 0;
    margin-top: 0.2rem;
  }

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

  /* USE CASES COMPARISON (Traditional vs NetKode) */
  .comparison {
    background: var(--color-bg-surface);
  }

  .comparison-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  @media (min-width: 992px) {
    .comparison-cols {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .comparison-card {
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-card);
  }

  .comparison-card.negative {
    background: light-dark(rgba(239, 68, 68, 0.02), rgba(239, 68, 68, 0.03));
    border-left: 4px solid #ef4444;
  }

  .comparison-card.positive {
    background: light-dark(rgba(16, 185, 129, 0.02), rgba(16, 185, 129, 0.03));
    border-left: 4px solid #10b981;
  }

  .comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .comparison-card.negative h3 { color: #ef4444; }
  .comparison-card.positive h3 { color: #10b981; }

  .comparison-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .comparison-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .comparison-item strong {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-main);
  }

  .comparison-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
  }

  /* CONTACT FORM */
  .contact-section {
    position: relative;
    overflow: hidden;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  @media (min-width: 992px) {
    .contact-grid {
      grid-template-columns: 1.2fr 1.8fr;
    }
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-info-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
  }

  .contact-info-desc {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-border-card);
    color: var(--color-brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .contact-detail-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-detail-text h4 {
    font-weight: 600;
    margin-bottom: 0.2rem;
  }

  .contact-detail-text p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
  }

  .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-card);
    background: var(--color-bg-base);
    color: var(--color-text-main);
    transition: all var(--transition-fast);
  }

  .form-control:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15);
  }

  /* Support for `:user-invalid` so it only highlights errors after typing and unfocusing */
  .form-control:user-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  }
  
  textarea.form-control {
    resize: vertical;
    min-height: 120px;
  }

  /* FOOTER */
  .footer {
    background: light-dark(#ffffff, #03060d);
    border-top: 1px solid var(--color-border-subtle);
    padding-block: 4rem 2rem;
    color: var(--color-text-muted);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }

  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: 2fr 1fr 1fr 1.2fr;
    }
  }

  .footer-logo-desc {
    max-width: 320px;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    height: 40px;
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
  }

  .footer-logo img {
    height: 100%;
  }

  .footer-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-col h4 {
    color: var(--color-text-main);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-link {
    font-size: 0.9rem;
    transition: color var(--transition-fast);
  }

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

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 2rem;
    font-size: 0.85rem;
  }

  @media (min-width: 768px) {
    .footer-bottom {
      flex-direction: row;
    }
  }

  .footer-legal-links {
    display: flex;
    gap: 1.5rem;
  }

  /* MOBILE NAVIGATION DRAWER */
  .menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    color: var(--color-text-main);
    z-index: 110;
  }

  .menu-btn span {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
  }

  @media (min-width: 992px) {
    .menu-btn {
      display: none;
    }
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg-base);
    z-index: 105;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-link {
    font-size: 1.5rem;
    font-weight: 700;
  }
}

@layer utilities {
  /* SCROLL REVEAL ANIMATIONS */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
  }

  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  .text-center { text-align: center; }
  .mb-1 { margin-bottom: 1rem; }
  .mb-2 { margin-bottom: 2rem; }
  .mt-2 { margin-top: 2rem; }
  .mr-1 { margin-right: 1rem; }
  
  .font-mono {
    font-family: var(--font-mono);
  }
}
