/* ============================================================
   AXXESS — Homepage (index.html) specific styles
   Brand Guide v1.5 · November 2026
   ============================================================ */

/* ── Homepage ambient background (radial gradient starfield) ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(55% 45% at 82% 18%, rgba(74, 222, 128, 0.07), transparent 70%),
        radial-gradient(45% 40% at 8% 85%, rgba(148, 163, 184, 0.06), transparent 70%), var(--color-bg-base);
}

/* ── 3D canvas ─────────────────────────────────────────────── */
#scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.reduced #scene {
    position: absolute;
    height: 100vh;
}

/* ── Inline SVG icon helper ────────────────────────────────── */
.i {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* ── Skip link + screen reader utility ────────────────────── */
.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--color-brand-primary);
    color: var(--color-text-inverse);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
}
.skip:focus {
    top: 12px;
}

.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;
}

/* ── Focus ring ─────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-brand-glow);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ── Pulse badge animation ──────────────────────────────────── */
.pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    animation: badge-pulse 2s ease-out infinite;
    margin-right: 0.5rem;
    flex: none;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* ── Homepage main z-layer ──────────────────────────────────── */
#footer-root {
    position: relative;
    z-index: 3;
}

/* ── Scroll sections ────────────────────────────────────────── */
:root {
    --nav-h: 72px;
}

.sec {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: 120px;
}

.sec .container {
    position: relative;
    z-index: 2;
    display: flex;
}
.sec[data-side='right'] .container {
    justify-content: flex-end;
}
.sec[data-side='center'] .container {
    justify-content: center;
    text-align: center;
}

.panel {
    width: min(100%, 540px);
}
.panel.wide {
    width: min(100%, 600px);
}

/* ── Homepage hero ──────────────────────────────────────────── */
.sec.hero {
    padding-top: calc(var(--nav-h) + 48px);
    min-height: 100vh;
    min-height: 100svh;
}

.hero .lead {
    margin-bottom: var(--space-10);
}
.hero .small {
    margin-top: var(--space-6);
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
}
.scroll-cue span {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--color-text-secondary), transparent);
}

/* ── Text helpers ───────────────────────────────────────────── */
.eyebrow {
    margin-bottom: var(--space-5);
}
.h-display {
    font-size: clamp(2.25rem, 1.1rem + 4.4vw, 3.75rem);
    margin-bottom: var(--space-6);
}
.h-section {
    font-size: clamp(1.875rem, 1.15rem + 2.5vw, 3rem);
    margin-bottom: var(--space-4);
}
.lead {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}
.support {
    color: var(--color-text-secondary);
}
.small {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.mono {
    font-family: var(--font-family-mono);
    font-weight: 400;
    letter-spacing: 0.02em;
}

h1,
h2 {
    font-weight: var(--font-extrabold);
    letter-spacing: var(--tracking-tight);
    line-height: 1.08;
}
h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    letter-spacing: 0;
    line-height: var(--leading-snug);
}
p {
    margin: 0;
    max-width: 65ch;
}

/* ── Glass card (homepage variant) ─────────────────────────── */
.glass {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* ── Before / After compare ─────────────────────────────────── */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.compare-col {
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.compare-col.after {
    border-color: rgba(74, 222, 128, 0.25);
}

.label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
}

.ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.ticks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.dot {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-top: -1px;
}
.dot .i {
    width: 13px;
    height: 13px;
    stroke-width: 2.6;
}
.dot.bad {
    background: rgba(248, 113, 113, 0.15);
    color: var(--color-error);
}
.dot.good {
    background: rgba(74, 222, 128, 0.15);
    color: var(--color-success);
}
.before li {
    color: var(--color-text-secondary);
}

/* ── Verticals list ─────────────────────────────────────────── */
.verticals {
    list-style: none;
    padding: 0;
    margin: var(--space-8) 0 0;
    display: grid;
    gap: var(--space-3);
}

.vertical {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition:
        transform 200ms ease-in-out,
        border-color 200ms ease-in-out,
        box-shadow 200ms ease-in-out;
}

.vertical:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.vertical .ic {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-bg);
    color: var(--accent);
}

.vertical h3 {
    margin-bottom: 2px;
}

.vertical p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

.vertical .go {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: var(--font-semibold);
    color: var(--accent);
}

/* ── How it works steps ─────────────────────────────────────── */
.steps {
    list-style: none;
    padding: 0;
    margin: var(--space-8) 0 0;
    display: grid;
    gap: var(--space-3);
}

.step {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
}

.step-num {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--color-brand-muted);
    color: var(--color-brand-glow);
    font-weight: var(--font-extrabold);
}

.step p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* ── AXXESS One perks ───────────────────────────────────────── */
.perks {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 var(--space-8);
    display: grid;
    gap: 10px;
}

.perks li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-4);
    align-items: baseline;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.perks .k {
    font-family: var(--font-family-mono);
    color: var(--color-one-gold);
    font-size: var(--text-base);
}
.perks .v {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    line-height: var(--leading-normal);
}

/* ── Audiences ──────────────────────────────────────────────── */
.aud {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: var(--space-8);
    text-align: left;
}

.aud-card {
    padding: 22px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aud-card .ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

.aud-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

.tlink {
    margin-top: auto;
    padding-top: 6px;
    align-self: flex-start;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-brand-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}
.tlink:hover {
    color: var(--color-brand-glow);
}

/* ── Launch countdown ───────────────────────────────────────── */
.count {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: var(--space-8) 0;
    max-width: none;
}

.count-num {
    font-size: var(--text-6xl);
    font-weight: var(--font-black);
    color: var(--color-brand-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.count-label {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

/* ── Values ─────────────────────────────────────────────────── */
.values {
    display: grid;
    gap: var(--space-3);
}

.value {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
}
.value p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* ── Final CTA ──────────────────────────────────────────────── */
.final {
    align-items: flex-end;
    padding-top: 46vh;
}

.final::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 20%,
        rgba(2, 6, 23, 0.75) 55%,
        rgba(2, 6, 23, 0.95) 100%
    );
    pointer-events: none;
    z-index: 0;
}
.final > * {
    position: relative;
    z-index: 1;
}
.final .lead {
    margin: 0 auto var(--space-8);
}
.final .btn-row {
    justify-content: center;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ── App store badges ───────────────────────────────────────── */
.stores {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(148, 163, 184, 0.45);
    color: var(--color-text-primary);
    text-decoration: none;
    text-align: left;
    line-height: 1.25;
    transition: border-color 150ms ease;
}
.store:hover {
    border-color: var(--color-text-secondary);
}
.store small {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
}
.store strong {
    font-size: 15px;
    font-weight: var(--font-semibold);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 859px) {
    .sec {
        min-height: 100vh;
        min-height: 100svh;
        align-items: flex-end;
        padding: 100px 0 56px;
    }
    .has-home-scene:not(.reduced) .sec {
        padding-top: 42vh;
    }
    .has-home-scene .sec.hero {
        padding-top: 40vh;
    }
    .sec .container,
    .sec[data-side='right'] .container {
        justify-content: center;
    }
    .panel,
    .panel.wide {
        width: 100%;
        padding: 24px;
        border-radius: var(--radius-xl);
        background: rgba(15, 23, 42, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.06);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    .has-home-scene:not(.reduced) .final {
        padding-top: 46vh;
    }
    .scroll-cue {
        display: none;
    }
}

@media (max-width: 640px) {
    .compare,
    .aud {
        grid-template-columns: 1fr;
    }
    .perks li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .glass,
    .panel {
        background: rgba(15, 23, 42, 0.94);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
