:root{
    --bg: #070A12;
    --bg2:#0B1023;
    --text:#EAF0FF;
    --muted:#A8B3D6;
    --line: rgba(255,255,255,.08);
    --glass: rgba(255,255,255,.06);
    --glass2: rgba(255,255,255,.10);
    --shadow: 0 30px 80px rgba(0,0,0,.55);
    --radius: 20px;
    --radius2: 28px;
  
    --a: #7C3AED;
    --b: #22D3EE;
    --c: #10B981;
    --danger:#FF4D6D;
    --warn:#FFB020;
    --ok:#2EE59D;
  }
  
  [data-theme="light"]{
    --bg: #F6F8FF;
    --bg2:#EEF2FF;
    --text:#0B1023;
    --muted:#4B5563;
    --line: rgba(0,0,0,.08);
    --glass: rgba(0,0,0,.04);
    --glass2: rgba(0,0,0,.07);
    --shadow: 0 30px 80px rgba(15, 23, 42, .18);
  }
  
  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:var(--text);
    background: radial-gradient(1200px 800px at 70% 20%, rgba(124,58,237,.25), transparent 55%),
                radial-gradient(900px 700px at 30% 70%, rgba(34,211,238,.18), transparent 55%),
                linear-gradient(160deg, var(--bg), var(--bg2));
    overflow-x:hidden;
  }
  
  a{ color:inherit; text-decoration:none; }
  code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
  
  .page{
    width:min(1180px, calc(100% - 40px));
    margin:0 auto;
    padding: 96px 0 40px;
    position:relative;
    z-index:2;
  }
  
  /* Background layers */
  #particles{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    z-index:0;
    opacity:.65;
  }
  .bg-grid{
    position:fixed;
    inset:0;
    z-index:1;
    background-image:
      linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(600px 400px at 50% 30%, #000 40%, transparent 75%);
    opacity:.35;
    pointer-events:none;
  }
  .bg-vignette{
    position:fixed;
    inset:-20px;
    z-index:1;
    background: radial-gradient(900px 600px at 50% 20%, transparent 30%, rgba(0,0,0,.35) 85%);
    pointer-events:none;
  }
  
  /* Topbar */
  .topbar{
    position:fixed;
    top:16px;
    left:50%;
    transform:translateX(-50%);
    width:min(1180px, calc(100% - 40px));
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding: 12px 14px;
    border:1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
    backdrop-filter: blur(14px);
    border-radius: 999px;
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
    z-index:10;
  }
  
  .brand{ display:flex; align-items:center; gap:10px; padding:6px 10px; border-radius:999px; }
  .brand__logo{ width:28px; height:28px; border-radius:8px; object-fit:cover; }
  .brand__name{ font-weight:800; letter-spacing:-.02em; }
  .brand__accent{
    background: linear-gradient(90deg, var(--a), var(--b));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }
  
  .nav{ display:flex; gap:18px; align-items:center; opacity:.95; }
  .nav a{
    font-size: 14px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: .25s ease;
  }
  .nav a:hover{
    color: var(--text);
    border-color: var(--line);
    background: rgba(255,255,255,.05);
  }
  
  .topbar__actions{ display:flex; gap:10px; align-items:center; }
  
  /* Buttons */
  .btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    color: var(--text);
    cursor:pointer;
    transition: transform .18s ease, background .25s ease, border-color .25s ease;
    user-select:none;
    white-space:nowrap;
  }
  .btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.16); }
  .btn:active{ transform: translateY(0px) scale(.99); }
  .btn__icon{ opacity:.9; }
  
  .btn--primary{
    border-color: rgba(124,58,237,.40);
    background: linear-gradient(135deg, rgba(124,58,237,.40), rgba(34,211,238,.20));
    overflow:hidden;
  }
  .btn--ghost{
    background: transparent;
  }
  .btn--soft{
    background: rgba(255,255,255,.03);
  }
  .btn__glow{
    position:absolute;
    inset:-2px;
    background: radial-gradient(220px 120px at 20% 40%, rgba(124,58,237,.65), transparent 60%),
                radial-gradient(220px 120px at 80% 60%, rgba(34,211,238,.55), transparent 60%);
    filter: blur(12px);
    opacity:.65;
    z-index:0;
    pointer-events:none;
  }
  .btn__text{ position:relative; z-index:1; }
  
  /* Hero */
  .hero{
    display:grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items:center;
    padding-top: 30px;
  }
  
  .pill{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size: 13px;
    color: var(--muted);
    padding: 10px 12px;
    border:1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
  }
  .dot{
    width:10px; height:10px; border-radius:999px;
    background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.25));
    box-shadow: 0 0 0 6px rgba(124,58,237,.10), 0 0 30px rgba(34,211,238,.25);
  }
  
  .hero__title{
    margin: 14px 0 10px;
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }
  .grad{
    background: linear-gradient(90deg, var(--a), var(--b), var(--c));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }
  .hero__subtitle{
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 58ch;
  }
  .hero__cta{ margin-top: 18px; display:flex; gap:12px; flex-wrap:wrap; }
  .hero__stats{
    margin-top: 18px;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:12px;
  }
  .stat{
    padding: 14px 14px;
    border:1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
  }
  .stat__value{
    font-weight:800;
    font-size: 18px;
    letter-spacing:-.02em;
  }
  .stat__label{
    margin-top:6px;
    color:var(--muted);
    font-size: 12px;
  }
  
  /* Hero visual */
  .hero__visual{
    position:relative;
    min-height: 520px;
  }
  .orb{
    position:absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(22px);
    opacity:.55;
    transform: translateZ(0);
  }
  .orb--a{
    right:-40px; top:-30px;
    background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.9), transparent 60%);
  }
  .orb--b{
    left:-50px; bottom:-40px;
    background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.75), transparent 60%);
  }
  
  /* 3D Card */
  .card3d{
    position:absolute;
    inset: 40px 40px auto 40px;
    border-radius: var(--radius2);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
    box-shadow: var(--shadow);
    overflow:hidden;
    transform-style:preserve-3d;
  }
  .card3d::before{
    content:"";
    position:absolute; inset:-2px;
    background: radial-gradient(500px 200px at 20% 20%, rgba(124,58,237,.25), transparent 60%),
                radial-gradient(500px 200px at 80% 60%, rgba(34,211,238,.22), transparent 60%);
    opacity:.8;
    pointer-events:none;
  }
  .card3d__top{
    position:relative;
    z-index:1;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 16px 16px 12px;
  }
  .badge{
    font-size: 11px;
    letter-spacing:.12em;
    font-weight:800;
    padding: 8px 10px;
    border-radius: 999px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: var(--text);
  }
  .badge--soft{
    border-color: var(--line);
    background: rgba(255,255,255,.03);
    color: var(--muted);
  }
  .mini-dots span{
    display:inline-block;
    width:8px; height:8px; border-radius:999px;
    margin-left:6px;
    background: rgba(255,255,255,.18);
  }
  
  .card3d__body{
    position:relative;
    z-index:1;
    padding: 8px 16px 14px;
  }
  
  .meter__label{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    color: var(--muted);
    font-size: 13px;
  }
  .meter__label strong{
    color: var(--text);
    font-size: 22px;
    letter-spacing:-.02em;
  }
  .meter__bar{
    margin-top:10px;
    height: 10px;
    border-radius:999px;
    border:1px solid var(--line);
    background: rgba(0,0,0,.18);
    overflow:hidden;
  }
  .meter__fill{
    height:100%;
    width:0%;
    border-radius:999px;
    background: linear-gradient(90deg, var(--a), var(--b), var(--c));
    box-shadow: 0 0 20px rgba(34,211,238,.25);
    transition: width .8s ease;
  }
  
  .chips{ margin-top: 12px; display:flex; flex-wrap:wrap; gap:8px; }
  .chip{
    font-size:12px;
    padding: 7px 10px;
    border-radius: 999px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--muted);
  }
  .chip--hot{
    color: #fff;
    border-color: rgba(255,77,109,.35);
    background: rgba(255,77,109,.10);
  }
  
  .mini-chart{ margin-top: 14px; }
  .mini-chart svg{ width:100%; height:80px; }
  #spark{
    fill:none;
    stroke: rgba(255,255,255,.72);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
  }
  .mini-chart__labels{
    display:flex;
    justify-content:space-between;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
  }
  
  .scanline{
    position:absolute;
    inset:0;
    background: linear-gradient(to bottom, transparent 0%, rgba(34,211,238,.10) 48%, transparent 100%);
    transform: translateY(-120%);
    animation: scanline 2.8s linear infinite;
    mix-blend-mode: screen;
    opacity:.75;
    pointer-events:none;
  }
  @keyframes scanline{
    0%{ transform: translateY(-120%); }
    100%{ transform: translateY(120%); }
  }
  
  .card3d__footer{
    position:relative;
    z-index:1;
    padding: 14px 16px 18px;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
  }
  .kpi__num{ font-weight:800; font-size: 18px; letter-spacing:-.02em; }
  .kpi__txt{ color:var(--muted); font-size: 12px; margin-top:4px; }
  
  /* Floating cards */
  .floatcard{
    position:absolute;
    left: 0;
    bottom: 14px;
    width: 260px;
    border-radius: 18px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 55px rgba(0,0,0,.35);
    overflow:hidden;
    transform-style:preserve-3d;
  }
  .floatcard--right{
    left:auto;
    right: 0;
    bottom: 120px;
    width: 270px;
  }
  .floatcard__title{
    padding: 14px 14px 10px;
    font-weight:700;
    letter-spacing:-.02em;
  }
  .floatcard__img{
    position:relative;
    height: 150px;
    background: rgba(0,0,0,.2);
  }
  .floatcard__img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .imgph{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding: 10px;
    color: var(--muted);
    font-size: 12px;
  }
  
  /* Sections */
  .section{ padding: 70px 0; }
  .section__head h2{
    margin:0;
    font-size: 30px;
    letter-spacing:-.03em;
  }
  .section__head p{
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 80ch;
  }
  
  .grid{ display:grid; gap: 14px; }
  .features{
    margin-top: 18px;
    grid-template-columns: repeat(4, 1fr);
  }
  .feature{
    padding: 18px;
    border-radius: 18px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.03);
  }
  .feature__icon{ font-size: 20px; }
  .feature h3{ margin: 10px 0 8px; letter-spacing:-.02em; }
  .feature p{ margin:0; color: var(--muted); line-height: 1.7; font-size: 14px; }
  
  .section--split .split{
    margin-top: 18px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  
  .panel{
    border-radius: 22px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.04);
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
    overflow:hidden;
  }
  .panel__top{
    padding: 16px 16px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid var(--line);
  }
  .panel__top h3{ margin:0; letter-spacing:-.02em; }
  .panel__actions{ display:flex; gap:10px; flex-wrap:wrap; }
  .panel__body{ padding: 16px; }
  
  .progress__row{
    display:flex;
    justify-content:space-between;
    color: var(--muted);
    font-size: 13px;
  }
  .progress__bar{
    margin: 10px 0;
    height: 12px;
    border-radius: 999px;
    border:1px solid var(--line);
    background: rgba(0,0,0,.16);
    overflow:hidden;
  }
  .progress__fill{
    width: 0%;
    height:100%;
    border-radius:999px;
    background: linear-gradient(90deg, var(--a), var(--b), var(--c));
    transition: width .2s linear;
  }
  .timeline{
    margin-top: 14px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .event{
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding: 10px 12px;
    border-radius: 14px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--muted);
    font-size: 13px;
  }
  .event strong{ color: var(--text); font-weight:700; }
  
  .panel--terminal .panel__body{ padding:0; }
  
  .terminal{
    margin:0;
    padding: 16px;
    height: 320px;
    overflow:auto;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255,255,255,.90);
    background:
      radial-gradient(600px 300px at 30% 10%, rgba(124,58,237,.18), transparent 55%),
      radial-gradient(600px 300px at 70% 90%, rgba(34,211,238,.12), transparent 60%),
      rgba(0,0,0,.25);
  }
  .terminal__footer{
    padding: 12px 16px;
    border-top:1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .sep{ opacity:.55; }
  .dot--ok{ background: var(--ok); width:8px; height:8px; border-radius:999px; display:inline-block; }
  .dot--warn{ background: var(--warn); width:8px; height:8px; border-radius:999px; display:inline-block; }
  .dot--err{ background: var(--danger); width:8px; height:8px; border-radius:999px; display:inline-block; }
  
  /* Showcase */
  .showcase{
    margin-top: 18px;
    display:grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    gap: 14px;
  }
  .shot{
    border-radius: 22px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.03);
    overflow:hidden;
    min-height: 260px;
    position:relative;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
  }
  .shot img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .shot__cap{
    position:absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px 12px;
    border-radius: 16px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(10px);
  }
  .shot__cap strong{ display:block; }
  .shot__cap span{ color: var(--muted); font-size: 12.5px; }
  
  .shot__mock{
    padding: 18px;
    height:100%;
  }
  .mockline{
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    margin-bottom: 12px;
  }
  .mockline.short{ width: 65%; }
  .mockgrid{
    margin-top: 18px;
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .mockgrid div{
    height: 90px;
    border-radius: 16px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.04);
  }
  
  .shot__mock--alerts{
    position:relative;
  }
  .alert{
    height: 54px;
    border-radius: 16px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.04);
    margin-bottom: 12px;
  }
  .alert.a1{ box-shadow: inset 0 0 0 1px rgba(255,77,109,.22); }
  .alert.a2{ box-shadow: inset 0 0 0 1px rgba(255,176,32,.22); }
  .alert.a3{ box-shadow: inset 0 0 0 1px rgba(46,229,157,.22); }
  
  /* CTA */
  .cta{
    padding: 70px 0;
  }
  .cta__inner{
    border-radius: 26px;
    border:1px solid var(--line);
    background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(34,211,238,.12));
    box-shadow: var(--shadow);
    padding: 26px;
    overflow:hidden;
    position:relative;
  }
  .cta__inner::after{
    content:"";
    position:absolute;
    inset:-2px;
    background: radial-gradient(600px 220px at 20% 20%, rgba(124,58,237,.25), transparent 60%),
                radial-gradient(600px 220px at 80% 80%, rgba(34,211,238,.20), transparent 60%);
    pointer-events:none;
    opacity:.9;
  }
  .cta__inner > *{ position:relative; z-index:1; }
  .cta h2{ margin:0; letter-spacing:-.03em; }
  .cta p{ margin: 10px 0 0; color: var(--muted); line-height: 1.7; max-width: 82ch; }
  .cta__actions{ margin-top: 18px; display:flex; gap:12px; flex-wrap:wrap; }
  
  /* FAQ + footer */
  .faq{ margin-top: 18px; display:grid; gap: 10px; }
  details{
    border-radius: 18px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.03);
    padding: 12px 14px;
  }
  summary{
    cursor:pointer;
    font-weight:700;
    letter-spacing:-.02em;
  }
  details p{ color: var(--muted); line-height:1.7; margin: 10px 0 0; }
  
  .footer{
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display:flex;
    justify-content:space-between;
    align-items:center;
    color: var(--muted);
    font-size: 13px;
  }
  
  /* Modal */
  .modal{
    position:fixed;
    inset:0;
    display:none;
    place-items:center;
    z-index:50;
  }
  .modal.is-open{ display:grid; }
  .modal__backdrop{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
  }
  .modal__dialog{
    position:relative;
    width:min(780px, calc(100% - 30px));
    border-radius: 24px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.06);
    box-shadow: var(--shadow);
    overflow:hidden;
    z-index:1;
  }
  .modal__top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 14px 16px;
    border-bottom:1px solid var(--line);
  }
  .iconbtn{
    border:none;
    background: rgba(255,255,255,.06);
    border:1px solid var(--line);
    color: var(--text);
    border-radius: 12px;
    width: 38px;
    height: 38px;
    cursor:pointer;
  }
  .modal__body{ padding: 16px; }
  .modal__media{
    margin-top: 12px;
    height: 360px;
    border-radius: 18px;
    border:1px solid var(--line);
    background: rgba(0,0,0,.18);
    overflow:hidden;
    position:relative;
  }
  .modal__media img{ width:100%; height:100%; object-fit:cover; display:block; }
  .muted{ color: var(--muted); }
  .modal__footer{
    padding: 14px 16px;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:flex-end;
    gap:12px;
    flex-wrap:wrap;
  }
  
  /* Reveal animations */
  .reveal{
    opacity:0;
    transform: translateY(14px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.is-visible{
    opacity:1;
    transform: translateY(0);
  }
  
  /* 3D tilt helper */
  .tilt{
    transform-style:preserve-3d;
    will-change: transform;
  }
  
  /* Responsive */
  @media (max-width: 980px){
    .hero{ grid-template-columns: 1fr; }
    .hero__visual{ min-height: 560px; }
    .features{ grid-template-columns: repeat(2, 1fr); }
    .section--split .split{ grid-template-columns: 1fr; }
    .showcase{ grid-template-columns: 1fr; }
    .nav{ display:none; }
  }
  