/* NIGHTFALLCOIN — website styles
   Palette and geometry deliberately mirror the Core Wallet, so the site and
   the app feel like one product. */

:root {
    --bg: #0e0b18;
    --bg-2: #14102 2;
    --surface: #1a1430;
    --surface-2: #221a3c;
    --border: #2e2648;
    --border-hi: #45396a;

    --text: #f2eefc;
    --text-dim: #a89fc6;
    --text-faint: #6f668f;

    --violet: #7c5cff;
    --violet-hi: #9b83ff;
    --magenta: #b845d8;
    --teal: #35a3c4;
    --success: #4ae0a8;
    --warn: #ffc85c;

    --grad: linear-gradient(110deg, #5633c4 0%, #8e31b2 48%, #276f8e 100%);
    --grad-bright: linear-gradient(110deg, #7c5cff 0%, #b845d8 48%, #35a3c4 100%);

    --r-lg: 24px;
    --r-md: 16px;
    --r-pill: 999px;

    --maxw: 1160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 650;
}

h3 {
    font-size: 1.22rem;
    font-weight: 620;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--violet-hi);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code,
.mono {
    font-family: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas,
        monospace;
    font-size: 0.9em;
}

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

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

.muted {
    color: var(--text-dim);
}

.faint {
    color: var(--text-faint);
}

/* ------------------------------------------------------------------ nav -- */

nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(14, 11, 24, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(14, 11, 24, 0.9);
}

nav .wrap {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    font-size: 1.02rem;
}

.brand:hover {
    text-decoration: none;
}

/* The coin is black with a white rim, so on the dark page it needs a glow to
   separate from the background rather than a border, which would fight the
   rim already in the artwork. */
.brand .mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.45));
    animation: pulse-mark 4.5s ease-in-out infinite;
}

@keyframes pulse-mark {
    0%,
    100% {
        filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.35));
    }
    50% {
        filter: drop-shadow(0 0 24px rgba(184, 69, 216, 0.6));
    }
}

.hero-coin {
    width: 96px;
    height: 96px;
    display: block;
    margin-bottom: 26px;
    border-radius: 50%;
    filter: drop-shadow(0 0 34px rgba(124, 92, 255, 0.5));
    animation: coin-float 8s ease-in-out infinite;
}

@keyframes coin-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(4deg);
    }
}

@media (max-width: 940px) {
    .hero-coin {
        width: 74px;
        height: 74px;
    }
}

.nav-links {
    display: flex;
    gap: 26px;
    margin-left: auto;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.92rem;
    position: relative;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--grad-bright);
    border-radius: 2px;
    transition: width 0.28s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 820px) {
    .nav-links a:not(.btn) {
        display: none;
    }
}

/* --------------------------------------------------------------- buttons -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.96rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.25s,
        background 0.25s;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--grad-bright);
    color: #fff;
    box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 14px 44px rgba(184, 69, 216, 0.5);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hi);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------------------ hero -- */

header.hero {
    position: relative;
    padding: 190px 0 120px;
    overflow: hidden;
}

#mesh {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.85;
}

.hero .wrap {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 940px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.35);
    font-size: 0.82rem;
    color: var(--violet-hi);
    margin-bottom: 26px;
    letter-spacing: 0.03em;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 224, 168, 0.6);
    }
    50% {
        opacity: 0.55;
        box-shadow: 0 0 0 7px rgba(74, 224, 168, 0);
    }
}

.hero h1 {
    margin-bottom: 22px;
}

.lede {
    font-size: 1.16rem;
    color: var(--text-dim);
    max-width: 34em;
    margin-bottom: 34px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-faint);
}

.hero-meta b {
    color: var(--text);
    font-weight: 600;
}

/* ------------------------------------------------------- floating wallet -- */

.wallet-card {
    background: var(--grad);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: float 7s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.wallet-card::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -30%;
    width: 60%;
    height: 220%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.13),
        transparent
    );
    transform: rotate(18deg);
    animation: sheen 6s ease-in-out infinite;
}

@keyframes sheen {
    0%,
    60%,
    100% {
        left: -40%;
    }
    30% {
        left: 130%;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(-0.4deg);
    }
    50% {
        transform: translateY(-14px) rotate(0.4deg);
    }
}

.wallet-card .label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.wallet-card .amount {
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 4px;
    letter-spacing: -0.02em;
}

.wallet-chips {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.wallet-chips span {
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 13px;
    border-radius: var(--r-pill);
    font-size: 0.76rem;
}

.wallet-rows {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: var(--r-md);
    padding: 6px;
}

.wallet-rows div {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.wallet-rows div + div {
    margin-top: 2px;
}

/* --------------------------------------------------------------- section -- */

section {
    padding: 108px 0;
    position: relative;
}

.section-head {
    max-width: 46em;
    margin-bottom: 56px;
}

.section-head .kicker {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--violet-hi);
    font-weight: 600;
    margin-bottom: 14px;
}

.section-head p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-top: 16px;
}

/* ---------------------------------------------------------------- proof -- */

.proof {
    background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.05), transparent);
}

.equation {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 46px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.equation::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(124, 92, 255, 0.13),
        transparent 60%
    );
    transition: opacity 0.3s;
}

.equation .eq {
    font-family: "SF Mono", ui-monospace, Menlo, monospace;
    font-size: clamp(1.05rem, 2.6vw, 1.85rem);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

.eq .term {
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.3);
    animation: term-glow 3.4s ease-in-out infinite;
}

.eq .term:nth-child(3) {
    animation-delay: 0.5s;
}

.eq .term:nth-child(5) {
    animation-delay: 1s;
}

@keyframes term-glow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(124, 92, 255, 0);
    }
    50% {
        box-shadow: 0 0 26px rgba(124, 92, 255, 0.35);
    }
}

.eq .op {
    color: var(--text-faint);
}

.equation .caption {
    margin-top: 26px;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
    max-width: 46em;
    margin-left: auto;
    margin-right: auto;
}

.verdict {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 10px 20px;
    border-radius: var(--r-pill);
    background: rgba(74, 224, 168, 0.1);
    border: 1px solid rgba(74, 224, 168, 0.4);
    color: var(--success);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

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

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

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

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

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.32s,
        box-shadow 0.32s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hi);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card .ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(124, 92, 255, 0.14);
    border: 1px solid rgba(124, 92, 255, 0.3);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.card .ico svg {
    width: 22px;
    height: 22px;
    stroke: var(--violet-hi);
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--text-dim);
    font-size: 0.96rem;
    margin: 0;
}

/* ----------------------------------------------------------------- specs -- */

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

@media (max-width: 900px) {
    .specs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    text-align: center;
}

.spec .val {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: block;
    background: var(--grad-bright);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.spec .key {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: 6px;
    display: block;
}

/* ---------------------------------------------------------------- chain -- */

.chain-vis {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    padding: 30px 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 12%,
        #000 88%,
        transparent
    );
}

.chain-track {
    display: flex;
    align-items: center;
    gap: 0;
    animation: slide 26s linear infinite;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.blk {
    flex: 0 0 auto;
    width: 128px;
    height: 88px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: grid;
    place-content: center;
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-dim);
    position: relative;
}

.blk b {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    font-family: ui-monospace, monospace;
}

.blk.new {
    border-color: var(--violet);
    box-shadow: 0 0 26px rgba(124, 92, 255, 0.4);
}

.link {
    flex: 0 0 auto;
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--violet), var(--border));
}

/* ---------------------------------------------------------------- steps -- */

.steps {
    counter-reset: step;
    display: grid;
    gap: 18px;
}

.step {
    display: flex;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px 26px;
    align-items: flex-start;
    transition: border-color 0.3s, transform 0.3s;
}

.step:hover {
    border-color: var(--border-hi);
    transform: translateX(6px);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad-bright);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.92rem;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.step p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------- download -- */

.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.dl {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.dl:hover {
    transform: translateY(-6px);
    border-color: var(--violet);
    box-shadow: 0 20px 46px rgba(124, 92, 255, 0.18);
}

.dl .os {
    font-size: 1.15rem;
    font-weight: 650;
    margin-bottom: 4px;
}

.dl .req {
    color: var(--text-faint);
    font-size: 0.84rem;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------- honest -- */

.honest {
    background: rgba(255, 200, 92, 0.05);
    border: 1px solid rgba(255, 200, 92, 0.28);
    border-radius: var(--r-lg);
    padding: 38px;
}

.honest h2 {
    color: var(--warn);
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.honest ul {
    margin: 0;
    padding-left: 22px;
    color: var(--text-dim);
}

.honest li {
    margin-bottom: 12px;
}

.honest li b {
    color: var(--text);
}

/* ---------------------------------------------------------------- footer -- */

footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 40px;
    color: var(--text-faint);
    font-size: 0.9rem;
}

.foot-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.foot-col h4 {
    color: var(--text);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.foot-col a {
    display: block;
    color: var(--text-dim);
    margin-bottom: 9px;
    font-size: 0.92rem;
}

.tagline {
    font-style: italic;
    color: var(--text-faint);
}

/* ------------------------------------------------------------- animation -- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.3, 1),
        transform 0.75s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.reveal[data-delay="1"] {
    transition-delay: 0.1s;
}
.reveal[data-delay="2"] {
    transition-delay: 0.2s;
}
.reveal[data-delay="3"] {
    transition-delay: 0.3s;
}
.reveal[data-delay="4"] {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
