/* ============================================================
   HiveX — coming soon
   Palette mirrors the app: purple → cyan on void black.
   ============================================================ */

:root {
    --purple:      #9945FF;
    --cyan:        #00E5FF;
    --void:        #09090E;
    --void-2:      #0C0B14;
    --glass:       rgba(20, 10, 30, 0.42);
    --glass-strong:rgba(20, 10, 30, 0.72);
    --border:      rgba(153, 69, 255, 0.20);
    --border-lit:  rgba(0, 229, 255, 0.38);
    --heading:     #E9EAF0;
    --body:        #9CA3AF;
    --dim:         #6B7280;
    --green:       #22C55E;
    --amber:       #EAB308;

    --radius:      18px;
    --maxw:        1200px;
    --ease:        cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--void);
    color: var(--heading);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad {
    background: linear-gradient(100deg, var(--purple), var(--cyan));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* ── Background ──────────────────────────────────────────────── */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.stars {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
}
.stars-1 {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.4)"/><circle cx="150" cy="80" r="1.5" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="190" r="0.5" fill="rgba(255,255,255,0.5)"/></svg>') repeat;
    animation: drift 150s linear infinite;
}
.stars-2 {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><circle cx="50" cy="150" r="1" fill="rgba(255,255,255,0.5)"/><circle cx="250" cy="50" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="120" cy="220" r="1.5" fill="rgba(255,255,255,0.4)"/></svg>') repeat;
    animation: drift 210s linear infinite;
}
.stars-3 {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><circle cx="200" cy="100" r="2.5" fill="rgba(255,255,255,0.15)"/><circle cx="350" cy="300" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="50" cy="350" r="1.5" fill="rgba(255,255,255,0.25)"/></svg>') repeat;
    animation: drift 280s linear infinite;
}
@keyframes drift {
    from { background-position: 0 0; }
    to   { background-position: -6000px 3000px; }
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.30;
}
.aurora-a {
    top: -18vh; left: -10vw;
    width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 65%);
    animation: float-a 26s ease-in-out infinite alternate;
}
.aurora-b {
    top: 22vh; right: -18vw;
    width: 52vw; height: 52vw; max-width: 780px; max-height: 780px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 65%);
    opacity: 0.18;
    animation: float-b 32s ease-in-out infinite alternate;
}
@keyframes float-a { to { transform: translate3d(8vw, 10vh, 0) scale(1.15); } }
@keyframes float-b { to { transform: translate3d(-10vw, 14vh, 0) scale(1.1); } }

.grid-veil {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(153, 69, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(153, 69, 255, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ── Shared shells ───────────────────────────────────────────── */

.panel {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease),
                background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
    background: linear-gradient(100deg, var(--purple), var(--cyan));
    color: #08070C;
    box-shadow: 0 8px 30px -10px rgba(153, 69, 255, .8);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -12px rgba(0, 229, 255, .75);
}
.btn-ghost {
    background: rgba(255, 255, 255, .03);
    border-color: var(--border);
    color: var(--heading);
}
.btn-ghost:hover { border-color: var(--border-lit); background: rgba(0, 229, 255, .07); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(153, 69, 255, .08);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #C4B5FD;
}
.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, .6);
    animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(0, 229, 255, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.tag-live  { background: rgba(34, 197, 94, .12);  color: #4ADE80; border-color: rgba(34, 197, 94, .28); }
.tag-live .dot { background: #4ADE80; }
.tag-beta  { background: rgba(0, 229, 255, .12);  color: var(--cyan); border-color: rgba(0, 229, 255, .28); }
.tag-dev   { background: rgba(234, 179, 8, .10);  color: var(--amber); border-color: rgba(234, 179, 8, .26); }
.tag-soon  { background: rgba(255, 255, 255, .04);color: var(--dim);  border-color: rgba(255, 255, 255, .12); }

/* ── Nav ─────────────────────────────────────────────────────── */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { filter: drop-shadow(0 0 10px rgba(153, 69, 255, .55)); }
.brand-word {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .10em;
    background: linear-gradient(100deg, var(--purple), var(--cyan));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--cyan); }
.nav-cta { padding: 10px 20px; }

/* ── Layout ──────────────────────────────────────────────────── */

main { position: relative; z-index: 10; }

.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 96px 28px;
}

.section-head { max-width: 680px; margin-bottom: 52px; }
.eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--purple);
}
.section-head h2 {
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 800;
    margin-bottom: 18px;
}
.section-head p { color: var(--body); font-size: 17px; }

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 60px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 68px 28px 92px;
}

.hero-copy h1 {
    margin: 26px 0 22px;
    font-size: clamp(42px, 6.4vw, 76px);
    font-weight: 900;
    letter-spacing: -0.035em;
}
.lede {
    max-width: 560px;
    color: var(--body);
    font-size: 18px;
}
.lede strong { color: var(--heading); font-weight: 600; }

.notify {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 34px 0 26px;
    max-width: 520px;
}
.notify input {
    flex: 1 1 260px;
    min-width: 0;
    padding: 13px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(9, 9, 14, .65);
    color: var(--heading);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.notify input::placeholder { color: var(--dim); }
.notify input:focus {
    outline: none;
    border-color: var(--border-lit);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, .12);
}
.notify input.invalid { border-color: #F87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .12); }

.notify-msg {
    flex-basis: 100%;
    min-height: 20px;
    font-size: 13.5px;
    color: var(--body);
}
.notify-msg.ok  { color: #4ADE80; }
.notify-msg.err { color: #F87171; }
.notify-msg a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    font-size: 13px;
    color: var(--dim);
}
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--purple), var(--cyan));
}
.trust strong { color: var(--heading); font-weight: 700; }

/* ── Hero preview panel ──────────────────────────────────────── */

.hero-visual { position: relative; }
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 8% 6%;
    background: radial-gradient(circle, rgba(153, 69, 255, .32), transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.preview {
    overflow: hidden;
    background: var(--glass-strong);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
    animation: rise 1s var(--ease) both;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

.preview-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, .45);
}
.lights { display: flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.preview-title {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
    letter-spacing: .05em;
    color: var(--body);
}
.preview-head .tag { margin-left: auto; }

.preview-body { padding: 16px; }

.chart-wrap {
    position: relative;
    border-radius: 12px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .04);
    overflow: hidden;
}
.chart { display: block; width: 100%; height: 150px; }
.grid-lines line { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.chart .up   { fill: rgba(34, 197, 94, .75); }
.chart .down { fill: rgba(248, 113, 113, .7); }
.chart .wick { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.chart .scan {
    stroke: var(--cyan);
    stroke-width: 1.5;
    opacity: .5;
    filter: drop-shadow(0 0 6px var(--cyan));
    animation: sweep 5.5s linear infinite;
}
@keyframes sweep {
    0%   { transform: translateX(0);     opacity: 0; }
    8%   { opacity: .55; }
    92%  { opacity: .55; }
    100% { transform: translateX(420px); opacity: 0; }
}

.feed {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 108px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
}
.feed li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    border-left: 2px solid var(--purple);
    color: var(--body);
    animation: slide-in .45s var(--ease) both;
}
.feed li .t { color: var(--dim); }
.feed li .v { margin-left: auto; font-weight: 700; }
.feed li[data-sev="warn"]  { border-left-color: var(--amber); }
.feed li[data-sev="warn"] .v  { color: var(--amber); }
.feed li[data-sev="alert"] { border-left-color: #F87171; }
.feed li[data-sev="alert"] .v { color: #F87171; }
.feed li[data-sev="ok"]    { border-left-color: var(--green); }
.feed li[data-sev="ok"] .v    { color: #4ADE80; }
@keyframes slide-in {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: none; }
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.preview-stats div { display: flex; flex-direction: column; gap: 3px; }
.preview-stats span {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
}
.preview-stats b { font-size: 19px; font-weight: 800; color: var(--heading); }
.preview-stats b.risk { font-size: 15px; color: var(--amber); }

/* ── Ticker ──────────────────────────────────────────────────── */

.ticker {
    position: relative;
    z-index: 10;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, .35);
    padding: 13px 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    animation: marquee 44s linear infinite;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--body);
    white-space: nowrap;
}
.ticker-track i { color: var(--purple); font-style: normal; font-size: 9px; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Capabilities ────────────────────────────────────────────── */

.pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.pillar { padding: 34px; transition: border-color .3s ease, transform .3s var(--ease); }
.pillar:hover { border-color: var(--border-lit); transform: translateY(-4px); }

.pillar-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.pillar-head h3 { font-size: 24px; font-weight: 800; }
.pillar-sub { margin-top: 5px; font-size: 14px; color: var(--dim); }

.icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: #0A0910;
    box-shadow: 0 10px 26px -12px rgba(153, 69, 255, .9);
}
.icon svg { width: 24px; height: 24px; }
.icon.sm {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(9, 9, 14, .85);
    border: 1px solid var(--border);
    color: var(--cyan);
    box-shadow: none;
}
.icon.sm svg { width: 20px; height: 20px; }

.feats li { padding: 20px 0; border-bottom: 1px dashed rgba(153, 69, 255, .14); }
.feats li:last-child { border-bottom: 0; padding-bottom: 0; }
.feats h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 6px;
}
.feats h4::before {
    content: '';
    flex: none;
    width: 6px; height: 6px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--purple), var(--cyan));
}
.feats p { font-size: 14.5px; color: var(--body); }

/* ── Tools ───────────────────────────────────────────────────── */

.tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.tool {
    padding: 26px;
    transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.tool:hover {
    transform: translateY(-5px);
    border-color: var(--border-lit);
    box-shadow: 0 18px 40px -22px rgba(153, 69, 255, .7);
}
.tool-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.tool h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 9px; }
.tool:hover h3 {
    background: linear-gradient(100deg, var(--purple), var(--cyan));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.tool p { font-size: 14px; color: var(--body); }
.tool-next { border-style: dashed; opacity: .78; }

/* ── Roadmap ─────────────────────────────────────────────────── */

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--purple), var(--cyan), transparent);
    opacity: .5;
}
.timeline li { position: relative; padding-bottom: 18px; }
.node {
    position: absolute;
    left: -34px; top: 26px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--void);
    border: 2px solid rgba(153, 69, 255, .5);
}
.timeline .done .node { background: linear-gradient(135deg, var(--purple), var(--cyan)); border-color: transparent; }
.timeline .active .node {
    background: var(--cyan);
    border-color: transparent;
    animation: ping 2.2s ease-out infinite;
}
.step { padding: 24px 26px; }
.timeline .active .step { border-color: var(--border-lit); }
.step-tag {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--purple);
}
.timeline .done .step-tag   { color: #4ADE80; }
.timeline .active .step-tag { color: var(--cyan); }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--body); max-width: 720px; }

/* ── Final CTA ───────────────────────────────────────────────── */

.cta-section { padding-top: 40px; }
.cta {
    position: relative;
    overflow: hidden;
    padding: 62px 40px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(153, 69, 255, .18), transparent 62%),
        var(--glass);
}
.cta-mark { filter: drop-shadow(0 0 16px rgba(153, 69, 255, .6)); margin-bottom: 22px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta > p { max-width: 520px; margin: 0 auto; color: var(--body); }
.notify-lg { margin: 30px auto 0; justify-content: center; }
.notify-lg .notify-msg { text-align: center; }

/* ── Footer ──────────────────────────────────────────────────── */

.footer {
    position: relative;
    z-index: 10;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 42px 28px 60px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: 14px;
}
.footer-note {
    max-width: 560px;
    margin: 0 auto 10px;
    font-size: 12.5px;
    color: var(--dim);
}
.footer-copy { font-size: 12.5px; color: var(--dim); }

/* ── Reveal on scroll ────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 44px;
        padding-bottom: 68px;
    }
    .pillars { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

@media (max-width: 620px) {
    .section { padding: 68px 20px; }
    .hero { padding-left: 20px; padding-right: 20px; }
    .nav { padding: 16px 20px; }
    .nav-cta { display: none; }
    .pillar { padding: 26px 22px; }
    .cta { padding: 46px 24px; }
    .preview-title { font-size: 10.5px; white-space: nowrap; }
    .feed { font-size: 10.5px; }
    .notify .btn { flex: 1 1 100%; }
    .preview-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
    .footer { padding: 36px 20px 48px; }
}

/* ── Motion preferences ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
