/*
 * FELL AUTH — public landing page.
 *
 * Separate from admin.css on purpose. The panel's stylesheet is loaded on every
 * authenticated screen and is the kind of file where one careless selector
 * breaks a form somebody depends on; this page has no business touching it, and
 * nothing here is shared with it.
 *
 * Every rule lives in this file because the app's CSP is `style-src 'self'`
 * with no `unsafe-inline`: an inline <style> block or a style="" attribute
 * would simply not render.
 */

:root {
    --ink: #05040a;
    --ink-raised: #0b0914;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-strong: rgba(255, 255, 255, 0.055);
    --line: rgba(167, 139, 250, 0.16);
    --line-strong: rgba(167, 139, 250, 0.32);

    --violet: #8b5cf6;
    --violet-bright: #a78bfa;
    --purple: #6d28d9;
    --azure: #38bdf8;

    --text: #f4f3f8;
    --text-soft: #b7b3c6;
    --text-dim: #837f93;

    --radius: 18px;
    --radius-sm: 12px;
    --shell: 1160px;
    --gutter: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body.landing {
    margin: 0;
    /* An explicit background, so the page never inherits a white canvas while
       the stylesheet is still arriving. */
    background: var(--ink);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* A keyboard visitor should not have to tab through the whole header. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 50;
    padding: 10px 16px;
    background: var(--violet);
    color: #fff;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--violet-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------------------------------------------------------------- backdrop --
   Two soft radial washes, fixed behind everything. Cheap: no animation, no
   blur filter, no extra request. */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 540px at 78% -8%, rgba(109, 40, 217, 0.34), transparent 62%),
        radial-gradient(720px 480px at 8% 12%, rgba(139, 92, 246, 0.2), transparent 60%),
        radial-gradient(620px 420px at 50% 108%, rgba(56, 189, 248, 0.1), transparent 64%);
}

/* ------------------------------------------------------------------ header -- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 4, 10, 0.82);
    backdrop-filter: blur(10px);
}

.site-head-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 66px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.26), rgba(109, 40, 217, 0.1));
    color: var(--violet-bright);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.26);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
}

.brand-name-accent {
    color: var(--violet-bright);
}

.site-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 0.93rem;
    color: var(--text-soft);
}

.site-nav a {
    position: relative;
    padding: 4px 0;
    transition: color 0.18s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--violet-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

/* ------------------------------------------------------------------ buttons -- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button-sm {
    padding: 9px 18px;
    font-size: 0.78rem;
}

.button-primary {
    background: linear-gradient(135deg, var(--violet), var(--purple));
    color: #fff;
    box-shadow: 0 10px 28px rgba(109, 40, 217, 0.34);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.44);
}

.button-ghost {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--text-soft);
}

.button-ghost:hover {
    color: var(--text);
    border-color: var(--violet-bright);
    background: var(--surface-strong);
}

/* --------------------------------------------------------------------- hero -- */
.hero {
    padding: 84px 0 68px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(139, 92, 246, 0.1);
    color: var(--violet-bright);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-bright);
    box-shadow: 0 0 10px var(--violet-bright);
}

.hero-title {
    margin: 22px 0 0;
    font-size: clamp(3rem, 8vw, 5.4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-title-accent {
    background: linear-gradient(120deg, var(--violet-bright), var(--azure));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin-top: 14px;
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: var(--text);
    font-weight: 500;
}

.hero-text {
    margin-top: 16px;
    max-width: 50ch;
    color: var(--text-soft);
}

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

/* ------------------------------------------------------------- hero visual -- */
.hero-visual {
    display: grid;
    place-items: center;
}

.shield-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.shield-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.34), transparent 68%);
}

.shield {
    position: relative;
    width: 72%;
    max-width: 260px;
    filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.42));
}

.shield-plate {
    stroke: var(--violet-bright);
    stroke-width: 2.4;
    fill: rgba(139, 92, 246, 0.07);
}

.shield-plate-inner {
    stroke: rgba(167, 139, 250, 0.42);
    stroke-width: 1.4;
    fill: none;
}

.shield-f {
    stroke: #fff;
    stroke-width: 7;
    fill: none;
}

.shield-scan {
    stroke: var(--azure);
    stroke-width: 1.4;
    opacity: 0.5;
}

/* The floating cards are labels, not readings. Positioned around the shield
   on the diagonals so none of them covers the mark. */
.float-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(11, 9, 20, 0.86);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    white-space: nowrap;
    animation: float-drift 7s ease-in-out infinite;
}

.float-card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-bright);
    box-shadow: 0 0 8px var(--violet-bright);
    flex: 0 0 auto;
}

.float-card-1 { top: 4%; left: -4%; animation-delay: 0s; }
.float-card-2 { top: 26%; right: -6%; animation-delay: 1.2s; }
.float-card-3 { bottom: 24%; left: -8%; animation-delay: 2.4s; }
.float-card-4 { bottom: 3%; right: -4%; animation-delay: 3.6s; }

@keyframes float-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* A visitor who asked their system not to animate things gets no drift. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .float-card { animation: none; }
    .button:hover { transform: none; }
}

/* ----------------------------------------------------------------- sections -- */
.section {
    padding: 72px 0;
}

.eyebrow {
    color: var(--violet-bright);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    margin-top: 10px;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 700;
}

.section-text {
    margin-top: 14px;
    max-width: 62ch;
    color: var(--text-soft);
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.feature-card {
    padding: 26px 24px;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 16px 40px rgba(109, 40, 217, 0.18);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: rgba(139, 92, 246, 0.12);
    color: var(--violet-bright);
}

.feature-icon .icon {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    margin-top: 18px;
    font-size: 1.06rem;
    font-weight: 650;
}

.feature-card p {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 0.94rem;
}

/* --------------------------------------------------------------------- sdks -- */
.sdk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.sdk-card {
    padding: 22px 16px;
    text-align: center;
}

.sdk-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px rgba(109, 40, 217, 0.16);
}

.sdk-name {
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------- status -- */
.status-card {
    padding: 36px 30px;
    text-align: center;
    background:
        radial-gradient(540px 220px at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
        var(--surface);
}

.status-title {
    margin-top: 10px;
    font-size: clamp(1.4rem, 3.4vw, 1.9rem);
    font-weight: 700;
}

.status-text {
    margin-top: 10px;
    color: var(--text-soft);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.36);
    background: rgba(74, 222, 128, 0.1);
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.status-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

/* ------------------------------------------------------------------- footer -- */
.site-foot {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: var(--ink-raised);
}

.site-foot-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    padding-top: 40px;
    padding-bottom: 28px;
}

.foot-tagline {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

.foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.foot-nav a:hover {
    color: var(--violet-bright);
}

.foot-legal {
    padding-bottom: 28px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.foot-legal p {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -------------------------------------------------------------- responsive -- */
@media (max-width: 960px) {
    .hero {
        padding: 56px 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-text {
        max-width: none;
    }

    /* The shield comes second on a narrow screen: the headline and the button
       are what somebody arriving on a phone needs first. */
    .hero-visual {
        order: 2;
    }

    .shield-stage {
        max-width: 320px;
    }
}

@media (max-width: 720px) {
    .site-nav {
        display: none;
    }

    .site-head-inner {
        gap: 12px;
        justify-content: space-between;
    }

    .section {
        padding: 52px 0;
    }

    /* Pulled inward so nothing overflows the 16px gutter on a phone. */
    .float-card-1 { left: 0; }
    .float-card-2 { right: 0; }
    .float-card-3 { left: 0; }
    .float-card-4 { right: 0; }

    .float-card {
        font-size: 0.68rem;
        padding: 7px 11px;
    }

    .site-foot-inner {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 420px) {
    .hero-actions .button {
        width: 100%;
    }
}
