/* =============================================================
   foundation.html — page-specific styles
   ============================================================= */

/* ── REGISTERED PROPERTIES ── */
    @property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
    @property --border-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
    @property --shimmer-pos { syntax: '<percentage>'; initial-value: -100%; inherits: false; }

    /* ── TOKENS ── */
    :root {
      --bg: #0b0514;
      --bg-alt: #130a24;
      --accent: #00e5ff;
      --accent2: #d946ef;
      --accent3: #a855f7;
      --pink: #ffaa00;
      --gold: #2dd4bf;
      --text: #f8fafc;
      --text-muted: #cbd5e1;
      --text-dim: #64748b;
      --border: rgba(217, 70, 239, 0.15);
      --glow: rgba(0, 229, 255, 0.12);
      --font-heading: 'Outfit', sans-serif;
      --font-body: 'Inter', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }

    /* ── RESET ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }
    button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

    /* ── NOISE OVERLAY ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 9999;
      opacity: 0.04;
      mix-blend-mode: overlay;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-repeat: repeat;
      background-size: 128px 128px;
    }

    /* ── SCROLLBAR ── */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: rgba(217, 70, 239, 0.4); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(217, 70, 239, 0.6); }
    ::selection { background: rgba(0, 229, 255, 0.35); color: #fff; }

    /* ── TYPOGRAPHY ── */
    h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 200; letter-spacing: -0.04em; }

    .text-gradient {
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--pink) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .eyebrow {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      font-weight: 300;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .eyebrow::before {
      content: '';
      width: 20px;
      height: 1px;
      background: var(--accent);
    }

    /* ── LAYOUT ── */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }
    section { padding: 100px 0; }

    /* ── KEYFRAMES ── */
    @keyframes borderSpin { to { --border-angle: 360deg; } }
    @keyframes shimmer { to { --shimmer-pos: 200%; } }
    @keyframes glow-pulse { 
      0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.3)); } 
      50% { opacity: 1; filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5)); } 
    }
    @keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
    @keyframes line-shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

    /* ── GLASS CARD ── */
    .card {
      position: relative;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      border-radius: 16px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      padding: 32px;
      transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
      overflow: hidden;
    }
    .card::before {
      content: '';
      position: absolute;
      top: 0; left: 20%; right: 20%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent2), var(--accent), var(--accent2), transparent);
      opacity: 0;
      transition: all 0.4s ease;
      pointer-events: none;
    }
    .card:hover {
      transform: translateY(-3px);
      border-color: rgba(217, 70, 239, 0.25);
      background: rgba(255,255,255,0.035);
      box-shadow: 0 8px 32px rgba(217, 70, 239, 0.08), 0 0 0 1px rgba(217, 70, 239, 0.05);
    }
    .card:hover::before { opacity: 1; left: 10%; right: 10%; }

    /* ── BUTTONS ── */
    .btn-conic {
      position: relative;
      padding: 14px 32px;
      border-radius: 12px;
      font-size: 0.84rem;
      font-weight: 400;
      color: white;
      background: var(--bg);
      z-index: 1;
      overflow: hidden;
      cursor: pointer;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .btn-conic::before {
      content: '';
      position: absolute;
      inset: -2px;
      border-radius: 14px;
      background: conic-gradient(from var(--border-angle), var(--accent), var(--accent2), var(--accent3), var(--accent2), var(--accent));
      z-index: -2;
      animation: borderSpin 3s linear infinite;
    }
    .btn-conic::after {
      content: '';
      position: absolute;
      inset: 2px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(11, 5, 20, 0.95));
      z-index: -1;
    }
    .btn-conic:hover { transform: translateY(-2px); transition: transform 0.2s; }

    .btn-ghost {
      padding: 14px 28px;
      border-radius: 12px;
      font-size: 0.84rem;
      font-weight: 300;
      color: var(--text-muted);
      border: 1px solid rgba(217, 70, 239, 0.15);
      background: rgba(217, 70, 239, 0.04);
      backdrop-filter: blur(8px);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s;
      font-family: inherit;
    }
    .btn-ghost:hover {
      color: var(--text);
      border-color: rgba(217, 70, 239, 0.3);
      box-shadow: 0 0 24px rgba(217, 70, 239, 0.15);
      transform: translateY(-2px);
    }

    /* ── REVEAL ANIMATIONS ── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-left {
      opacity: 0;
      transform: translateX(-30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left.visible { opacity: 1; transform: translateX(0); }
    .stagger-up .reveal-child {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .stagger-up.visible .reveal-child { opacity: 1; transform: translateY(0); }
    .stagger-up.visible .reveal-child:nth-child(1) { transition-delay: 0.05s; }
    .stagger-up.visible .reveal-child:nth-child(2) { transition-delay: 0.15s; }
    .stagger-up.visible .reveal-child:nth-child(3) { transition-delay: 0.25s; }
    .stagger-up.visible .reveal-child:nth-child(4) { transition-delay: 0.35s; }
    .stagger-up.visible .reveal-child:nth-child(5) { transition-delay: 0.45s; }

    /* ── HERO ── */
    .hero {
      padding: 160px 0 100px;
      text-align: center;
      position: relative;
    }
    .hero-glow {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -60%);
      width: 700px; height: 500px;
      background: radial-gradient(ellipse, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }
    .hero-content { position: relative; z-index: 1; }
    .hero h1 {
      font-size: clamp(2.4rem, 5vw, 4rem);
      font-weight: 200;
      line-height: 1.1;
      margin-bottom: 24px;
      letter-spacing: -0.04em;
    }
    .hero p {
      font-size: 1.05rem;
      font-weight: 300;
      color: var(--text-muted);
      max-width: 560px;
      margin: 0 auto 40px;
      line-height: 1.7;
    }
    .hero-ctas {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(0, 229, 255, 0.06);
      border: 1px solid rgba(0, 229, 255, 0.2);
      border-radius: 100px;
      padding: 6px 16px;
      font-size: 0.8rem;
      color: var(--accent);
      font-family: var(--font-mono);
      font-weight: 300;
      margin-bottom: 32px;
    }
    .hero-badge .dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulse-dot 2s infinite;
    }

    /* ── SECTION HEADER ── */
    .section-header {
      text-align: center;
      margin-bottom: 64px;
    }
    .section-header h2 {
      font-size: clamp(1.8rem, 3.5vw, 2.8rem);
      font-weight: 200;
      margin-bottom: 16px;
      letter-spacing: -0.04em;
      color: var(--text);
    }
    .section-header p {
      font-size: 0.95rem;
      font-weight: 300;
      color: var(--text-muted);
      max-width: 540px;
      margin: 0 auto;
      line-height: 1.7;
    }

    /* ── BENTO GRID ── */
    .bento-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: auto auto;
      gap: 16px;
    }
    .bento-card { grid-column: span 1; }
    .bento-card.wide { grid-column: span 2; }
    .bento-card.full { grid-column: span 3; }

    .bento-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      background: rgba(0, 229, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      color: var(--accent);
      font-size: 1.4rem;
    }
    .bento-card h3 {
      font-size: 1.1rem;
      font-weight: 300;
      margin-bottom: 10px;
      letter-spacing: -0.02em;
    }
    .bento-card p {
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* Mini widget inside bento */
    .mini-widget {
      margin-top: 20px;
      background: rgba(0,0,0,0.3);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 16px;
      font-family: var(--font-mono);
      font-size: 0.78rem;
      font-weight: 300;
    }
    .mini-widget-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 0;
      color: var(--text-muted);
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .mini-widget-row:last-child { border-bottom: none; }
    .mini-widget-row .val { color: var(--accent); font-weight: 300; }
    .status-dot {
      display: inline-block;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--gold);
      margin-right: 6px;
    }

    /* ── HOW IT WORKS ── */
    .how-section { background: var(--bg-alt); position: relative; }
    .how-section::before {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
    }
    .timeline {
      display: flex;
      align-items: flex-start;
      gap: 0;
      position: relative;
      max-width: 900px;
      margin: 0 auto;
    }
    .timeline-item {
      flex: 1;
      text-align: center;
      position: relative;
      padding: 0 20px;
    }
    .timeline-connector {
      position: absolute;
      top: 32px;
      left: calc(50% + 32px);
      right: calc(-50% + 32px);
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      opacity: 0.3;
    }
    .timeline-item:last-child .timeline-connector { display: none; }
    .timeline-node {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: rgba(0, 229, 255, 0.08);
      border: 2px solid var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-family: var(--font-heading);
      font-size: 1.4rem;
      font-weight: 200;
      color: var(--accent);
      position: relative;
      z-index: 1;
      box-shadow: 0 0 24px rgba(0, 229, 255, 0.15);
      animation: glow-pulse 3s ease-in-out infinite;
    }
    .timeline-item h3 {
      font-size: 1rem;
      font-weight: 300;
      margin-bottom: 10px;
      letter-spacing: -0.02em;
    }
    .timeline-item p {
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .timeline-badge {
      display: inline-block;
      background: rgba(0, 229, 255, 0.08);
      border: 1px solid rgba(0, 229, 255, 0.2);
      border-radius: 100px;
      padding: 3px 12px;
      font-size: 0.72rem;
      color: var(--accent);
      font-family: var(--font-mono);
      font-weight: 300;
      margin-bottom: 12px;
    }

    /* ── BEFORE/AFTER ── */
    .compare-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      max-width: 900px;
      margin: 0 auto;
    }
    .compare-card {
      padding: 36px;
      border-radius: 16px;
    }
    .compare-card.before {
      background: rgba(239,68,68,0.04);
      border: 1px solid rgba(239,68,68,0.15);
    }
    .compare-card.after {
      background: rgba(0, 229, 255, 0.03);
      border: 1px solid rgba(0, 229, 255, 0.2);
    }
    .compare-label {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      font-weight: 300;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .compare-card.before .compare-label { color: #f87171; }
    .compare-card.after .compare-label { color: var(--accent); }

    .metric-row { margin-bottom: 20px; }
    .metric-label {
      font-size: 0.8rem;
      font-weight: 300;
      color: var(--text-muted);
      margin-bottom: 6px;
      display: flex;
      justify-content: space-between;
    }
    .metric-label span { font-weight: 400; color: var(--text); }
    .progress-track {
      height: 6px;
      background: rgba(255,255,255,0.06);
      border-radius: 3px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 1s ease;
    }
    .compare-card.before .progress-fill { background: linear-gradient(90deg, #ef4444, #f87171); }
    .compare-card.after .progress-fill { background: linear-gradient(90deg, var(--accent), var(--gold)); }

    /* ── PRICING ── */
    .pricing-section { background: var(--bg-alt); position: relative; }
    .pricing-section::before {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
    }
    .pricing-card {
      max-width: 560px;
      margin: 0 auto;
      border: 1px solid rgba(0, 229, 255, 0.25);
      border-radius: 20px;
      padding: 48px;
      background: rgba(0, 229, 255, 0.03);
      position: relative;
      overflow: hidden;
    }
    .pricing-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent2), var(--pink));
    }
    .pricing-badge {
      display: inline-block;
      background: rgba(0, 229, 255, 0.1);
      border: 1px solid rgba(0, 229, 255, 0.25);
      border-radius: 100px;
      padding: 4px 14px;
      font-size: 0.75rem;
      font-weight: 300;
      color: var(--accent);
      font-family: var(--font-mono);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 24px;
    }
    .price-main {
      font-family: var(--font-heading);
      font-size: 3.5rem;
      font-weight: 200;
      color: var(--accent);
      line-height: 1;
      margin-bottom: 4px;
      letter-spacing: -0.04em;
    }
    .price-sub {
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--text-muted);
      margin-bottom: 32px;
    }
    .price-divider {
      height: 1px;
      background: var(--border);
      margin: 32px 0;
    }
    .deliverable-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-bottom: 32px;
    }
    .deliverable-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--text-muted);
    }
    .deliverable-list li::before {
      content: '';
      width: 18px; height: 18px;
      border-radius: 50%;
      background: rgba(0, 229, 255, 0.1);
      border: 1px solid rgba(0, 229, 255, 0.25);
      flex-shrink: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
      background-size: 11px;
      background-position: center;
      background-repeat: no-repeat;
      margin-top: 1px;
    }
    .maintenance-option {
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 28px;
    }
    .maintenance-option .label { font-size: 0.875rem; font-weight: 300; color: var(--text-muted); }
    .maintenance-option .price { font-weight: 300; color: var(--accent2); font-family: var(--font-mono); }

    /* ── FAQ ── */
    .faq-list {
      max-width: 720px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .faq-item { cursor: pointer; }
    .faq-question {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 24px 32px;
    }
    .faq-question h3 {
      font-size: 0.95rem;
      font-weight: 300;
      line-height: 1.4;
      letter-spacing: -0.01em;
    }
    .faq-icon {
      width: 28px; height: 28px;
      border-radius: 50%;
      background: rgba(0, 229, 255, 0.08);
      border: 1px solid rgba(0, 229, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      flex-shrink: 0;
      transition: transform 0.3s, background 0.3s;
      font-size: 1.1rem;
      line-height: 1;
    }
    .faq-item.open .faq-icon {
      transform: rotate(45deg);
      background: rgba(0, 229, 255, 0.15);
    }
    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, padding 0.3s ease;
      padding: 0 32px;
    }
    .faq-item.open .faq-answer {
      max-height: 300px;
      padding: 0 32px 24px;
    }
    .faq-answer p {
      font-size: 0.875rem;
      font-weight: 300;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* ── CTA SECTION ── */
    .cta-section {
      text-align: center;
      padding: 120px 0;
    }
    .cta-section h2 {
      font-size: clamp(1.8rem, 3.5vw, 2.6rem);
      font-weight: 200;
      margin-bottom: 20px;
      letter-spacing: -0.04em;
    }
    .cta-section p {
      font-size: 0.95rem;
      font-weight: 300;
      color: var(--text-muted);
      max-width: 480px;
      margin: 0 auto 40px;
      line-height: 1.7;
    }

    
    
    
    
    
    
    
    
    
    
    

    /* ── RESPONSIVE ── */
    @media (max-width: 1024px) {
      .bento-grid { grid-template-columns: repeat(2, 1fr); }
      .bento-card.wide { grid-column: span 2; }
      .bento-card.full { grid-column: span 2; }
    }
    @media (max-width: 768px) {
      section { padding: 72px 0; }
      .hero { padding: 120px 0 80px; }
      .bento-grid { grid-template-columns: 1fr; }
      .bento-card.wide, .bento-card.full { grid-column: span 1; }
      .timeline { flex-direction: column; align-items: center; gap: 40px; }
      .timeline-connector { display: none; }
      .compare-grid { grid-template-columns: 1fr; }
      .pricing-card { padding: 32px 24px; }
    }
    @media (max-width: 480px) {
      .hero h1 { font-size: 2rem; }
      .hero-ctas { flex-direction: column; align-items: center; }
      .btn-conic, .btn-ghost { width: 100%; justify-content: center; }
      .faq-question { padding: 20px; }
      .faq-answer { padding: 0 20px; }
      .faq-item.open .faq-answer { padding: 0 20px 20px; }
    }
  