/* Light mode (default) */
:root {
      --bg: #ffffff;
      --panel: rgba(255, 255, 255, 0.82);
      --panel-strong: rgba(255, 255, 255, 0.95);
      --panel-soft: rgba(139, 92, 246, 0.04);
      --text: #1e1b3a;
      --muted: #6b6b8a;
      --line: rgba(0, 0, 0, 0.08);
      --purple: #7c3aed;
      --purple-2: #8b5cf6;
      --pink: #ec4899;
      --cyan: #0891b2;
      --green: #16a34a;
      --yellow: #d97706;
      --danger: #dc2626;
      --shadow: 0 24px 80px rgba(100, 60, 180, 0.1);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --container: 1200px;
      --ease: cubic-bezier(.22,1,.36,1);
    }

/* Dark mode */
html.dark {
      --bg: #07070d;
      --panel: rgba(20, 20, 34, 0.72);
      --panel-strong: rgba(24, 24, 42, 0.92);
      --panel-soft: rgba(255, 255, 255, 0.05);
      --text: #f5f7ff;
      --muted: #a9afc7;
      --line: rgba(255, 255, 255, 0.11);
      --purple: #8b5cf6;
      --purple-2: #b794ff;
      --pink: #ec4899;
      --cyan: #22d3ee;
      --green: #22c55e;
      --yellow: #fbbf24;
      --danger: #ef4444;
      --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text);
      background: #ffffff;
      overflow-x: hidden;
      transition: background 0.3s, color 0.3s;
    }
    html.dark body {
      background:
        radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.18), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(34, 211, 238, 0.12), transparent 25%),
        radial-gradient(circle at 50% 100%, rgba(236, 72, 153, 0.12), transparent 28%),
        linear-gradient(180deg, #5f5f6a 0%, #380d62e0 52%, #282849 100%);
    }

    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }

    .noise,
    .grid,
    .aurora {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -3;
      opacity: 0;
      transition: opacity 0.3s;
    }
    html.dark .noise,
    html.dark .grid,
    html.dark .aurora { opacity: 1; }

    .grid {
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 56px 56px;
      mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
      z-index: -2;
    }

    .aurora::before,
    .aurora::after {
      content: "";
      position: absolute;
      width: 46vw;
      height: 46vw;
      border-radius: 50%;
      filter: blur(70px);
      opacity: 0.17;
      /* No animation — static blobs save constant GPU recompositing */
    }

    .aurora::before {
      left: -8vw;
      top: -8vw;
      background: radial-gradient(circle, var(--purple) 0%, transparent 65%);
    }

    .aurora::after {
      right: -10vw;
      top: 10vh;
      background: radial-gradient(circle, var(--cyan) 0%, transparent 65%);
      /* static — no animation */
    }

    .noise {
      /* Removed SVG noise filter — was causing constant GPU repaint */
      display: none;
    }

    .container {
      width: min(var(--container), calc(100% - 32px));
      margin-inline: auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, 0.95);
      border-bottom: 1px solid var(--line);
    }
    html.dark .topbar {
      background: rgba(7, 7, 13, 0.85);
      border-bottom-color: rgba(255,255,255,0.06);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      min-height: 76px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(139,92,246,.95), rgba(34,211,238,.7));
      box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 10px 30px rgba(139,92,246,.35);
      display: grid;
      place-items: center;
      font-size: 0.95rem;
      font-weight: 800;
    }

    .brand small {
      display: block;
      color: var(--muted);
      font-size: 0.78rem;
      font-weight: 500;
      margin-top: 2px;
    }

    .nav-links {
      display: flex;
      gap: 22px;
      align-items: center;
      color: var(--muted);
      font-size: 0.97rem;
    }

    .nav-links a:hover { color: var(--purple); }
    html.dark .nav-links a:hover { color: white; }

    .btn,
    button {
      appearance: none;
      border: 0;
      cursor: pointer;
      font: inherit;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 50px;
      padding: 0 20px;
      border-radius: 999px;
      font-weight: 700;
      transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease);
      /* will-change removed — causes persistent GPU layer */
    }

    .btn:hover { transform: translateY(-2px); }

    .btn-primary {
      color: white;
      background: linear-gradient(135deg, var(--purple), #6d5dfc 55%, var(--pink));
      box-shadow: 0 14px 40px rgba(139,92,246,.35);
    }

    .btn-secondary {
      color: white;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.12);
    }

    .hero {
      padding: 70px 0 30px;
      position: relative;
    }

    .hero-wrap {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 42px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.1);
      background: rgba(255,255,255,.03);
      color: #d6d8e5;
      font-size: 0.92rem;
      margin-bottom: 18px;
    }

    .pulse {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 0 0 rgba(34,197,94,.7);
      /* pulse animation removed for performance */
    }

    h1 {
      margin: 0;
      font-size: clamp(2.8rem, 6vw, 5.6rem);
      line-height: 0.96;
      letter-spacing: -0.06em;
      max-width: 12ch;
    }

    .gradient-text {
      background: linear-gradient(135deg, white 10%, #d3c2ff 42%, #8ce6ff 74%, white 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero p {
      margin: 22px 0 0;
      max-width: 58ch;
      color: var(--muted);
      font-size: clamp(1rem, 1.4vw, 1.15rem);
      line-height: 1.75;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 28px;
    }

    .hero-stats {
      margin-top: 28px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      max-width: 720px;
    }

    .stat {
      padding: 18px;
      border-radius: 18px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    }

    .stat strong {
      display: block;
      font-size: 1.4rem;
      letter-spacing: -0.03em;
      margin-bottom: 6px;
    }

    .stat span {
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.45;
    }

    .hero-visual {
      position: relative;
      min-height: 620px;
      display: grid;
      place-items: center;
    }

    .device {
      width: min(560px, 100%);
      border-radius: 32px;
      padding: 16px;
      background: var(--panel-strong);
      box-shadow: var(--shadow);
      border: 1px solid var(--line);
      transform: rotateY(-4deg);
      transition: transform .6s var(--ease);
      position: relative;
      z-index: 2;
    }

    .hero-visual:hover .device {
      transform: rotateY(-2deg) translateY(-4px);
    }

    .screen {
      overflow: hidden;
      border-radius: 24px;
      background: var(--panel-strong);
      border: 1px solid var(--line);
    }
    html.dark .screen { background: linear-gradient(180deg, #0b0d16, #090a13); border-color: rgba(255,255,255,.09); }

    .screen-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      background: var(--panel-soft);
    }
    html.dark .screen-top { border-bottom-color: rgba(255,255,255,.08); }

    .dots { display: flex; gap: 8px; }
    .dots span {
      width: 10px; height: 10px; border-radius: 50%;
      background: var(--line);
    }
    html.dark .dots span { background: rgba(255,255,255,.22); }

    .mini-pill {
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(124,58,237,.1);
      color: var(--purple);
      border: 1px solid rgba(124,58,237,.2);
      font-size: 0.8rem;
      font-weight: 700;
    }
    html.dark .mini-pill { background: rgba(139,92,246,.14); color: #dfd2ff; border-color: rgba(139,92,246,.25); }

    .screen-body {
      padding: 18px;
      display: grid;
      gap: 16px;
    }

    .prediction-card,
    .chart-card,
    .mini-card,
    .glass-card,
    .pricing-card,
    .step,
    .feature-card,
    .testimonial,
    .faq-item,
    .support-card {
      background: var(--panel);
      border: 1px solid var(--line);
    }
    html.dark .glass-card,
    html.dark .pricing-card,
    html.dark .step,
    html.dark .feature-card,
    html.dark .testimonial,
    html.dark .faq-item,
    html.dark .support-card {
      border-color: rgba(255,255,255,.09);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }

    .prediction-card {
      padding: 18px;
      border-radius: 22px;
    }

    .prediction-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 16px;
    }

    .prediction-top h3,
    .section-head h2,
    .feature-card h3,
    .pricing-card h3,
    .step h3,
    .faq-item h3,
    .support-card h3 { margin: 0; }

    .pred-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(34,197,94,.12);
      color: #b7ffd0;
      font-weight: 800;
      border: 1px solid rgba(34,197,94,.24);
    }

    .metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .metric {
      padding: 14px;
      border-radius: 18px;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.06);
    }

    .metric small,
    .label,
    .muted {
      display: block;
      color: var(--muted);
      font-size: 0.8rem;
      margin-bottom: 7px;
    }

    .metric strong { font-size: 1.15rem; }

    .chart-card {
      border-radius: 22px;
      padding: 18px;
    }

    .chart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    .chart-canvas {
      position: relative;
      height: 220px;
      border-radius: 18px;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(139,92,246,.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
      border: 1px solid rgba(255,255,255,.07);
    }

    .chart-grid,
    .chart-line,
    .candles,
    .glow-line {
      position: absolute;
      inset: 0;
    }

    .chart-grid {
      background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
      background-size: 48px 44px;
      opacity: 0.35;
    }

    .chart-line svg,
    .glow-line svg,
    .candles svg { width: 100%; height: 100%; }

    .floating {
      position: absolute;
      border-radius: 22px;
      padding: 16px;
      width: 220px;
      background: rgba(11, 14, 25, 0.8);
      border: 1px solid rgba(255,255,255,.11);
      /* backdrop-filter removed for performance */
      box-shadow: var(--shadow);
      z-index: 1;
    }

    .floating.f1 {
      top: 10%;
      right: -3%;
      /* animation removed for performance */
    }

    .floating.f2 {
      bottom: 10%;
      left: -3%;
      /* animation removed for performance */
    }

    .floating strong {
      font-size: 1.3rem;
      display: block;
      margin-bottom: 6px;
    }

    section {
      padding: 72px 0;
      position: relative;
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 28px;
    }

    .section-head p {
      margin: 10px 0 0;
      max-width: 60ch;
      color: var(--muted);
      line-height: 1.75;
    }

    .kicker {
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: #ccb7ff;
      font-size: 0.78rem;
      font-weight: 800;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .feature-card {
      border-radius: 24px;
      padding: 24px;
      position: relative;
      overflow: hidden;
      min-height: 280px;
    }

    .feature-card::before {
      content: "";
      position: absolute;
      inset: auto -30px -70px auto;
      width: 160px;
      height: 160px;
      background: radial-gradient(circle, rgba(139,92,246,.22), transparent 70%);
      /* filter blur removed for performance */
    }

    .icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: rgba(255,255,255,.06);
      margin-bottom: 18px;
      border: 1px solid rgba(255,255,255,.08);
      font-size: 1.3rem;
    }

    .feature-card p,
    .step p,
    .pricing-card p,
    .testimonial p,
    .support-card p,
    .faq-answer {
      color: var(--muted);
      line-height: 1.72;
      margin-top: 10px;
    }

    .showcase-stack {
      display: grid;
      gap: 18px;
    }

    .glass-card {
      border-radius: 28px;
      padding: 28px;
      overflow: hidden;
      position: relative;
    }

    .large-visual {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .top-ribbon {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
    }

    .status-cluster {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .chip {
      padding: 10px 13px;
      border-radius: 999px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08);
      font-size: 0.88rem;
    }

    .big-dashboard {
      display: grid;
      grid-template-columns: 1.3fr 0.7fr;
      gap: 18px;
    }

    .showcase-features {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 18px;
    }

    .panel {
      border-radius: 22px;
      padding: 18px;
      background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.07);
    }

    .side-stack {
      display: grid;
      gap: 18px;
    }

    .mini-card {
      border-radius: 20px;
      padding: 18px;
    }

    .risk-bar {
      margin-top: 14px;
      height: 12px;
      border-radius: 999px;
      background: rgba(255,255,255,.06);
      overflow: hidden;
    }

    .risk-fill {
      height: 100%;
      width: 72%;
      background: linear-gradient(90deg, var(--green), var(--yellow), var(--danger));
      border-radius: inherit;
      animation: slideGrow 2.2s var(--ease);
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }

    .step {
      border-radius: 24px;
      padding: 24px;
      position: relative;
    }

    .step-num {
      font-size: 0.86rem;
      font-weight: 800;
      color: #cfbdfd;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }

    .pricing-card {
      border-radius: 26px;
      padding: 26px;
      position: relative;
      overflow: hidden;
    }

    .pricing-card.featured {
      background: linear-gradient(180deg, rgba(139,92,246,.18), rgba(24,24,42,.9));
      border-color: rgba(183,148,255,.35);
      transform: translateY(-8px);
    }

    .plan-tag {
      position: absolute;
      top: 16px;
      right: 16px;
      font-size: 0.74rem;
      font-weight: 800;
      letter-spacing: 0.13em;
      text-transform: uppercase;
      padding: 9px 12px;
      border-radius: 999px;
      color: #f8eeff;
      background: rgba(255,255,255,.09);
      border: 1px solid rgba(255,255,255,.16);
    }

    .price {
      display: flex;
      align-items: end;
      gap: 6px;
      margin: 12px 0 16px;
    }

    .price strong {
      font-size: 2.5rem;
      letter-spacing: -0.05em;
      line-height: 1;
    }

    .price span { color: var(--muted); margin-bottom: 4px; }

    .pricing-list {
      padding: 0;
      margin: 18px 0 0;
      list-style: none;
      display: grid;
      gap: 12px;
    }

    .pricing-list li {
      display: flex;
      gap: 10px;
      align-items: start;
      color: #d9ddf0;
    }

    .pricing-list li::before {
      content: "✦";
      color: #c5b3ff;
      margin-top: 1px;
    }

    .testimonials {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .testimonial {
      border-radius: 24px;
      padding: 22px;
    }

    .testimonial .author {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 18px;
      color: #dde1f3;
    }

    .avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, rgba(139,92,246,.9), rgba(34,211,238,.8));
      font-weight: 800;
    }

    .faq {
      display: grid;
      gap: 14px;
    }

    .faq-item {
      border-radius: 22px;
      overflow: hidden;
    }

    .faq-btn {
      width: 100%;
      text-align: left;
      color: white;
      background: transparent;
      padding: 20px 22px;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
    }

    .faq-answer {
      padding: 0 22px 20px;
      display: none;
    }

    .faq-item.active .faq-answer { display: block; }
    .faq-item.active .faq-plus { transform: rotate(45deg); }
    .faq-plus {
      font-size: 1.7rem;
      line-height: 1;
      color: #d8ccff;
      transition: transform .25s ease;
      flex: 0 0 auto;
    }

    .cta {
      padding-bottom: 96px;
    }

    .cta-wrap {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 18px;
      align-items: stretch;
    }

    .cta-main,
    .support-card {
      border-radius: 28px;
      padding: 30px;
      background: linear-gradient(180deg, rgba(124,58,237,.06), rgba(248,249,252,1));
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }
    html.dark .cta-main,
    html.dark .support-card {
      background: linear-gradient(180deg, rgba(139,92,246,.16), rgba(16,18,29,.95));
      border-color: rgba(255,255,255,.1);
    }

    .cta-main p { color: var(--muted); max-width: 58ch; line-height: 1.75; }

    .footer {
      padding: 28px 0 50px;
      color: var(--muted);
      border-top: 1px solid var(--line);
    }

    .footer-wrap {
      display: flex;
      gap: 14px;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }

    .reveal {
      opacity: 0;
      transform: translateY(34px) scale(.985);
      transition: opacity .8s var(--ease), transform .8s var(--ease);
    }

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

    [data-parallax] {
      transform: translateY(var(--parallax, 0px));
      transition: transform .15s linear;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(34,197,94,.65); }
      70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
      100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
    }

    @keyframes floatBlob {
      0% { transform: translate3d(0,0,0) scale(1); }
      100% { transform: translate3d(3vw, 3vh, 0) scale(1.08); }
    }

    @keyframes bob {
      0%,100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

    @keyframes slideGrow {
      from { width: 0%; }
      to { width: 72%; }
    }

    @media (max-width: 1080px) {
      .hero-wrap,
      .cta-wrap,
      .big-dashboard {
        grid-template-columns: 1fr;
      }

      .showcase-features {
        grid-template-columns: repeat(2, 1fr);
      }

      .feature-grid,
      .steps,
      .pricing-grid,
      .testimonials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .hero-visual { min-height: auto; padding-top: 10px; }
      .device { transform: none; }
      .floating.f1 { right: 4%; }
      .floating.f2 { left: 4%; }
    }

    @media (max-width: 760px) {
      .nav-links { display: none; }
      .hero { padding-top: 34px; }
      h1 { max-width: none; }
      .hero-stats,
      .metrics,
      .feature-grid,
      .steps,
      .pricing-grid,
      .testimonials,
      .showcase-features { grid-template-columns: 1fr; }
      .section-head { display: block; }
      .large-visual { min-height: auto; }
      .floating { position: relative; width: 100%; inset: auto; margin-top: 14px; }
      .hero-visual { display: block; }
      .screen-body { padding: 14px; }
      .chart-canvas { height: 180px; }
      .cta-main, .support-card, .glass-card { padding: 22px; }
    }
    /* Theme toggle */
    .theme-toggle {
      background: var(--panel);
      border: 1px solid var(--line);
      color: var(--muted);
      width: 38px; height: 38px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .theme-toggle:hover { color: var(--purple); border-color: var(--purple); }

    /* Footer links */
    .footer-links { display: flex; gap: 16px; }
    .footer-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
    .footer-links a:hover { color: var(--purple); }

    /* Light mode panel adjustments */
    :root .topbar { /* backdrop-filter removed for performance */ }
    html.dark .brand-mark { background: linear-gradient(135deg, var(--purple), var(--pink)); }
    :root .brand-mark { background: linear-gradient(135deg, var(--purple), #a855f7); }
