:root {
    color-scheme: dark;
    --night: #0e0905;
    --deep: #181006;
    --band: #140d07;
    --panel: rgba(30, 20, 11, 0.72);
    --card: rgba(255, 173, 96, 0.055);
    --ink: #fdf6ee;
    --soft: #dcc9b4;
    --muted: #a8916f;
    --line: rgba(255, 170, 80, 0.17);
    --ember: #ff6b0a;
    --gold: #ffa81a;
    --glow: #ffa05c;
    --cream: #f9efe2;
    --cream-ink: #211204;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--night);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(255, 107, 10, 0.45);
    color: #fff;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 54px);
    background: rgba(14, 9, 5, 0.74);
    border-bottom: 1px solid rgba(255, 184, 110, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    font-size: 17px;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-header nav,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.site-header nav a,
.site-footer nav a,
.text-link {
    color: var(--soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
    color: var(--gold);
}

.text-link {
    color: var(--glow);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ember), var(--gold));
    color: #1c0d01;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(255, 188, 64, 0.30);
}

/* ---------- Type ---------- */

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: clamp(54px, 8.5vw, 118px);
    line-height: 0.9;
    letter-spacing: -0.02em;
}

h2 {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: clamp(32px, 4.6vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.015em;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.15;
}

p {
    color: var(--soft);
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.hero {
    position: relative;
    min-height: 94vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 120px clamp(20px, 6vw, 86px) 96px;
    border-bottom: 1px solid rgba(255, 184, 110, 0.12);
}

.hero-map,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-map {
    object-fit: cover;
    object-position: center 42%;
    filter: saturate(1.02) contrast(1.0);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(14, 8, 3, 0.96) 0%, rgba(16, 10, 4, 0.80) 42%, rgba(16, 10, 4, 0.30) 100%),
        linear-gradient(0deg, rgba(14, 9, 5, 0.96) 0%, rgba(14, 9, 5, 0.08) 46%, rgba(14, 9, 5, 0.72) 100%);
}

.hero-content {
    position: relative;
    max-width: 760px;
}

.hero-copy {
    max-width: 640px;
    color: #f1e2d0;
    font-size: clamp(20px, 2.3vw, 29px);
    line-height: 1.3;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 650;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-action {
    background: linear-gradient(135deg, var(--ember), var(--gold));
    color: #1c0d01;
    box-shadow: 0 18px 44px rgba(255, 122, 26, 0.28);
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(255, 150, 40, 0.36);
}

.primary-action svg {
    flex: none;
}

.secondary-action {
    border: 1px solid rgba(255, 199, 138, 0.30);
    background: rgba(24, 15, 7, 0.55);
    color: var(--ink);
}

.secondary-action:hover {
    background: rgba(40, 25, 12, 0.7);
}

.scroll-hint {
    position: absolute;
    left: clamp(20px, 6vw, 86px);
    bottom: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Bands ---------- */

.section-band {
    padding: clamp(68px, 9vw, 130px) clamp(20px, 5vw, 72px);
}

.section-inner {
    width: min(1140px, 100%);
    margin: 0 auto;
}

.app-band {
    background: var(--night);
}

.how-band {
    background: var(--band);
    border-top: 1px solid rgba(255, 184, 110, 0.08);
    border-bottom: 1px solid rgba(255, 184, 110, 0.08);
}

.map-band {
    background: var(--deep);
}

.safety-band {
    background: #100c08;
    border-top: 1px solid rgba(255, 184, 110, 0.08);
}

.plus-band {
    background: var(--cream);
    color: var(--cream-ink);
}

.plus-band p,
.plus-band .eyebrow {
    color: #7a5526;
}

.plus-band h2 {
    color: var(--cream-ink);
}

.faq-band {
    background: var(--band);
    border-top: 1px solid rgba(255, 184, 110, 0.08);
}

.dark-action {
    background: var(--cream-ink);
    color: #fff;
    box-shadow: none;
}

.dark-action:hover {
    box-shadow: 0 16px 34px rgba(33, 18, 4, 0.35);
}

/* ---------- Layouts ---------- */

.feature-layout,
.split-section,
.safety-grid,
.plus-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: center;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(34px, 5vw, 56px);
}

/* steps */

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ember), var(--gold));
    color: #1c0d01;
    font-size: 17px;
    font-weight: 900;
}

.step-card p {
    margin: 0;
    font-size: 15.5px;
}

/* feature cards */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    padding: 24px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(255, 170, 80, 0.42);
    background: rgba(255, 173, 96, 0.085);
}

.feature-card p {
    margin: 0;
    font-size: 15px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(255, 140, 40, 0.14);
    color: var(--gold);
}

.feature-icon svg {
    width: 23px;
    height: 23px;
}

/* showcase */

.phone-frame {
    width: min(400px, 100%);
    margin: 0;
    justify-self: center;
    overflow: hidden;
    border: 1px solid rgba(255, 199, 138, 0.22);
    border-radius: 34px;
    background: var(--deep);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.phone-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--soft);
    font-size: 16px;
    line-height: 1.5;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 0.32em;
    width: 12px;
    height: 12px;
    border: 3px solid var(--gold);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.safety-grid {
    align-items: start;
}

.plus-layout {
    grid-template-columns: minmax(0, 1fr) auto;
}

/* FAQ */

.faq-list {
    display: grid;
    gap: 10px;
    width: min(860px, 100%);
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    overflow: hidden;
}

.faq-list summary {
    padding: 18px 50px 18px 20px;
    position: relative;
    color: var(--ink);
    font-size: 16.5px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-52%);
    color: var(--gold);
    font-size: 22px;
    font-weight: 800;
}

.faq-list details[open] summary::after {
    content: "\2013";
}

.faq-list details p {
    margin: 0;
    padding: 0 20px 18px;
    font-size: 15.5px;
}

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

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 28px 48px;
    padding: 42px clamp(20px, 5vw, 72px) 48px;
    background: #0a0603;
    border-top: 1px solid rgba(255, 184, 110, 0.10);
}

.site-footer p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 56px;
}

.footer-col strong {
    display: block;
    margin-bottom: 10px;
    color: var(--glow);
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-col nav {
    display: grid;
    gap: 8px;
}

.footer-legal {
    width: 100%;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Document pages (privacy / policies / support) ---------- */

.doc-body {
    background: var(--night);
}

.doc-main {
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 130px clamp(18px, 4vw, 40px) 80px;
}

.doc-main h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.04;
}

.updated {
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 650;
}

.doc-panel {
    margin-top: 28px;
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
}

.doc-panel h2 {
    margin-top: 34px;
    font-size: 24px;
    line-height: 1.2;
}

.doc-panel h2:first-child {
    margin-top: 0;
}

.doc-panel p,
.doc-panel li {
    color: var(--soft);
    font-size: 16px;
    line-height: 1.65;
}

.doc-panel ul {
    padding-left: 22px;
    margin: 0 0 18px;
}

.doc-panel li {
    margin-bottom: 9px;
}

.doc-panel a {
    color: var(--glow);
    font-weight: 700;
}

.doc-panel strong {
    color: var(--ink);
}

/* ---------- Invite page ---------- */

.invite-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255, 122, 26, 0.16), transparent 60%),
        var(--night);
}

.invite-card {
    width: min(430px, 100%);
    padding: 36px 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    text-align: center;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.invite-card img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    margin-bottom: 18px;
}

.invite-card h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.1;
}

.invite-card p {
    margin: 0 0 24px;
    font-size: 16px;
}

.invite-card .primary-action {
    width: 100%;
}

.invite-card .store {
    display: inline-block;
    margin-top: 18px;
    color: var(--glow);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

/* ---------- Reveal animation (JS adds html.js; CSS-off stays visible) ---------- */

html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .primary-action,
    .secondary-action,
    .nav-cta {
        transition: none;
    }
}

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

@media (max-width: 960px) {
    .step-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 840px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .site-header nav {
        justify-content: flex-end;
    }

    .site-header nav a {
        font-size: 12.5px;
    }

    .hero {
        min-height: 92vh;
        padding: 116px 20px 84px;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(14, 8, 3, 0.97) 0%, rgba(16, 10, 4, 0.72) 56%, rgba(16, 10, 4, 0.82) 100%);
    }

    .feature-layout,
    .split-section,
    .safety-grid,
    .plus-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .plus-layout .primary-action {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
    }

    .doc-main {
        padding-top: 116px;
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .brand span {
        display: none;
    }

    .site-header nav a:not(.nav-cta) {
        font-size: 12px;
    }

    .hero-actions a {
        width: 100%;
    }
}
