:root {
    --bg: #f5f8fb;
    --surface: #ffffff;
    --surface-alt: #eef3f8;
    --text: #1c2c3a;
    --text-soft: #55697b;
    --line: #d0dbe6;
    --brand: #005f7f;
    --brand-strong: #004862;
    --brand-dark: #003650;
    --accent: #cc8b28;
    --accent-soft: rgba(204, 139, 40, 0.15);
    --success: #106b45;
    --error: #ac273a;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --shadow-sm: 0 4px 14px rgba(17, 39, 57, 0.07);
    --shadow-md: 0 18px 36px rgba(17, 39, 57, 0.1);
    --focus-ring: 0 0 0 3px rgba(0, 95, 127, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand);
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.narrow {
    width: min(760px, calc(100% - 2rem));
}

/* ── Skip link ─────────────────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: var(--space-3);
    top: var(--space-3);
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    z-index: 999;
}

/* ── Typography ─────────────────────────────────────── */
h1,
h2,
h3 {
    font-family: "Calibri", "Trebuchet MS", Arial, sans-serif;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    margin: var(--space-4) 0 var(--space-3);
    max-width: 18ch;
    color: #ffffff;
}

h2 {
    font-size: clamp(1.45rem, 3.8vw, 2.35rem);
    margin-bottom: var(--space-3);
    color: #183042;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
    color: #183042;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 2px solid transparent;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #b87a20;
    border-color: #b87a20;
}

.btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* ── Hero / Header ──────────────────────────────────── */
.site-header {
    background:
        linear-gradient(145deg, var(--brand-dark) 0%, var(--brand) 55%, #007a9e 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
}

/* decorative circles */
.site-header::before,
.site-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.site-header::before {
    width: 700px;
    height: 700px;
    top: -260px;
    right: -180px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}

.site-header::after {
    width: 400px;
    height: 400px;
    bottom: -160px;
    left: -80px;
    background: radial-gradient(circle, rgba(204,139,40,0.18) 0%, transparent 70%);
}

.hero-shell {
    position: relative;
    z-index: 1;
}

.hero-brand-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: 0;
}

.brand-logo {
    width: clamp(80px, 14vw, 110px);
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.brand-kicker {
    margin: 0;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    width: fit-content;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hero-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.hero-link-highlight {
    color: var(--accent);
    border-color: rgba(204, 139, 40, 0.5);
    background: rgba(204, 139, 40, 0.1);
}

.hero-link-highlight:hover {
    background: rgba(204, 139, 40, 0.2);
    border-color: var(--accent);
    color: #e6a030;
}

.hero-positioning {
    font-size: clamp(1.04rem, 2.5vw, 1.22rem);
    margin: 0 0 var(--space-3);
    color: rgba(255,255,255,0.88);
    max-width: 62ch;
}

.hero-support {
    margin: 0;
    max-width: 62ch;
    color: rgba(255,255,255,0.65);
    font-size: 0.97rem;
}

.hero-actions {
    margin-top: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.hero-actions .btn {
    min-width: 200px;
    justify-content: center;
}

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

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Sections ───────────────────────────────────────── */
.section {
    padding: var(--space-6) 0;
}

.section-alt {
    background: linear-gradient(180deg, #f0f5fa 0%, var(--bg) 100%);
}

.section-header {
    margin-bottom: var(--space-4);
}

.section-header p {
    margin: 0;
    max-width: 64ch;
    color: var(--text-soft);
}

.section-eyebrow {
    display: inline-block;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.72rem;
    margin-bottom: var(--space-2);
    background: rgba(0, 95, 127, 0.08);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

/* on light backgrounds, primary btn uses brand color */
.section .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.section .btn-primary:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
}

/* ── Contact card ───────────────────────────────────── */
.section-contact {
    background: var(--surface-alt);
}

.contact-card {
    background: var(--surface);
    border: 1px solid rgba(0, 95, 127, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-6) var(--space-5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 95, 127, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    flex-shrink: 0;
}

.contact-card .section-eyebrow {
    margin: 0;
}

.contact-card h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--brand-strong);
}

.contact-intro {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
    max-width: 520px;
    line-height: 1.7;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    margin-top: var(--space-1);
}

.contact-address {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
    letter-spacing: 0.01em;
}

/* ── Principle cards ────────────────────────────────── */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.principle-card {
    border: 1px solid rgba(0, 95, 127, 0.12);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
    position: relative;
    overflow: hidden;
}

.principle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    opacity: 0.35;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.principle-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.principle-highlight {
    border-color: rgba(204, 139, 40, 0.4);
    background: linear-gradient(160deg, #ffffff 0%, #fff8ef 100%);
}

.principle-highlight::before {
    background: var(--accent);
    opacity: 0.7;
}

.principle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 95, 127, 0.08);
    margin-bottom: var(--space-2);
    color: var(--brand);
}

.principle-highlight .principle-icon {
    background: rgba(204, 139, 40, 0.12);
    color: var(--accent);
}

/* ── About / What is Athena ─────────────────────────── */
.about-header {
    margin-bottom: var(--space-4);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.about-card {
    background: var(--surface);
    border: 1px solid rgba(0, 95, 127, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.about-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0.4;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0, 95, 127, 0.1), rgba(0, 95, 127, 0.04));
    color: var(--brand);
    flex-shrink: 0;
}

.about-card h3 {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.about-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.65;
}

@media (min-width: 700px) {
    .about-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ── Who can join ───────────────────────────────────── */
.join-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
}

.join-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--surface);
    border: 1px solid rgba(0, 95, 127, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    box-shadow: var(--shadow-sm);
    font-size: 0.97rem;
    color: var(--text);
}

.join-item-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.5;
}

/* ── Final CTA ──────────────────────────────────────── */
.final-cta {
    background: linear-gradient(145deg, var(--brand-dark) 0%, var(--brand) 60%, #007a9e 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 65%);
    pointer-events: none;
}

.final-cta h2 {
    color: #ffffff;
    max-width: 22ch;
    margin-inline: auto;
}

.final-cta p {
    color: rgba(255,255,255,0.75);
    margin-bottom: var(--space-4);
}

.final-cta .btn-secondary {
    margin-left: var(--space-2);
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid rgba(0, 95, 127, 0.1);
    padding: var(--space-4) 0 var(--space-5);
    color: var(--text-soft);
    font-size: 0.93rem;
    background: var(--surface);
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.footer-brand {
    font-weight: 700;
    color: var(--brand);
    font-size: 0.88rem;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.75;
}

/* ── Responsive ─────────────────────────────────────── */
@media (min-width: 700px) {
    .site-header {
        padding: 6rem 0 7rem;
    }

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

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


@media (min-width: 1024px) {
    .section {
        padding: 5rem 0;
    }

    .principles-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
