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

:root {
    --brand:        #1a6b7c;
    --brand-dark:   #0f3d47;
    --accent:       #3eb5c5;
    --accent-light: #d4f0f4;
    --bg:           #f7f9fa;
    --surface:      #edf5f7;
    --border:       #b8d8de;
    --text:         #0a2630;
    --muted:        #4a7a88;
    --radius:       12px;
    --max-w:        1100px;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: "Lora", Georgia, "Times New Roman", serif;
}

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

/* ── Layout helpers ────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ───────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 249, 250, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: .9rem;
    color: var(--muted);
    transition: color .15s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    border: none;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

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

.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}

.btn-outline:hover {
    background: var(--accent-light);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
    padding: 100px 0 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

.hero-aurora {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-scene {
    display: block;
    width: 100%;
    margin-top: 48px;
    line-height: 0;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--brand);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    max-width: 780px;
    margin: 0 auto 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 13px 28px;
    font-size: 1rem;
}

/* ── Features ──────────────────────────────────────── */
.features {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-label {
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 56px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow .2s;
}

.feature-card:hover {
    box-shadow: 0 4px 24px rgba(45, 106, 79, .1);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ── How it works ──────────────────────────────────── */
.how {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    counter-reset: steps;
}

.step {
    counter-increment: steps;
}

.step::before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ── CTA strip ─────────────────────────────────────── */
.cta-strip {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-strip-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .15;
    pointer-events: none;
}

.cta-strip > .container {
    position: relative;
}

.cta-strip h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.cta-strip p {
    color: rgba(255, 255, 255, .75);
    font-size: 1rem;
    margin-bottom: 32px;
}

.cta-strip .btn-primary {
    background: #fff;
    color: var(--brand);
}

.cta-strip .btn-primary:hover {
    background: var(--accent-light);
}

/* ── Footer ────────────────────────────────────────── */
footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
}

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

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: .85rem;
    color: var(--muted);
    transition: color .15s;
}

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

.footer-copy {
    font-size: .85rem;
    color: var(--muted);
}

/* ── Wave divider ─────────────────────────────────── */
.wave-divider {
    display: block;
    width: 100%;
    line-height: 0;
    margin-bottom: -1px;
}

/* ── Stats strip ───────────────────────────────────── */
.stats-strip {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Lang toggle ───────────────────────────────────── */
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ── Aurora animation ──────────────────────────────── */
@keyframes aurora-flow-1 {
    from { transform: translateX(0)    scaleY(1);    opacity: .28; }
    to   { transform: translateX(90px) scaleY(1.25); opacity: .42; }
}
@keyframes aurora-flow-2 {
    from { transform: translateX(0)      scaleY(1);   opacity: .20; }
    to   { transform: translateX(-75px)  scaleY(.80); opacity: .32; }
}
@keyframes aurora-flow-3 {
    from { transform: translateX(0)    scaleY(1);    opacity: .14; }
    to   { transform: translateX(60px) scaleY(1.18); opacity: .26; }
}

.aurora-1 {
    animation: aurora-flow-1 9s  ease-in-out infinite alternate;
    transform-origin: 50% 50%;
}
.aurora-2 {
    animation: aurora-flow-2 13s ease-in-out infinite alternate;
    transform-origin: 50% 50%;
}
.aurora-3 {
    animation: aurora-flow-3 7s  ease-in-out infinite alternate;
    transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
    .aurora-1, .aurora-2, .aurora-3 { animation: none; }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 64px 0 56px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}