:root {
    --bg: #0d1420;
    --surface: #141d2c;
    --surface-raised: #1a2536;
    --border: #263248;
    --text: #eef2f7;
    --text-muted: #93a1b8;
    --primary: #5b9bd5;
    --primary-strong: #7fb4e3;
    --accent: #f2a154;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
}

.icon--heart {
    width: 0.85em;
    height: 0.85em;
    vertical-align: -0.08em;
}

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

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(13, 20, 32, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-bar__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-bar__brand {
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-bar__brand-icon {
    color: var(--primary-strong);
    font-size: 1.3rem;
}

.nav-bar__links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.95rem;
}

.nav-bar__page-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Redundant with the floating bottom-nav's own Home/Features/Security/
   Download links at phone width -- keep only the brand and language
   toggle up top there. */
@media (max-width: 720px) {
    .nav-bar__page-links {
        display: none;
    }
}

.nav-bar__links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

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

.nav-bar__cta {
    color: var(--primary-strong) !important;
    font-weight: 600;
}

.language-toggle {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.language-toggle:hover {
    border-color: var(--primary);
}

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

.hero {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: 96px 24px 72px;
    text-align: center;
    overflow: hidden;
}

.hero__eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.hero__headline {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin: 0 0 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero__headline-break {
    display: none;
}

@media (min-width: 640px) {
    .hero__headline-break {
        display: inline;
    }
}

.hero__subhead {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.button {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.98rem;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--primary);
    color: #0d1420;
}

.button--primary:hover {
    background: var(--primary-strong);
}

.button--ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

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

/* ---- shared section chrome ---- */

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.features,
.security {
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 24px;
}

/* ---- features ---- */

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

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

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.feature-card__icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 14px;
    color: var(--primary-strong);
}

.feature-card__title {
    font-size: 1.05rem;
    margin: 0 0 10px;
}

.feature-card__description {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* ---- security ---- */

.security {
    background: var(--surface);
    border-radius: 28px;
}

.security__intro {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}

.security__lede {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.security__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.security-point {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.security-point__title {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--primary-strong);
}

.security-point__description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

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

.footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.footer a {
    text-decoration: none;
    color: var(--text-muted);
}

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

.footer__credit {
    font-weight: 600;
}

.footer__privacy-link {
    text-decoration: none;
    color: var(--text-muted);
}

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

.footer__credit-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer__credit-line .icon {
    color: var(--accent);
}

/* ---- bottom nav (floating, mobile-app-style) ---- */

.bottom-nav {
    /* Mobile-app-style chrome -- only makes sense at phone width; on
       desktop the top nav-bar already covers the same links. */
    display: none;
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 20;
    gap: 4px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
    .bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 96px;
    }
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.bottom-nav__item .icon {
    font-size: 1.15rem;
}

.bottom-nav__item:hover {
    color: var(--text);
}

.bottom-nav__item--active {
    background: var(--primary);
    color: #0d1420;
}

@media (max-width: 480px) {
    .bottom-nav__item span {
        display: none;
    }
    .bottom-nav__item {
        padding: 10px 14px;
    }
}

/* ---- privacy policy page ---- */

.policy-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 24px;
}

.policy-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 20px;
}

.policy-intro {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 0 0 40px;
}

.policy-section {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.policy-section h2 {
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: var(--primary-strong);
}

.policy-section p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
}

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

.download-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 96px 24px 40px;
    text-align: center;
}

.download-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 16px;
}

.download-page p {
    color: var(--text-muted);
    margin: 0 0 28px;
}

.download-page__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    padding: 16px 32px;
}

.download-page__button .icon {
    font-size: 1.2rem;
}

.download-page__note {
    margin-top: 20px;
    font-size: 0.85rem;
}

.download-steps {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

.download-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.download-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.download-step__number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--primary-strong);
    font-weight: 700;
}

.download-step h3 {
    font-size: 1rem;
    margin: 4px 0 6px;
}

.download-step p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.download-recap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 24px 80px;
}

.download-recap__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

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

.download-recap__icon {
    display: inline-flex;
    color: var(--primary-strong);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.download-recap__item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}
