/* Templ — shared site styles (aligned with app: navy heroes + Bahama Blue) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #12161f;
    --navy-elevated: #1a2030;
    --navy-soft: #242b3a;
    --bahama: #0096c7;
    --bahama-deep: #0077a3;
    --bahama-soft: #33b5d4;
    --surface: #f7f8fa;
    --surface-card: #ffffff;
    --text-on-dark: rgba(255, 255, 255, 0.92);
    --text-on-dark-muted: rgba(255, 255, 255, 0.62);
    --text-primary: #151922;
    --text-secondary: #5c6578;
    --text-light: #8b93a7;
    --outline: rgba(255, 255, 255, 0.12);
    --outline-dark: rgba(18, 22, 31, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 18px 40px rgba(18, 22, 31, 0.18);
    --font: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --primary-color: var(--bahama);
    --primary-dark: var(--bahama-deep);
    --primary-light: var(--bahama-soft);
    --success-color: #2e9e6b;
    --warning-color: #d97706;
    --error-color: #dc4c4c;
    --info-color: var(--bahama);
    --border-radius: var(--radius);
    --border-radius-sm: var(--radius-sm);
    --card-shadow: var(--shadow-soft);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--navy);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--bahama);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--bahama-soft);
}

/* ——— Landing ——— */
.site-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    max-width: 1120px;
    margin: 0 auto;
}

.site-nav .brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-on-dark);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.site-nav .brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
}

.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav .nav-links a {
    color: var(--text-on-dark-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.site-nav .nav-links a:hover {
    color: var(--text-on-dark);
}

.lang-switch {
    display: flex;
    gap: 0.35rem;
}

.lang-switch button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-on-dark-muted);
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switch button:hover,
.lang-switch button.active {
    color: var(--text-on-dark);
    border-color: var(--outline);
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.75rem;
    overflow: hidden;
}

body.prelaunch .hero {
    align-items: stretch;
    justify-content: stretch;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% 42%, rgba(0, 150, 199, 0.22) 0%, transparent 62%),
        radial-gradient(ellipse 70% 50% at 85% 10%, rgba(0, 119, 163, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 8% 88%, rgba(0, 150, 199, 0.16) 0%, transparent 50%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(10, 14, 22, 0.85) 0%, transparent 55%),
        linear-gradient(180deg, #0b0e14 0%, var(--navy) 48%, #151b27 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 210deg at 50% 45%, transparent 0deg, rgba(0, 150, 199, 0.07) 55deg, transparent 120deg, rgba(0, 119, 163, 0.05) 200deg, transparent 280deg);
    animation: atmosphere-drift 28s linear infinite;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
    pointer-events: none;
}

@keyframes atmosphere-drift {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

body.prelaunch .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-inner > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.prelaunch .hero-inner > div {
    justify-content: space-between;
    flex: 1;
}

.hero-inner > div.hidden {
    display: none;
}

.hero-brand {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3.75rem, 13vw, 6.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--text-on-dark);
    text-align: center;
    margin: 0 0 1.75rem;
    text-shadow: 0 0 80px rgba(0, 150, 199, 0.25);
    animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--bahama-soft);
    letter-spacing: -0.02em;
    line-height: 1.35;
    text-align: center;
    margin: 0 0 1.5rem;
    animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-lead {
    max-width: 28rem;
    margin: 0 0 2.5rem;
    font-size: 1.05rem;
    line-height: 1.55;
    text-align: center;
    color: var(--text-on-dark-muted);
    animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

body.prelaunch .hero-brand {
    margin: auto 0 auto;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    background: var(--bahama);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 150, 199, 0.35);
}

.btn-primary:hover {
    background: var(--bahama-soft);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-on-dark);
    border: 1px solid var(--outline);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-on-dark);
}

.btn-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark-muted);
    border: 1px solid var(--outline);
    cursor: default;
}

.btn-muted:hover {
    transform: none;
    color: var(--text-on-dark-muted);
}

.section {
    background: var(--surface);
    color: var(--text-primary);
    padding: 4.5rem 1.75rem;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bahama-deep);
    margin-bottom: 0.75rem;
}

.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-left: 0;
}

.section h2::before {
    display: none;
}

.section-lead {
    max-width: 36rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: left;
    margin: 0;
}

.feature-rule {
    width: 2rem;
    height: 2px;
    background: var(--bahama);
    margin-bottom: 1rem;
}

.site-footer {
    background: var(--navy-elevated);
    color: var(--text-on-dark-muted);
    padding: 2.5rem 1.75rem;
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.site-footer strong {
    color: var(--text-on-dark);
    font-weight: 600;
}

.site-footer a {
    color: var(--text-on-dark-muted);
    font-size: 0.875rem;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.footer-meta {
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

/* ——— Legal / shared document layout ——— */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.doc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.doc-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--outline);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-on-dark-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.doc-tab:hover,
.doc-tab.active {
    background: rgba(0, 150, 199, 0.25);
    border-color: rgba(0, 150, 199, 0.45);
    color: var(--text-on-dark);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-on-dark);
}

.app-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, var(--bahama), var(--bahama-deep));
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 150, 199, 0.25);
    margin-bottom: 0;
}

.app-icon i {
    color: #fff;
    font-size: 1.15rem;
}

.app-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.app-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-on-dark);
    letter-spacing: -0.02em;
}

.language-selector {
    display: flex;
    gap: 0.35rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--outline);
    color: var(--text-on-dark-muted);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font);
    transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(0, 150, 199, 0.25);
    border-color: rgba(0, 150, 199, 0.45);
    color: var(--text-on-dark);
}

.card {
    background: var(--surface-card);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--outline-dark);
}

.back-link {
    margin-bottom: 1.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bahama-deep);
    font-weight: 500;
    font-size: 0.9rem;
}

.back-button:hover {
    color: var(--bahama);
}

.header-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--outline-dark);
}

.privacy-icon,
.terms-icon,
.gdpr-icon,
.data-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--bahama), var(--bahama-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 10px 24px rgba(0, 150, 199, 0.28);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

h2 {
    color: var(--text-primary);
    margin: 2.25rem 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 0.85rem;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: var(--bahama);
    border-radius: 2px;
}

h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.15rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    text-align: left;
}

ul {
    margin: 1rem 0 1.5rem;
    padding-left: 0;
    list-style: none;
}

li {
    margin-bottom: 0.55rem;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bahama);
}

.footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--outline-dark);
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer a {
    color: var(--bahama-deep);
}

.contact-box,
.info-box,
.highlight-box {
    background: var(--surface);
    border: 1px solid var(--outline-dark);
    border-radius: var(--radius-sm);
    padding: 1.15rem 1.25rem;
    margin: 1.25rem 0;
}

.contact-box p,
.info-box p,
.highlight-box p {
    margin-bottom: 0.35rem;
}

.contact-box strong,
.info-box strong {
    color: var(--text-primary);
}

/* 404 */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.error-page .hero-bg {
    position: absolute;
    inset: 0;
}

.error-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

.error-card h1 {
    color: var(--text-on-dark);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.error-card p {
    color: var(--text-on-dark-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.hidden {
    display: none !important;
}

@media (max-width: 860px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-nav .nav-links a.nav-hide-sm {
        display: none;
    }

    .card {
        padding: 1.5rem 1.25rem;
    }

}

@media (max-width: 520px) {
    .site-nav {
        padding: 1rem 1.15rem;
    }

    .hero {
        padding: 4rem 1.15rem;
    }

    .section {
        padding: 3.25rem 1.15rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg::before {
        animation: none;
    }

    .hero-brand,
    .hero-tagline,
    .hero-lead,
    .hero-cta {
        animation: none;
    }
}
