/* ==========================================================================
   Landing page — hero, feature grid, pricing, steps, FAQ
   ========================================================================== */

.hero {
    position: relative;
    padding: 11rem 0 6rem;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-trust { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-trust div { display: grid; }
.hero-trust b { font-size: 1.5rem; font-weight: 800; }
.hero-trust span { font-size: .82rem; color: var(--muted-dim); }

.hero-typed { min-height: 1.4em; display: block; }
.hero-typed .caret {
    display: inline-block; width: 3px; height: 1em; vertical-align: -.12em;
    background: var(--brand-2); margin-left: .18em; animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* particle canvas sits behind the hero content */
#particles {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: -1; opacity: .55; pointer-events: none;
}

/* floating console mock */
.console-mock {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line-strong); background: linear-gradient(160deg, #0c1230, #080c20);
    box-shadow: var(--shadow-glow); animation: floaty 7s var(--ease) infinite alternate;
}
@keyframes floaty { to { transform: translateY(-14px); } }
.console-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line);
    background: rgba(139, 158, 255, .05); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.console-bar i:nth-child(1) { background: #ff5f6d; }
.console-bar i:nth-child(2) { background: #ffb340; }
.console-bar i:nth-child(3) { background: #2fd4a7; }
.console-bar span { margin-left: auto; font-size: .78rem; color: var(--muted-dim); font-family: var(--mono); }
.console-body { padding: 1.1rem; font-family: var(--mono); font-size: .8rem; line-height: 1.85; min-height: 268px; }
.console-body .l { display: block; opacity: 0; animation: lineIn .4s var(--ease) forwards; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.c-ok { color: #8ff0d5; } .c-warn { color: #ffd39a; } .c-info { color: #97e7ff; } .c-dim { color: var(--muted-dim); }

/* live status chips floating over the mock */
.float-chip {
    position: absolute; display: flex; align-items: center; gap: .5rem;
    padding: .55rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: rgba(10, 15, 36, .9); border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px); box-shadow: var(--shadow);
    animation: chipFloat 5s var(--ease) infinite alternate;
}
.float-chip.a { top: 8%; right: -6%; }
.float-chip.b { bottom: 12%; left: -8%; animation-delay: -2.5s; }
@keyframes chipFloat { to { transform: translateY(-12px); } }

/* -------------------------------------------------------------- section head */
.section { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 70ch; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }

/* marquee of supported platforms */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1rem 0; background: rgba(8, 12, 30, .5); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: slide 26s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ features */
.feature {
    position: relative; padding: 1.75rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--grad-panel); overflow: hidden;
}
.feature::before {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 210, 255, .16), transparent 60%);
    transition: opacity .4s var(--ease);
}
.feature:hover::before { opacity: 1; }
.feature .ico {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.5rem; background: rgba(139, 158, 255, .1); border: 1px solid var(--line-strong);
    margin-bottom: 1rem;
}
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* -------------------------------------------------------------------- plans */
.plan-toggle { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.plan {
    position: relative; display: flex; flex-direction: column; gap: 1rem;
    padding: 2rem 1.75rem; border-radius: var(--radius-lg);
    border: 1px solid var(--line); background: var(--panel);
    backdrop-filter: blur(16px);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.plan:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: var(--shadow-glow); }
.plan.is-popular { border-color: rgba(0, 210, 255, .45); box-shadow: var(--shadow-glow); }
.plan.is-popular::after {
    content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--grad-brand); color: #fff; font-size: .72rem; font-weight: 700;
    padding: .3rem .9rem; border-radius: 999px; letter-spacing: .05em; white-space: nowrap;
}
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan .price { display: flex; align-items: baseline; gap: .35rem; }
.plan .price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.plan .price span { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; color: #d6dcff; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.plan .spec { display: flex; gap: .5rem; flex-wrap: wrap; }
.plan .btn { margin-top: auto; }

/* --------------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--panel); }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -18px; left: 1.5rem;
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad-brand); font-weight: 800; color: #fff; box-shadow: 0 10px 22px -12px rgba(108, 92, 231, .9);
}
.step h3 { margin-top: .75rem; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: .75rem; max-width: 860px; margin-inline: auto; }
details.qa { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
details.qa summary {
    cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; font-size: 1.4rem; color: var(--brand-2); line-height: 1; }
details.qa[open] summary::after { content: '−'; }
details.qa p { padding: 0 1.25rem 1.15rem; margin: 0; color: var(--muted); font-size: .94rem; }

/* ------------------------------------------------------------------- CTA band */
.cta-band {
    margin: 4rem auto 0; padding: 3rem 2rem; text-align: center;
    border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, rgba(108, 92, 231, .22), rgba(0, 210, 255, .12));
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ''; position: absolute; inset: -50% -10%; opacity: .35;
    background: conic-gradient(from 0deg, transparent, rgba(0, 210, 255, .5), transparent 40%);
    animation: spinSlow 14s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.cta-band > * { position: relative; z-index: 1; }

@media (max-width: 980px) {
    .hero { padding-top: 9rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .float-chip.a { right: 2%; }
    .float-chip.b { left: 2%; }
}
