/* assets/css/home.css — homepage-specific styles (design tokens, hero,
 * pricing/node-estimator, FAQ, marquee, etc). Extracted from index.php's
 * inline <style> blocks and served as a single external, cacheable file
 * instead of being re-sent inline on every homepage request. */

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

    :root, [data-theme="dark"] {
      --bg: #06080f; --bg2: #0a0d18; --surface: #11162a; --surface2: #1a2138;
      --border: rgba(148,163,184,0.10); --border-strong: rgba(148,163,184,0.22);
      --accent: #1d4ed8; --accent2: #60a5fa; --accent-glow: rgba(59,130,246,0.35);
      --accent-green: #22d3ee; --accent-purple: #a78bfa; --accent-orange: #fb923c;
      --text: #f1f5f9; --text-muted: #94a3b8; --text-dim: #7a8aa8;
      --nav-bg: rgba(6,8,15,.65); --nav-bg-scroll: rgba(6,8,15,.9);
      --menu-bg: rgba(6,8,15,.98);
      --grid-line: rgba(59,130,246,.05);
      --terminal-bg: #0a1120; --terminal-bar: rgba(255,255,255,.03);
      --marquee-fade-from: #06080f;
      --shadow-card: 0 4px 20px rgba(0,0,0,.25);
      --shadow-lg: 0 32px 80px rgba(0,0,0,.5);
      --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
      --font-mono: 'JetBrains Mono', ui-monospace, monospace;
      --font-body: 'Inter', system-ui, -apple-system, sans-serif;
      --radius: 14px;
    }

    [data-theme="light"] {
      --bg: #fafbfd; --bg2: #f1f4f9; --surface: #ffffff; --surface2: #f1f5f9;
      --border: rgba(15,23,42,0.08); --border-strong: rgba(15,23,42,0.16);
      --accent: #2563eb; --accent2: #1d4ed8; --accent-glow: rgba(37,99,235,0.18);
      --accent-green: #0891b2; --accent-purple: #7c3aed; --accent-orange: #ea580c;
      --text: #0f172a; --text-muted: #475569; --text-dim: #64748b;
      --nav-bg: rgba(255,255,255,.75); --nav-bg-scroll: rgba(255,255,255,.92);
      --menu-bg: rgba(255,255,255,.98);
      --grid-line: rgba(15,23,42,.05);
      --terminal-bg: #0f172a; --terminal-bar: rgba(255,255,255,.04);
      --marquee-fade-from: #fafbfd;
      --shadow-card: 0 1px 3px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.05);
      --shadow-lg: 0 24px 60px -10px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.05);
    }

    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body {
      background: var(--bg); color: var(--text);
      font-family: var(--font-body);
      font-size: 16px; line-height: 1.6;
      font-feature-settings: 'cv02','cv03','cv04','cv11','ss01';
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      overflow-x: hidden; cursor: none;
      transition: background .3s ease, color .3s ease;
    }
    img, svg { max-width: 100%; display: block; }
    ::selection { background: var(--accent-glow); color: var(--text); }

    .cursor {
      position: fixed; top: 0; left: 0;
      width: 10px; height: 10px;
      background: var(--accent);
      border-radius: 50%;
      pointer-events: none; z-index: 9999;
      will-change: transform;
      transition: width .2s, height .2s;
      mix-blend-mode: screen;
    }
    .cursor-ring {
      position: fixed; top: 0; left: 0;
      width: 36px; height: 36px;
      border: 1.5px solid rgba(59,130,246,.6);
      border-radius: 50%;
      pointer-events: none; z-index: 9998;
      will-change: transform;
      transition: width .25s, height .25s, opacity .2s;
    }

    @media (hover: none) and (pointer: coarse) {
        .cursor, .cursor-ring { display: none !important; }
        body { cursor: auto; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
      }
      .marquee-track { animation: none !important; }
      .cursor, .cursor-ring { display: none !important; }
      body { cursor: auto; }
    }

    body::before {
      content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .55;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    }
    [data-theme="light"] body::before { opacity: .25; mix-blend-mode: multiply; }
    .grid-bg {
      position: fixed; inset: 0; pointer-events: none; z-index: 0;
      background-image: linear-gradient(var(--grid-line) 1px,transparent 1px), linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
      -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    }
    .hero-glow {
      position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
      width: min(900px, 95vw); height: 700px; pointer-events: none;
      background: radial-gradient(ellipse at center,rgba(59,130,246,.22) 0%,rgba(167,139,250,.08) 40%,transparent 70%);
      filter: blur(20px);
    }
    [data-theme="light"] .hero-glow {
      background: radial-gradient(ellipse at center,rgba(59,130,246,.10) 0%,rgba(167,139,250,.05) 40%,transparent 70%);
    }
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      padding: 0 clamp(20px,5vw,80px); height: 68px;
      display: flex; align-items: center; justify-content: space-between;
      background: var(--nav-bg); backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid var(--border); transition: background .3s, border-color .3s, height .3s;
    }
    nav.scrolled { background: var(--nav-bg-scroll); height: 60px; }

    .logo {
      display: flex; align-items: center; gap: 10px; text-decoration: none;
      font-family: var(--font-head); font-size: 21px; font-weight: 700;
      color: var(--text); letter-spacing: -.02em;
    }
    .logo-icon {
      width: 34px; height: 34px;
      background: linear-gradient(135deg,var(--accent),var(--accent-green));
      border-radius: 9px; display: flex; align-items: center; justify-content: center;
      font-size: 14px; color: #fff; box-shadow: 0 0 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.2);
    }
    .logo span { color: var(--accent2); }
    .brand-logo { height: 40px; width: auto; display: block; }
    .dark-logo  { display: none; }
    .light-logo { display: block; }
    [data-theme="dark"]  .light-logo { display: none; }
    [data-theme="dark"]  .dark-logo  { display: block; }
    [data-theme="light"] .dark-logo  { display: none; }
    [data-theme="light"] .light-logo { display: block; }
    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a {
      color: var(--text-muted); text-decoration: none; font-size: 14px;
      font-weight: 500; letter-spacing: -.005em; transition: color .2s; position: relative;
    }
    .nav-links a::after {
      content: ''; position: absolute; bottom: -4px; left: 0;
      width: 0; height: 1.5px; background: var(--accent); transition: width .25s ease;
    }
    .nav-links a:hover { color: var(--text); }
    .nav-links a:hover::after { width: 100%; }
    .nav-cta { display: flex; align-items: center; gap: 12px; }

    .theme-toggle { background: transparent; border: 1px solid var(--border); color: var(--text-muted); width: 36px; height: 36px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
    .theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface2); transform: rotate(15deg); }
    /* Global search icon — same box as the theme toggle but tuned for a link
       (no rotate-on-hover, no underline, pressed + keyboard-focus states). */
    .nav-search { box-sizing: border-box; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; transition: all .2s; }
    .nav-search:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface2); }
    .nav-search:active { transform: scale(.94); }
    .nav-search:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
    [data-theme="dark"] .fa-moon { display: none; }
    [data-theme="light"] .fa-sun { display: none; }

    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 20px; border-radius: 9px; font-family: var(--font-body);
      font-size: 14px; font-weight: 600; cursor: pointer; border: none;
      text-decoration: none; transition: all .2s ease;
      letter-spacing: -.005em; line-height: 1;
    }
    .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
    .btn-ghost:hover { border-color: var(--text-muted); background: var(--surface2); }
    .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(59,130,246,.3), inset 0 1px 0 rgba(255,255,255,.15); }
    .btn-primary:hover { background: #2563eb; box-shadow: 0 6px 28px rgba(59,130,246,.45), inset 0 1px 0 rgba(255,255,255,.18); transform: translateY(-1px); }
    [data-theme="light"] .btn-primary:hover { background: #1d4ed8; }
    .btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }

    .hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; width: 44px; height: 44px; padding: 0; margin-right: -8px; background: none; border: none; }
    .hamburger span { display: block; width: 24px; height: 2px; background: var(--text-muted); transition: all .3s; }

    main { position: relative; z-index: 1; }
    section { position: relative; }
    #hero {
      min-height: 100vh; display: flex; flex-direction: column;
      align-items: center; justify-content: center; text-align: center;
      padding: 120px clamp(24px,5vw,80px) 80px; overflow: hidden;
    }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
      background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.22);
      border-radius: 100px; font-family: var(--font-mono); font-size: 11.5px;
      color: var(--accent2); margin-bottom: 28px; animation: fadeUp .8s ease both;
      box-shadow: 0 0 30px rgba(59,130,246,.08);
    }
    [data-theme="light"] .hero-badge { background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.2); }
    .badge-dot { width: 6px; height: 6px; background: var(--accent-green); border-radius: 50%; animation: pulse 2s infinite; box-shadow: 0 0 10px var(--accent-green); }
    @keyframes pulse { 0%,100% { opacity:1;transform:scale(1); } 50% { opacity:.5;transform:scale(.8); } }
    .hero-title {
      font-family: var(--font-head);
      font-size: clamp(40px, 7.5vw, 88px);
      font-weight: 700;
      line-height: 1.05; letter-spacing: -.035em; color: var(--text);
      margin-bottom: 22px; animation: fadeUp .8s .1s ease both;
      max-width: 14ch;
    }
    .hero-title .line2 {
      background: linear-gradient(90deg,var(--accent),var(--accent-green),var(--accent-purple));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text; background-size: 200%;
      animation: gradShift 4s linear infinite, fadeUp .8s .15s ease both;
    }
    @keyframes gradShift { 0% { background-position:0%; } 100% { background-position:200%; } }
    .hero-sub {
      font-size: clamp(15px, 1.6vw, 19px); color: var(--text-muted); max-width: 620px;
      line-height: 1.65; margin-bottom: 36px; animation: fadeUp .8s .2s ease both;
      letter-spacing: -.005em;
    }
    .hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; animation: fadeUp .8s .3s ease both; }
    .hero-stats {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 56px);
      width: 100%; max-width: 820px; margin: 72px auto 0;
      padding-top: 44px; border-top: 1px solid var(--border); animation: fadeUp .8s .5s ease both;
    }
    .stat-item { text-align: center; }
    .stat-num { font-family: var(--font-head); font-size: clamp(28px, 3.5vw, 38px); font-weight: 700; color: var(--text); letter-spacing: -.03em; line-height: 1; }
    .stat-num span { color: var(--accent2); }
    .stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; font-family: var(--font-mono); letter-spacing: .01em; }
    .terminal-wrap { width: min(680px,92vw); margin: 56px auto 0; animation: fadeUp .8s .4s ease both; }
    .terminal {
      background: var(--terminal-bg); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden;
      box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.04);
    }
    .terminal-bar {
      padding: 12px 16px; background: var(--terminal-bar);
      border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 8px;
    }
    .t-dot { width: 10px; height: 10px; border-radius: 50%; }
    .t-red { background:#ff5f57; } .t-yellow { background:#febc2e; } .t-green { background:#28c840; }
    .terminal-title { flex:1; text-align:center; font-family:var(--font-mono); font-size:12px; color: #64748b; }
    .terminal-body { padding: 20px clamp(16px, 3vw, 24px); font-family: var(--font-mono); font-size: clamp(11.5px, 1.4vw, 13px); line-height: 1.8; min-height: 180px; white-space: pre-wrap; color: #e8edf8; overflow-x: auto; }
    .t-line { display: flex; gap: 10px; }
    .t-prompt { color: #22d3ee; user-select: none; }
    .t-cmd { color: #f1f5f9; }
    .t-out { color: #94a3b8; padding-left: 20px; }
    .t-success { color: #22d3ee; padding-left: 20px; }
    .t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); animation: blink 1.1s step-end infinite; vertical-align: text-bottom; }
    @keyframes blink { 50% { opacity:0; } }

    .section-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--accent2); margin-bottom: 14px; font-weight: 500; }
    .section-title { font-family: var(--font-head); font-size: clamp(28px, 4.2vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
    .section-sub { font-size: clamp(15px, 1.5vw, 17px); color: var(--text-muted); line-height: 1.65; max-width: 540px; margin-top: 14px; }

    #features { padding: clamp(80px, 12vw, 120px) clamp(20px,5vw,80px); }
    .features-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 32px; flex-wrap: wrap; }
    .features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
    .feature-card { background: var(--bg2); padding: clamp(28px, 4vw, 40px) clamp(24px, 3.5vw, 36px); position: relative; overflow: hidden; transition: background .25s; }
    .feature-card::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(59,130,246,.06) 0%,transparent 60%); opacity:0; transition:opacity .3s; }
    .feature-card:hover::before { opacity:1; }
    .feature-card:hover { background:var(--surface); }
    [data-theme="light"] .feature-card { background: var(--surface); }
    [data-theme="light"] .feature-card:hover { background: var(--bg2); }
    .feature-card.large { grid-column: span 2; }
    .feat-icon {
      width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center;
      justify-content: center; margin-bottom: 22px; font-size: 17px;
      border: 1px solid var(--border-strong); position: relative;
    }
    .feat-icon::after { content:''; position:absolute; inset:-1px; border-radius:13px; background:inherit; filter:blur(12px); opacity:.4; z-index:-1; }
    .icon-blue { background:rgba(59,130,246,.12); color:var(--accent2); }
    .icon-green { background:rgba(34,211,238,.12); color:var(--accent-green); }
    .icon-purple { background:rgba(167,139,250,.12); color:var(--accent-purple); }
    .icon-orange { background:rgba(251,146,60,.12); color:var(--accent-orange); }
    .feat-num { position:absolute; top:20px; right:24px; font-family:var(--font-mono); font-size:11px; color:var(--text-dim); }
    .feat-title { font-family:var(--font-head); font-size: clamp(17px, 1.6vw, 20px); font-weight:600; color:var(--text); margin-bottom:10px; letter-spacing:-.015em; }
    .feat-desc { font-size: 14.5px; color:var(--text-muted); line-height:1.65; }
    .feat-tag { display:inline-flex; align-items:center; gap:6px; margin-top:20px; padding:4px 12px; background:rgba(34,211,238,.1); border:1px solid rgba(34,211,238,.22); border-radius:100px; font-family:var(--font-mono); font-size:11px; color:var(--accent-green); }

    #how { padding: clamp(80px, 12vw, 120px) clamp(20px,5vw,80px); background: linear-gradient(180deg,transparent,var(--bg2),transparent); position: relative; }
    .how-inner { max-width: 900px; margin: 0 auto; }
    .how-header { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
    .how-header .section-sub { margin-left: auto; margin-right: auto; }
    .steps-list { display: flex; flex-direction: column; gap: 0; position: relative; }
    .steps-list::before {
      content: ''; position: absolute; left: 35px; top: 70px; bottom: 70px;
      width: 1px; background: linear-gradient(180deg,var(--border-strong),var(--border-strong) 60%,transparent);
    }
    .step-item { display: flex; gap: 28px; align-items: flex-start; padding: 0 0 40px 0; position: relative; }
    .step-item:last-child { padding-bottom: 0; }
    .step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 70px; }
    .step-node {
      width: 70px; height: 70px; background: var(--surface2); border: 1px solid var(--border-strong);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      font-size: 22px; position: relative; z-index: 2; flex-shrink: 0;
      transition: border-color .3s, box-shadow .3s;
    }
    .step-item:hover .step-node { border-color: var(--accent); box-shadow: 0 0 20px rgba(59,130,246,.25); }
    .icon-blue-n { color: var(--accent2); }
    .icon-purple-n { color: var(--accent-purple); }
    .icon-green-n { color: var(--accent-green); }
    .step-content {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 28px 32px; flex: 1; transition: border-color .25s, transform .25s;
    }
    .step-item:hover .step-content { border-color: var(--border-strong); transform: translateX(4px); }
    .step-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
    .step-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
    .step-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; white-space: nowrap; flex-shrink: 0; }
    .step-desc { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
    .step-pills { display: flex; gap: 8px; flex-wrap: wrap; }
    .step-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--border); color: var(--text-muted); background: var(--bg2); }
    .step-pill i { font-size: 10px; color: var(--accent2); }

    #pricing { padding: clamp(80px, 12vw, 120px) clamp(20px,5vw,80px); }
    .pricing-header { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
    .pricing-header .section-sub { margin-left: auto; margin-right: auto; }
    .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
    .price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(28px, 3.5vw, 36px) clamp(24px, 3vw, 32px); position: relative; transition: transform .25s, border-color .25s, box-shadow .25s; box-shadow: var(--shadow-card); }
    .price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
    .price-card.featured { background: linear-gradient(160deg,rgba(59,130,246,.10),rgba(59,130,246,.02)); border-color: rgba(59,130,246,.35); box-shadow: 0 0 0 1px rgba(59,130,246,.15), 0 24px 64px rgba(59,130,246,.14); }
    [data-theme="light"] .price-card.featured { background: linear-gradient(160deg,rgba(37,99,235,.06),rgba(37,99,235,.01)); border-color: rgba(37,99,235,.25); box-shadow: 0 0 0 1px rgba(37,99,235,.08), 0 20px 50px rgba(37,99,235,.12); }
    .price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--font-mono); letter-spacing: .08em; padding: 4px 16px; border-radius: 100px; text-transform: uppercase; white-space: nowrap; }
    .price-plan { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; font-weight: 500; }
    .price-amount { font-family: var(--font-head); font-size: clamp(38px, 4.5vw, 48px); font-weight: 700; letter-spacing: -.035em; color: var(--text); line-height: 1; }
    .price-amount sub { font-size: 18px; font-weight: 500; color: var(--text-muted); vertical-align: middle; }
    .price-amount sup { font-size: 20px; color: var(--text-muted); font-weight: 500; }
    .price-unit { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 4px; font-family: var(--font-body); }
    .price-period { font-size: 13px; color: var(--text-dim); margin-top: 6px; margin-bottom: 14px; font-family: var(--font-mono); }
    .price-range { font-size: 12.5px; color: var(--accent2); margin-bottom: 26px; font-family: var(--font-mono); padding: 6px 12px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.18); border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; }
    .price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
    .price-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
    .check { width:18px; height:18px; background:rgba(34,211,238,.1); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:9px; color:var(--accent-green); flex-shrink:0; }
    .btn-outline { display:block; text-align:center; width:100%; padding:12px; border-radius:8px; border:1px solid var(--border-strong); background:transparent; color:var(--text); font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; transition:all .2s; font-family:var(--font-body); }
    .btn-outline:hover { background:var(--surface2); border-color:var(--accent); }
    .btn-primary-block { display:block; text-align:center; width:100%; padding:12px; border-radius:8px; background:var(--accent); color:#fff; font-size:14px; font-weight:600; cursor:pointer; border:none; text-decoration:none; transition:all .2s; font-family:var(--font-body); box-shadow:0 4px 20px rgba(59,130,246,.3); }
    .btn-primary-block:hover { background:#2563eb; box-shadow:0 4px 28px rgba(59,130,246,.5); transform:translateY(-1px); }
    .pricing-empty { text-align:center; padding:48px; color:var(--text-muted); border:1px dashed var(--border-strong); border-radius:var(--radius); max-width:600px; margin:0 auto; }

    .marquee-wrap { padding:36px 0; overflow:hidden; border-top:1px solid var(--border); border-bottom:1px solid var(--border); position:relative; background: var(--bg2); }
    .marquee-wrap::before,.marquee-wrap::after { content:''; position:absolute; top:0; bottom:0; width:clamp(40px, 12vw, 200px); z-index:2; pointer-events:none; }
    .marquee-wrap::before { left:0; background:linear-gradient(90deg,var(--marquee-fade-from),transparent); }
    .marquee-wrap::after { right:0; background:linear-gradient(-90deg,var(--marquee-fade-from),transparent); }
    [data-theme="light"] .marquee-wrap::before { background:linear-gradient(90deg,var(--bg2),transparent); }
    [data-theme="light"] .marquee-wrap::after { background:linear-gradient(-90deg,var(--bg2),transparent); }
    .marquee-track { display:flex; gap:56px; animation:marquee 28s linear infinite; width:max-content; }
    .marquee-track:hover { animation-play-state:paused; }
    @keyframes marquee { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
    .marquee-item { display:flex; align-items:center; gap:12px; white-space:nowrap; font-family:var(--font-mono); font-size:12.5px; color:var(--text-muted); letter-spacing:.04em; }
    .marquee-item .dot { width:5px; height:5px; border-radius:50%; background:var(--accent2); opacity:.6; }

    #testimonials { padding: clamp(80px, 12vw, 120px) clamp(20px,5vw,80px); }
    .test-header { text-align:center; margin-bottom: clamp(40px, 6vw, 64px); }
    .testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
    .test-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:clamp(24px, 3vw, 32px); position:relative; transition:border-color .25s, transform .25s, box-shadow .25s; box-shadow: var(--shadow-card); }
    .test-card:hover { border-color:var(--border-strong); transform: translateY(-3px); }
    .test-card::before { content:'"'; position:absolute; top:14px; right:22px; font-family:var(--font-head); font-size:64px; color:rgba(59,130,246,.14); line-height:1; }
    .test-text { font-size:15px; color:var(--text); line-height:1.7; margin-bottom:24px; letter-spacing: -.005em; }
    [data-theme="light"] .test-text { color: var(--text-muted); }
    .test-author { display:flex; align-items:center; gap:12px; }
    .test-avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent-green)); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13.5px; color:#fff; flex-shrink: 0; box-shadow: 0 4px 12px var(--accent-glow); }
    .test-name { font-weight:600; font-size:14px; color:var(--text); }
    .test-role { font-size:12px; color:var(--text-dim); font-family:var(--font-mono); margin-top: 2px; }
    .test-stars { display:flex; gap:3px; margin-bottom:16px; }
    .star { color:#fbbf24; font-size:13px; }

    #cta { padding: clamp(80px, 12vw, 120px) clamp(20px,5vw,80px); text-align:center; position:relative; overflow:hidden; }
    #cta::before { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width: min(800px, 95vw); height:400px; background:radial-gradient(ellipse,rgba(59,130,246,.14),transparent 70%); pointer-events:none; }
    [data-theme="light"] #cta::before { background:radial-gradient(ellipse,rgba(37,99,235,.10),transparent 70%); }
    .cta-title { font-family:var(--font-head); font-size:clamp(30px, 5vw, 60px); font-weight:700; letter-spacing:-.035em; color:var(--text); margin-bottom:18px; line-height: 1.08; }
    .cta-sub { font-size: clamp(15px, 1.6vw, 18px); color:var(--text-muted); margin-bottom:36px; max-width:500px; margin-left:auto; margin-right:auto; line-height: 1.6; }
    .cta-actions { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
    .cta-note { margin-top:22px; font-family:var(--font-mono); font-size:12px; color:var(--text-dim); }

    footer { border-top:1px solid var(--border); padding: clamp(48px, 7vw, 60px) clamp(20px,5vw,80px) 36px; background: var(--bg2); }
    .footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); margin-bottom: clamp(36px, 5vw, 48px); }
    .footer-brand .logo { margin-bottom:16px; display:inline-flex; }
    .footer-brand p { font-size:14px; color:var(--text-muted); line-height:1.7; max-width:280px; }
    .footer-col .footer-h { font-family:var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-dim); margin-bottom:16px; }
    .footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
    .footer-col ul a { font-size:14px; color:var(--text-muted); text-decoration:none; transition:color .2s; }
    .footer-col ul a:hover { color:var(--text); }
    .footer-bottom { padding-top:28px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
    .footer-bottom p { font-size:13px; color:var(--text-dim); font-family:var(--font-mono); }
    .footer-social { display:flex; gap:12px; }
    .social-link { width:36px; height:36px; border:1px solid var(--border); border-radius:9px; display:flex; align-items:center; justify-content:center; color:var(--text-muted); text-decoration:none; font-size:14px; transition:all .2s; background: var(--surface); }
    .social-link:hover { border-color:var(--accent); color:var(--accent2); background:rgba(59,130,246,.08); transform: translateY(-2px); }

    @keyframes fadeUp { from { opacity:0;transform:translateY(24px); } to { opacity:1;transform:translateY(0); } }
    .reveal { opacity:0; transform:translateY(28px); transition:opacity .7s ease,transform .7s ease; }
    .reveal.visible { opacity:1; transform:translateY(0); }

    /* Tablet landscape */
    @media (max-width:1024px) {
      .features-grid { grid-template-columns:repeat(2,1fr); }
      .feature-card.large { grid-column:span 2; }
      .testimonials-grid { grid-template-columns:1fr 1fr; gap: 18px; }
      .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
      .nav-links { gap: 22px; }
    }

    /* Tablet portrait */
    @media (max-width:860px) {
      .nav-links li:nth-child(4),
      .nav-links li:nth-child(5) { display: none; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .feature-card.large { grid-column:span 1; }
      .features-grid { grid-template-columns: 1fr 1fr; }
      .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
      .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 480px; }
    }

    /* Mobile */
    @media (max-width:768px) {
      nav { padding: 0 18px; height: 60px; }
      nav.scrolled { height: 54px; }
      .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary, #themeToggleDesktop, .nav-search { display:none; }
      .hamburger { display:flex; }
      .logo { font-size: 19px; }
      .logo-icon { width: 32px; height: 32px; font-size: 13px; }

      #hero { padding: 96px 20px 56px; }
      .hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 22px; }
      .hero-title { line-height: 1.08; margin-bottom: 16px; max-width: 100%; }
      .hero-sub { margin-bottom: 28px; }
      .hero-actions .btn-lg { padding: 13px 22px; font-size: 14px; }
      .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; padding-top: 36px; }
      .stat-num { font-size: 26px; }
      .stat-label { font-size: 11.5px; }
      .terminal-wrap { margin-top: 44px; }
      .terminal-body { font-size: 11px; padding: 16px; min-height: 160px; }

      .marquee-wrap { padding: 28px 0; }
      .marquee-item { font-size: 12px; }
      .marquee-track { gap: 40px; }

      .features-grid { grid-template-columns:1fr; }
      .features-header { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 36px; }
      .features-header .section-sub { max-width: 100%; }

      .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; gap: 18px; }

      .step-item { gap: 18px; padding-bottom: 32px; }
      .step-content { padding: 22px 20px; }
      .step-title { font-size: 17px; }
      .step-desc { font-size: 14px; }

      #features, #how, #pricing, #testimonials, #cta { padding: 72px 20px; }
      .footer-grid { grid-template-columns:1fr 1fr; gap: 28px; }
      .footer-brand { grid-column: 1 / -1; }
      footer { padding: 48px 20px 28px; }
      .footer-bottom { flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }

      /* Comfortable touch targets (Google mobile-friendly wants ~44px+) */
      .footer-col ul { gap: 2px; }
      .footer-col ul a { display: inline-flex; align-items: center; min-height: 44px; }
      .footer-social { gap: 14px; }
      .social-link { width: 44px; height: 44px; font-size: 15px; }
      .mobile-menu a.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; }
    }

    @media (max-width:480px) {
      nav { padding: 0 14px; }
      #hero { padding: 88px 16px 48px; }
      .hero-badge { font-size: 10.5px; }
      .hero-actions { width: 100%; flex-direction: column; }
      .hero-actions .btn-lg { width: 100%; justify-content: center; }
      .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }

      .steps-list::before { left: 25px; }
      .step-left { width: 50px; }
      .step-node { width: 50px; height: 50px; font-size: 16px; }
      .steps-list::before { top: 50px; bottom: 50px; }

      .price-card { padding: 26px 22px; }
      .price-amount { font-size: 36px; }

      .test-card { padding: 22px 20px; }
      .test-text { font-size: 14px; }

      #features, #how, #pricing, #testimonials, #cta { padding: 60px 16px; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-brand { grid-column: auto; }

      .cta-actions { width: 100%; flex-direction: column; }
      .cta-actions .btn-lg { width: 100%; justify-content: center; }
    }

    @media (max-width: 360px) {
      .hero-stats { grid-template-columns: 1fr; gap: 18px; }
    }

    .mobile-menu { position:fixed; inset:0; background: var(--menu-bg); z-index:9999; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px; opacity:0; pointer-events:none; transition:opacity .3s; backdrop-filter:blur(20px); -webkit-backdrop-filter: blur(20px); padding: 24px; }
    .mobile-menu.open { opacity:1; pointer-events:all; }
    .mobile-menu a { font-family:var(--font-head); font-size: clamp(24px, 7vw, 32px); font-weight:600; color:var(--text-muted); text-decoration:none; transition:color .2s; letter-spacing: -.02em; }
    .mobile-menu a:hover, .mobile-menu a:active { color:var(--accent2); }
    .mobile-menu a.btn { font-size: 16px; }
    .mobile-close { position:absolute; top:20px; right:24px; font-size:24px; color:var(--text-muted); cursor:pointer; background:none; border:1px solid var(--border); border-radius: 9px; line-height:1; width:40px; height:40px; display:flex; align-items:center; justify-content:center; }

    ::-webkit-scrollbar { width:8px; height:8px; }
    ::-webkit-scrollbar-track { background:var(--bg); }
    ::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:4px; }
    ::-webkit-scrollbar-thumb:hover { background:var(--text-dim); }
    html { scrollbar-width: thin; scrollbar-color: var(--border-strong) var(--bg); }

  /* Node estimator (from the pricing section's conditional inline block) */
      .node-estimator { max-width: 760px; margin: 0 auto clamp(36px,5vw,52px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(24px,3vw,34px); box-shadow: var(--shadow-card); }
      .ne-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
      .ne-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
      .ne-nodes { font-family: var(--font-head); font-size: clamp(24px,4vw,32px); font-weight: 700; color: var(--text); letter-spacing: -.02em; }
      .ne-nodes-unit { font-size: 16px; color: var(--text-muted); font-weight: 500; font-family: var(--font-body); }
      .ne-price-wrap, .ne-contact-wrap { text-align: right; }
      .ne-price { font-family: var(--font-head); font-size: clamp(28px,5vw,40px); font-weight: 800; color: var(--accent2); line-height: 1; }
      .ne-price sup { font-size: .5em; vertical-align: super; margin-right: 2px; }
      .ne-price-unit { font-size: 15px; color: var(--text-muted); font-weight: 500; }
      .ne-price-sub { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
      .ne-contact-btn { display: inline-flex; align-items: center; gap: 8px; }
      .ne-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 100px; background: linear-gradient(90deg, var(--accent) var(--ne-fill,8%), var(--surface2) var(--ne-fill,8%)); outline: none; cursor: pointer; }
      .ne-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 12px rgba(0,0,0,.35); cursor: pointer; transition: transform .1s; }
      .ne-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
      .ne-slider::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid var(--accent); border-radius: 50%; background: #fff; cursor: pointer; }
      .ne-slider::-moz-range-progress { background: var(--accent); height: 8px; border-radius: 100px; }
      .ne-slider::-moz-range-track { background: var(--surface2); height: 8px; border-radius: 100px; }
      .ne-scale { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
      @media (max-width: 560px) { .ne-top { flex-direction: column; gap: 16px; } .ne-price-wrap, .ne-contact-wrap { text-align: left; } }

  /* FAQ accordion */
      #faq { padding: clamp(80px, 12vw, 120px) clamp(20px,5vw,80px); }
      @media (max-width:1024px){ #faq { padding: 72px 20px; } }
      @media (max-width:560px){ #faq { padding: 60px 16px; } }
      .faq-wrap { max-width: 820px; margin: 0 auto; }
      .faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 14px; overflow: hidden; transition: border-color .2s; }
      .faq-item[open] { border-color: var(--border-strong); }
      .faq-item summary { list-style: none; cursor: pointer; padding: 22px 24px; font-family: var(--font-head); font-size: clamp(16px,2.2vw,18px); font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
      .faq-item summary::-webkit-details-marker { display: none; }
      .faq-item summary .faq-ico { flex-shrink: 0; font-size: 14px; color: var(--accent2); transition: transform .25s; }
      .faq-item[open] summary .faq-ico { transform: rotate(45deg); }
      .faq-item .faq-a { padding: 0 24px 24px; color: var(--text-muted); line-height: 1.7; font-size: 15px; }
