/* Nevisa landing page. Tokens mirror the app's dark palette (core/design theme/color/Color.kt)
   so the site and the app read as one product. */

:root {
    --bg: #0E0F17;          /* ScreenBackground */
    --surface: #1D212A;     /* SurfaceContainer — the card colour used across the app */
    --surface-2: #171B23;
    --primary: #00C896;
    --primary-ink: #04150E; /* OnPrimary */
    --primary-dim: #12D79F;
    --text: #E6E1E5;        /* OnSurface */
    --text-dim: #CAC4D0;    /* OnSurfaceVariant */
    --muted: #6F767E;
    --line: rgba(230, 225, 229, 0.10);
    --radius: 20px;
    --page: 1120px;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/vazirmatn-regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/vazirmatn-semibold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/vazirmatn-bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Vazirmatn", system-ui, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* The app draws a soft primary glow behind its screens (GlowBackground) — same idea here. */
body::before {
    content: "";
    position: fixed;
    inset: -30vh 0 auto 0;
    height: 90vh;
    background:
        radial-gradient(60vw 50vh at 70% 0%, rgba(0, 200, 150, 0.16), transparent 70%),
        radial-gradient(50vw 40vh at 20% 10%, rgba(0, 200, 150, 0.07), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

h1,
h2,
h3 {
    line-height: 1.45;
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0;
}

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

.wrap {
    width: min(100% - 40px, var(--page));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 0;
    background: rgba(14, 15, 23, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 19px;
}

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

.nav {
    display: flex;
    gap: 26px;
    margin-inline-start: auto;
    color: var(--text-dim);
    font-size: 15px;
}

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

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--primary-ink);
}

.btn-primary:hover {
    background: var(--primary-dim);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 9px 20px;
    font-size: 15px;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

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

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-lead {
    margin-top: 22px;
    font-size: 19px;
    color: var(--text-dim);
    max-width: 34em;
}

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

.hero-meta {
    margin-top: 22px;
    color: var(--muted);
    font-size: 15px;
}

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

/* ── Phone mock ────────────────────────────────────────────────────────── */

.phone {
    justify-self: center;
    width: 300px;
    padding: 12px;
    border-radius: 44px;
    background: linear-gradient(160deg, #2a3038, #12151c);
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 200, 150, 0.06);
}

.phone-screen {
    border-radius: 34px;
    background: var(--bg);
    padding: 26px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 520px;
}

.phone-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.phone-brand img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

.phone-title {
    font-size: 21px;
    font-weight: 700;
}

.phone-sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: -8px;
}

.mock-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.mock-card.accent {
    border-color: rgba(0, 200, 150, 0.35);
    background: linear-gradient(180deg, rgba(0, 200, 150, 0.10), rgba(0, 200, 150, 0.02));
    display: flex;
    align-items: center;
    gap: 14px;
}

.mock-mic {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    display: grid;
    place-items: center;
    flex: none;
}

.mock-mic svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-ink);
}

.mock-card b {
    display: block;
    font-size: 15px;
}

.mock-card small {
    color: var(--muted);
    font-size: 12px;
}

/* The waveform animates so the mock reads as "listening" rather than a flat screenshot. */
.wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 56px;
    margin-top: 4px;
}

.wave i {
    width: 5px;
    border-radius: 3px;
    background: var(--primary);
    opacity: 0.85;
    animation: pulse 1.25s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { height: 12px; }
    50% { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .wave i {
        animation: none;
        height: 26px;
    }
}

.mock-line {
    height: 9px;
    border-radius: 5px;
    background: rgba(230, 225, 229, 0.12);
    margin-bottom: 9px;
}

.mock-line.short {
    width: 55%;
}

.mock-line.mid {
    width: 78%;
}

/* ── Sections ──────────────────────────────────────────────────────────── */

section {
    padding: 74px 0;
}

.section-head {
    max-width: 40em;
    margin-bottom: 44px;
}

.eyebrow {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.section-head h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    margin-top: 8px;
}

.section-head p {
    color: var(--text-dim);
    margin-top: 12px;
}

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

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

.card:hover {
    border-color: rgba(0, 200, 150, 0.35);
    transform: translateY(-3px);
}

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

.card p {
    color: var(--text-dim);
    font-size: 15.5px;
}

.tile {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(0, 200, 150, 0.12);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.tile svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

/* ── Steps ─────────────────────────────────────────────────────────────── */

.steps {
    counter-reset: step;
}

.step {
    position: relative;
    padding-inline-start: 70px;
}

.step::before {
    counter-increment: step;
    content: counter(step, persian);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 200, 150, 0.12);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 19px;
}

.step h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-dim);
    font-size: 15.5px;
}

/* ── Privacy band ──────────────────────────────────────────────────────── */

.band {
    background: linear-gradient(180deg, rgba(0, 200, 150, 0.09), rgba(0, 200, 150, 0.02));
    border: 1px solid rgba(0, 200, 150, 0.22);
    border-radius: 26px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.band h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.band p {
    color: var(--text-dim);
    margin-top: 14px;
}

.band ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.band li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-dim);
    font-size: 15.5px;
}

.band li svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
    flex: none;
    margin-top: 6px;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq {
    display: grid;
    gap: 12px;
    max-width: 860px;
}

details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 24px;
}

details[open] {
    border-color: rgba(0, 200, 150, 0.3);
}

summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    color: var(--primary);
    font-size: 22px;
    flex: none;
}

details[open] summary::after {
    content: "−";
}

details p {
    color: var(--text-dim);
    font-size: 15.5px;
    margin-top: 12px;
}

/* ── Download ──────────────────────────────────────────────────────────── */

.download {
    text-align: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 60px 40px;
}

.download h2 {
    font-size: clamp(26px, 3.4vw, 38px);
}

.download p {
    color: var(--text-dim);
    margin-top: 14px;
}

.download .hero-actions {
    justify-content: center;
}

.download small {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-top: 20px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    color: var(--muted);
    font-size: 15px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

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

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 56px;
        gap: 46px;
    }

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

    .band {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .nav {
        display: none;
    }

    section {
        padding: 54px 0;
    }
}
