:root{
  /* Match shared header tokens exactly so index renders the same as inner pages */
  --header-pad: 24px 40px;
  --logo-pad: 14px 36px;
  --logo-radius: 14px;
  --logo-img-h: 48px;
  --nav-gap: 40px;

  --gold-glow: rgba(235, 169, 55, 0.5);
  --scan-height: 1px;
  --scan-opacity: 0.15;
  --scan-animation: scanMove 8s linear infinite;
}

/* === ANIMATED BACKGROUND === */
    .bg-layer {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    .bg-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(235, 169, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(235, 169, 55, 0.04) 1px, transparent 1px);
      background-size: 80px 80px;
      mask-image: radial-gradient(ellipse 120% 80% at 50% 20%, black 10%, transparent 60%);
      animation: gridPulse 12s ease-in-out infinite;
    }

    .bg-glow {
      position: absolute;
      inset: -50%;
      background:
        radial-gradient(1000px 700px at 15% 10%, rgba(235,169,55,0.18), transparent 50%),
        radial-gradient(800px 600px at 85% 20%, rgba(59,130,246,0.1), transparent 50%),
        radial-gradient(900px 700px at 50% 100%, rgba(235,169,55,0.12), transparent 50%);
      animation: glowDrift 18s ease-in-out infinite;
    }

    .scan-line {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent 15%, rgba(235,169,55,0.45) 50%, transparent 85%);
      opacity: 0.15;
      animation: scanMove 8s linear infinite;
      z-index: 2;
      filter: blur(0.5px);
    }

    @keyframes gridPulse {
      0%, 100% { opacity: 0.4; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.01); }
    }

    @keyframes glowDrift {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      25% { transform: translate(3%, -2%) rotate(1deg); }
      50% { transform: translate(-2%, 3%) rotate(-1deg); }
      75% { transform: translate(1%, -1%) rotate(0.5deg); }
    }

    @keyframes scanMove {
      0% { top: -2px; opacity: 0; }
      8% { opacity: 0.15; }
      92% { opacity: 0.15; }
      100% { top: 100vh; opacity: 0; }
    }

    /* Floating particles */
    .particles {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }
    .particle {
      position: absolute;
      width: 3px;
      height: 3px;
      background: var(--gold);
      border-radius: 50%;
      opacity: 0;
      animation: particleFloat 20s infinite;
    }
    .particle:nth-child(1) { left: 8%; animation-delay: 0s; }
    .particle:nth-child(2) { left: 22%; animation-delay: 3s; }
    .particle:nth-child(3) { left: 38%; animation-delay: 6s; }
    .particle:nth-child(4) { left: 52%; animation-delay: 9s; }
    .particle:nth-child(5) { left: 68%; animation-delay: 12s; }
    .particle:nth-child(6) { left: 82%; animation-delay: 15s; }
    .particle:nth-child(7) { left: 92%; animation-delay: 18s; }

    @keyframes particleFloat {
      0% { transform: translateY(100vh) scale(0); opacity: 0; }
      10% { opacity: 0.8; transform: translateY(80vh) scale(1); }
      90% { opacity: 0.8; }
      100% { transform: translateY(-20vh) scale(0.5); opacity: 0; }
    }

    /* === HERO === */
    .hero {
      position: relative;
      z-index: 5;
      text-align: center;
      padding: 120px 24px 80px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 600;
      color: var(--gold);
      text-transform: uppercase;
      letter-spacing: 4px;
      padding: 14px 28px;
      background: rgba(235,169,55,0.08);
      border: 1px solid var(--border-gold);
      border-radius: 100px;
      margin-bottom: 40px;
      backdrop-filter: blur(10px);
    }

    .hero-badge .pulse {
      width: 10px;
      height: 10px;
      background: var(--gold);
      border-radius: 50%;
      box-shadow: 0 0 20px var(--gold);
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); opacity: 0.7; }
      50% { transform: scale(1.4); opacity: 1; }
    }

    h1 {
      font-family: 'Lora', serif;
      font-weight: 600;
      font-size: 88px;
      line-height: 1;
      margin: 0 auto 32px;
      letter-spacing: -3px;
      max-width: 1000px;
    }

    .gradient-text {
      background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #D97706 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-style: italic;
    }

    .hero-sub {
      font-size: 22px;
      color: var(--silver);
      max-width: 750px;
      margin: 0 auto 20px;
      line-height: 1.7;
      font-weight: 400;
    }

    .hero-tagline {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      color: var(--muted);
      letter-spacing: 1px;
    }

    /* === TWO PROBLEMS SECTION === */
    .problems {
      position: relative;
      z-index: 5;
      padding: 80px 24px 100px;
    }

    .problems-header {
      text-align: center;
      margin-bottom: 64px;
    }

    .problems-header h2 {
      font-family: 'Lora', serif;
      font-size: 42px;
      font-weight: 600;
      margin: 0 0 16px;
    }

    .problems-header p {
      font-size: 18px;
      color: var(--muted);
      max-width: 600px;
      margin: 0 auto;
    }

    .problems-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
      max-width: 1000px;
      margin: 0 auto;
    }

    .problem-card {
      background: linear-gradient(145deg, rgba(10, 22, 40, 0.7), rgba(5, 10, 20, 0.8));
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 36px;
      transition: all 0.4s ease;
    }
    .problem-card:hover {
      border-color: var(--border-gold);
      transform: translateY(-6px);
    }

    .problem-icon {
      width: 56px;
      height: 56px;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(235,169,55,0.15), rgba(235,169,55,0.05));
      border: 1px solid var(--border-gold);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--gold);
      margin-bottom: 20px;
    }

    .problem-card h3 {
      font-family: 'Lora', serif;
      font-size: 22px;
      font-weight: 600;
      margin: 0 0 12px;
    }

    .problem-card p {
      font-size: 15px;
      color: var(--muted);
      line-height: 1.7;
      margin: 0;
    }

    /* === ENGINES SECTION === */
    .engines {
      position: relative;
      z-index: 5;
      padding: 100px 24px 120px;
      border-top: 1px solid var(--border);
    }

    .engines-header {
      text-align: center;
      margin-bottom: 80px;
    }

    .section-kicker {
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
    }

    .engines-header h2 {
      font-family: 'Lora', serif;
      font-size: 52px;
      font-weight: 600;
      margin: 0 0 20px;
    }

    .engines-header p {
      font-size: 19px;
      color: var(--muted);
      max-width: 650px;
      margin: 0 auto;
    }

    /* === PRODUCT CARDS === */
    .products {
      display: flex;
      flex-direction: column;
      gap: 48px;
      max-width: 1100px;
      margin: 0 auto;
    }

    .product-card {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 56px;
      align-items: start;
      background: linear-gradient(145deg, rgba(10, 22, 40, 0.6), rgba(5, 12, 24, 0.8));
      border: 1px solid var(--border);
      border-radius: 28px;
      padding: 56px;
      text-decoration: none;
      color: inherit;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
      position: relative;
      overflow: hidden;
    }

    .product-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(235,169,55,0.06), transparent 50%);
      opacity: 0;
      transition: opacity 0.5s;
    }

    .product-card:hover::before { opacity: 1; }

    .product-card:hover {
      border-color: var(--border-gold);
      transform: translateY(-8px);
      box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), 0 0 60px rgba(235,169,55,0.1);
    }

    .product-card:nth-child(2) {
      grid-template-columns: 0.9fr 1.1fr;
    }
    .product-card:nth-child(2) .product-content { order: 2; }
    .product-card:nth-child(2) .product-visual { order: 1; }

    /* Product Content */
    .product-content {
      position: relative;
      z-index: 2;
      min-width: 0;
    }

    .product-type {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      background: rgba(235,169,55,0.1);
      border: 1px solid rgba(235,169,55,0.25);
      padding: 10px 18px;
      border-radius: 8px;
      margin-bottom: 24px;
    }

    .product-type svg {
      width: 16px;
      height: 16px;
    }

    /* CRITICAL: Product naming to match product site headers */
    .product-name {
      margin-bottom: 20px;
    }
    .product-name .brand {
      font-family: 'Manrope', sans-serif;
      font-size: 24px;
      font-weight: 200;
      color: var(--muted);
      letter-spacing: 2px;
      text-transform: uppercase;
      display: block;
      margin-bottom: 8px;
    }
    .product-name .name {
      font-family: 'Manrope', sans-serif;
      font-size: 42px;
      font-weight: 200;
      color: var(--white);
      line-height: 1.1;
    }

    .product-mission {
      font-size: 17px;
      color: var(--silver);
      line-height: 1.75;
      margin-bottom: 32px;
    }

    .product-stats {
      display: flex;
      gap: 32px;
      padding: 24px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin-bottom: 32px;
    }

    .stat {
      text-align: center;
      flex: 1;
    }
    .stat-value {
      font-family: 'Lora', serif;
      font-size: 36px;
      font-weight: 700;
      color: var(--gold);
      line-height: 1;
      margin-bottom: 6px;
    }
    .stat-label {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .product-cta {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      padding: 20px 36px;
      background: var(--gold);
      color: var(--navy-deep);
      font-size: 15px;
      font-weight: 700;
      border-radius: 14px;
      text-decoration: none;
      transition: all 0.3s ease;
    }
    .product-cta:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 40px -10px var(--gold-glow);
    }
    .product-cta .arrow {
      transition: transform 0.3s ease;
    }
    .product-card:hover .product-cta .arrow {
      transform: translateX(6px);
    }

    /* Product Visual / Terminal */
    .product-visual {
      position: relative;
      z-index: 2;
      min-width: 0;
      display: flex;
      align-items: flex-start;
      width: 100%;
    }

    .terminal {
      background: #0D1420;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 20px 60px -15px rgba(0,0,0,0.6);
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 100%;
    }

    .terminal-header {
      display: grid;
      grid-template-columns: auto auto auto minmax(0,1fr) auto;
      align-items: center;
      gap: 8px;
      padding: 14px 18px;
      background: #151D2A;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .terminal-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
    }
    .terminal-dot:nth-child(1) { background: #F04438; }
    .terminal-dot:nth-child(2) { background: #F59E0B; }
    .terminal-dot:nth-child(3) { background: #10B981; }
    .terminal-title {
      margin-left: 12px;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 10px;
      color: var(--muted);
      letter-spacing: 1px;
    }

    
/* === TERMINAL base styles === */
.terminal { position: relative; }

/* subtle scan inside the terminal */
.terminal::after{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  height:1px;
  top:-6px;
  background: linear-gradient(
    90deg,
    transparent 10%,
    rgba(235,169,55,0.3) 45%,
    rgba(235,169,55,0.3) 55%,
    transparent 90%
  );
  opacity:0.4;
  animation: termScan 5s linear infinite;
  pointer-events:none;
  z-index:3;
}
@keyframes termScan {
  0% { transform: translateY(-10px); }
  100% { transform: translateY(340px); }
}

@media (prefers-reduced-motion: reduce){
  .terminal-body .t-line { opacity: 1 !important; transform: none !important; animation: none !important; }
  .terminal::after { display: none; }
}

/* terminal scan enabled via inline override */

.terminal-body {
      padding: 20px;
      height: 320px;
      min-height: 320px;
      max-height: 320px;
      line-height: 1.8;
      overflow-y: auto;
      overflow-x: hidden;
      scrollbar-gutter: stable;
      overscroll-behavior: contain;
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .t-line {
      margin-bottom: 2px;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .t-gold { color: var(--gold); }
    .t-dim { color: #64748B; }
    .t-pass { color: #10B981; font-weight: 600; }
    .t-fail { color: #F04438; font-weight: 600; }
    .t-warn { color: #F59E0B; }
    .t-info { color: #93C5FD; }

    /* === WHY SECTION === */
    .why {
      position: relative;
      z-index: 5;
      padding: 100px 24px;
      border-top: 1px solid var(--border);
    }

    .why-header {
      text-align: center;
      margin-bottom: 64px;
    }

    .why-header h2 {
      font-family: 'Manrope', serif;
      font-size: 48px;
      font-weight: 600;
      margin: 0 0 16px;
    }

    .why-header p {
      font-size: 18px;
      color: var(--muted);
    }

    .why-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
      max-width: 1100px;
      margin: 0 auto;
    }

    .why-card {
      background: rgba(10, 22, 40, 0.5);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 44px 32px;
      text-align: center;
      transition: all 0.4s ease;
    }
    .why-card:hover {
      border-color: var(--border-gold);
      transform: translateY(-8px);
    }

    .why-icon {
      width: 72px;
      height: 72px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(235,169,55,0.15), rgba(235,169,55,0.05));
      border: 1px solid var(--border-gold);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--gold);
      margin: 0 auto 24px;
    }

    .why-card h3 {
      font-family: 'Lora', serif;
      font-size: 22px;
      font-weight: 600;
      margin: 0 0 12px;
    }

    .why-card p {
      font-size: 15px;
      color: var(--muted);
      line-height: 1.7;
      margin: 0;
    }

    /* === FOOTER === */
    footer {
      position: relative;
      z-index: 5;
      padding: 80px 48px 40px;
      border-top: 1px solid var(--border);
    }

    .footer-grid {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.2fr auto 1fr;
      gap: 64px;
      align-items: start;
    }

    .footer-brand h3 {
      font-family: 'Manrope', sans-serif;
      font-size: 28px;
      margin: 0 0 8px;
    }
    .footer-brand .location {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 20px;
    }
    .footer-brand p {
      font-size: 14px;
      color: var(--silver);
      line-height: 1.7;
      max-width: 320px;
      margin: 0 0 28px;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--muted);
      background: rgba(10, 22, 40, 0.8);
      border: 1px solid var(--border);
      padding: 12px 20px;
      border-radius: 100px;
    }
    .status-badge .dot {
      width: 8px;
      height: 8px;
      background: #22c55e;
      border-radius: 50%;
      box-shadow: 0 0 12px #22c55e;
      animation: pulse 2s infinite;
    }

    .footer-nav {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .footer-nav a {
      color: var(--silver);
      text-decoration: none;
      font-size: 14px;
      transition: color 0.2s;
    }
    .footer-nav a:hover { color: var(--gold); }

    .tribute {
      text-align: right;
      border-left: 2px solid var(--gold);
      padding-left: 28px;
    }
    .tribute-quote {
      font-family: 'Lora', serif;
      font-style: italic;
      font-size: 17px;
      color: var(--silver);
      line-height: 1.6;
      margin-bottom: 12px;
    }
    .tribute-sub {
      font-size: 13px;
      color: var(--muted);
    }

    .footer-bottom {
      max-width: 1100px;
      margin: 60px auto 0;
      padding-top: 28px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      color: var(--muted);
    }

    /* === ANIMATIONS === */
    .reveal {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    @media (prefers-reduced-motion: reduce) {
      .bg-grid, .bg-glow, .scan-line, .particle, .hero-badge .pulse, .status-badge .dot { animation: none; }
      .reveal { opacity: 1; transform: none; transition: none; }
    }

    @media (max-width: 1024px) {
      h1 { font-size: 60px; letter-spacing: -2px; }
      .product-card { grid-template-columns: 1fr; gap: 40px; }
      .product-card:nth-child(2) { grid-template-columns: 1fr; }
      .product-card:nth-child(2) .product-content { order: 1; }
      .product-card:nth-child(2) .product-visual { order: 2; }
      .product-name .name { font-size: 34px; }
      .why-grid { grid-template-columns: 1fr; max-width: 500px; }
      .problems-grid { grid-template-columns: 1fr; max-width: 500px; }
      .footer-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
      .footer-brand p { margin: 0 auto 28px; }
      .status-badge { margin: 0 auto; }
      .tribute { border-left: none; border-top: 2px solid var(--gold); padding: 28px 0 0; text-align: center; }
      nav { display: none; }
      .mobile-nav-toggle { display: flex; }
      /* Keep logo left-aligned with hamburger on right */
    }

    @media (max-width: 600px) {
      h1 { font-size: 44px; letter-spacing: -1px; }
      .hero { padding: 80px 20px 60px; }
      .hero-sub { font-size: 18px; }
      .hero-badge { font-size: 9px; letter-spacing: 2px; padding: 10px 18px; gap: 10px; }
      .hero-tagline { font-size: 11px; letter-spacing: 0.5px; }
      .product-card { padding: 28px 20px; gap: 28px; }
      .product-type { font-size: 9px; padding: 8px 14px; }
      .product-name .brand { font-size: 18px; }
      .product-name .name { font-size: 28px; }
      .product-mission { font-size: 15px; }
      .product-cta { padding: 16px 28px; font-size: 14px; width: 100%; justify-content: center; }
      .product-stats { flex-direction: column; gap: 20px; }
      .stat-value { font-size: 28px; }
      .terminal { font-size: 10px; }
      .terminal-header { grid-template-columns: auto auto auto minmax(0,1fr) auto; gap: 6px; padding: 12px 14px; }
      .terminal-dot { width: 10px; height: 10px; }
      .terminal-title { margin-left: 6px; font-size: 9px; letter-spacing: 0.4px; }
      .terminal-status { margin-left: 8px; font-size: 8px; letter-spacing: 0.8px; }
      .terminal-body { padding: 12px; height: 260px; min-height: 260px; max-height: 260px; line-height: 1.65; }
      .t-id { font-size: 9px; margin: 0 3px; }
      .engines-header h2 { font-size: 34px; }
      .engines-header p { font-size: 16px; }
      .engines { padding: 60px 20px 80px; }
      .problems { padding: 60px 20px 80px; }
      .problems-header h2 { font-size: 32px; }
      .problem-card { padding: 28px 24px; }
      .problem-card h3 { font-size: 20px; }
      .problem-card p { font-size: 14px; }
      .why { padding: 60px 20px 80px; }
      .why-header h2 { font-size: 32px; }
      .why-card { padding: 32px 24px; }
      .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
      header { padding: 20px 16px; }
      footer { padding: 60px 20px 32px; }
      .urgency-bar { gap: 32px; padding: 30px 16px 40px; }
      .urgency-stat .val { font-size: 36px; }
    }

/* Homepage footer: match shared footer used on the rest of the site */
footer {
  padding: 48px 24px 32px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-family: 'Manrope','Inter',sans-serif;
  font-size: 20px;
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--silver);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .footer-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .footer-copy .fc-sep {
    display: none;
  }

  .footer-nav {
    gap: 16px;
  }
}
