/* ============================================================
   ARM — Augmented Reality Marketing · bespoke design system
   Shared by the landing page and signup screen.
   ============================================================ */

:root {
    --bg: #060911;
    --bg-raised: #0b1220;
    --bg-card: rgba(17, 26, 44, 0.72);
    --border: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.28);
    --text: #e8edf6;
    --text-muted: #93a3ba;
    --text-faint: #64748b;
    --accent: #22d3ee;
    --accent-2: #6366f1;
    --accent-3: #a855f7;
    --grad: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, #34d399);
    --radius: 14px;
    --font: "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img, svg { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Backdrop: aurora glow + fine grid ---- */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--bg);
}

.backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

.backdrop .glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.16;
}

.backdrop .glow.one { top: -28vw; left: -12vw; background: var(--accent-2); }
.backdrop .glow.two { top: -18vw; right: -18vw; background: var(--accent); }
.backdrop .glow.three { top: 48vh; left: 30vw; background: var(--accent-3); opacity: 0.08; }

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(6, 9, 17, 0.7);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 17px;
}

.brand .mark {
    height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    background: var(--grad);
    display: grid;
    place-items: center;
    color: #04101c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand-name {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1.2;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14.5px;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--grad);
    color: #041018;
    box-shadow: 0 8px 28px -8px rgba(34, 211, 238, 0.45);
}

.btn-primary:hover { box-shadow: 0 10px 32px -6px rgba(99, 102, 241, 0.55); }

.btn-ghost {
    background: rgba(148, 163, 184, 0.08);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover { background: rgba(148, 163, 184, 0.15); border-color: rgba(148, 163, 184, 0.45); }

.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }

/* ---- Hero ---- */

.hero { padding: 108px 0 84px; text-align: center; position: relative; }

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(34, 211, 238, 0.07);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero .badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.04;
    max-width: 850px;
    margin: 0 auto 22px;
}

.hero h1 .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lede {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 38px;
}

.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }

.hero .fineprint { font-size: 13px; color: var(--text-faint); }

/* ---- Sections ---- */

section { padding: 72px 0; }

.section-head { text-align: center; margin-bottom: 48px; }

.section-head .kicker {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-head p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Capability cards ---- */

.grid { display: grid; gap: 18px; }

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 18px 44px -20px rgba(34, 211, 238, 0.28);
}

.card .icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    display: grid;
    place-items: center;
    color: var(--accent);
    margin-bottom: 18px;
}

.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }

.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Use cases ---- */

.usecases .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }

.usecase {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
}

.usecase::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.usecase:hover::after { opacity: 1; }

.usecase .tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 14px;
}

.usecase h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }

.usecase p { font-size: 0.9rem; color: var(--text-muted); }

/* ---- How it works ---- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }

.step {
    position: relative;
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.step .num {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    color: #04101c;
    background: var(--grad);
    margin-bottom: 16px;
}

.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

.step p { color: var(--text-muted); font-size: 0.94rem; }

/* ---- Invite band ---- */

.invite {
    text-align: center;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.08));
    border-radius: 22px;
    padding: 56px 32px;
    position: relative;
    overflow: hidden;
}

.invite h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }

.invite p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; }

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    margin-top: 24px;
}

.site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: 13.5px;
}

.site-footer .links { display: flex; gap: 22px; }

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

/* ---- Signup form ---- */

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 40px 36px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.auth-card .head { text-align: center; margin-bottom: 30px; }

.auth-card .head h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 16px; }

.auth-card .head p { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; }

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: rgba(6, 9, 17, 0.75);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Honeypot: hidden from humans, visible to naive bots */
.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    aria-hidden: true;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.alert-error { background: rgba(190, 18, 60, 0.16); border: 1px solid rgba(244, 63, 94, 0.4); color: #fda4af; }

.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: #6ee7b7; }

.auth-card .btn { width: 100%; margin-top: 6px; }

.auth-card .foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-muted); }

.auth-card .foot a { color: var(--accent); font-weight: 600; }

.auth-card .foot a:hover { text-decoration: underline; }

.auth-home-link {
    margin-top: 26px;
    font-size: 13.5px;
    color: var(--text-faint);
}

.auth-home-link a { color: var(--text-muted); }
.auth-home-link a:hover { color: var(--text); }

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .grid.cols-3 { grid-template-columns: 1fr 1fr; }
    .usecases .grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .grid.cols-3 { grid-template-columns: 1fr; }
    .usecases .grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .hero { padding: 72px 0 60px; }
    .auth-card { padding: 32px 24px; }
}