/* -------------------------
   Design tokens
--------------------------*/
:root {
    --bg: #ffffff;
    --text: #000;
    /* slate-900 */
    --muted: #475569;
    /* slate-600 */
    --border: #e2e8f0;
    /* slate-200 */
    --card: #ffffff;
    --brand: var(--text);
    --on-brand: #fff;
    /* sky-500 */
    --brand-ink: #0b72a8;
    /* darker sky */
    --accent: #000;
    /* teal-500 */
    --radius: 12px;
    --shadow: 0 10px 30px rgba(2, 8, 23, .08);
    --maxw: 1100px;
    --space: clamp(16px, 2vw, 24px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000;
        /* navy */
        --text: #fff;
        --brand: var(--text);
        --on-brand: #000;
        /* gray-200 */
        --muted: #94a3b8;
        /* slate-400 */
        --border: #1e293b;
        /* slate-800 */
        --card: #0f172a;
        /* slate-900 */
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    }
}

/* -------------------------
   Base
--------------------------*/
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit
}

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

.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px)
}

/* Focus styles */
:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

/* -------------------------
   Top nav
--------------------------*/
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    background: var(--card);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow)
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.3) blur(8px);
    background: color-mix(in oklab, var(--bg) 50%, transparent);
    /* border-bottom: 1px solid var(--border); */
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("images/logo_nav.webp");
}

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

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
    will-change: transform;
}

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

.btn.primary {
    background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 90%, white), var(--brand));
    color: var(--on-brand);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(14, 165, 233, .35);
}

.btn.ghost {
    background: transparent;
    box-shadow: none
}

/* Mobile menu */
.menu-btn {
    display: none
}

@media (max-width: 800px) {
    .menu-btn {
        display: inline-flex
    }

    .nav-links {
        display: none
    }

    .nav.open .nav-links {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        padding: 14px clamp(16px, 4vw, 32px);
        flex-direction: column;
        gap: 12px;
    }
}

/* -------------------------
   Hero
--------------------------*/
.hero {
    padding-block: clamp(40px, 8vw, 96px);
}

.hero-grid {
    display: grid;
    gap: clamp(20px, 4vw, 40px);
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
}

@media (max-width: 950px) {
    .hero-grid {
        grid-template-columns: 1fr
    }
}

h1 {
    font-size: clamp(30px, 4.5vw, 52px);
    margin: 0 0 30px;
}

.lead {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--muted);
    margin: 0 0 30px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.hero-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    display: grid;
    place-items: center;
    padding: 20px;
    background-image:
        radial-gradient(60% 60% at 85% 10%, color-mix(in oklab, var(--brand) 22%, transparent), transparent),
        radial-gradient(50% 50% at 15% 90%, color-mix(in oklab, var(--accent) 18%, transparent), transparent);
}

.hero-art {
    width: 85%;
    max-width: 520px;
    aspect-ratio: 4/3;
    border-radius: 20px;
    border: 1px dashed var(--border);
    display: grid;
    place-items: center;
    color: var(--muted);
    background: repeating-linear-gradient(45deg, transparent, transparent 14px, color-mix(in oklab, var(--border) 60%, transparent) 14px, color-mix(in oklab, var(--border) 60%, transparent) 28px);
}

/* -------------------------
   Sections
--------------------------*/
section {
    padding-block: clamp(36px, 6vw, 72px)
}

.section-title {
    font-size: clamp(22px, 3vw, 32px);
    margin: 0 0 8px;
}

.section-sub {
    color: var(--muted);
    margin: 0 0 24px
}

.grid {
    display: grid;
    gap: clamp(16px, 3vw, 24px);
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr
    }
}

.card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    padding: clamp(16px, 2.5vw, 24px);
    box-shadow: var(--shadow);
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 22%, transparent), transparent);
    margin-bottom: 10px;
}

.muted {
    color: var(--muted)
}

.center {
    text-align: center
}

.testimonials {
    display: grid;
    gap: clamp(16px, 3vw, 24px);
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .testimonials {
        grid-template-columns: 1fr
    }
}

blockquote {
    margin: 0
}

.quote {
    font-weight: 600
}

.person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: inset 0 0 0 2px var(--card);
}

.cta {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, color-mix(in oklab, var(--card) 80%, transparent), transparent);
    border-radius: var(--radius);
    padding: clamp(20px, 3.5vw, 32px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

footer {
    padding-block: 28px;
    color: var(--muted);
    /* border-top: 1px solid var(--border); */
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Reduced motion niceties */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}
