/* -------------------------
   Design tokens (Together.ai system)
--------------------------*/
:root {
    --bg: #ffffff;
    --bg-dark: #010120;
    --text: #000000;
    --text-muted: #6b7280;
    --text-on-dark: #ffffff;
    --text-muted-dark: rgba(255, 255, 255, 0.6);
    --accent-magenta: #ef2cc1;
    --accent-orange: #fc4c02;
    --accent-lavender: #bdbbff;
    --border: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.12);
    --shadow: rgba(1, 1, 32, 0.1) 0px 4px 10px;
    --radius-sm: 4px;
    --radius: 8px;
    --maxw: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.16px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

h1, h2, h3 {
    line-height: 1.2;
    margin: 0;
    font-weight: 500;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

code {
    font-family: 'JetBrains Mono', monospace;
}

.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

:focus-visible {
    outline: 2px solid var(--accent-lavender);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* -------------------------
   Accessibility
--------------------------*/
.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(--bg);
    padding: 8px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 200;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* -------------------------
   Navigation
--------------------------*/
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border);
}

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

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

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: url("images/logo_nav.webp") center/cover no-repeat;
}

/* -------------------------
   Buttons
--------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.15px;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn:hover {
    opacity: 0.85;
}

.btn.primary {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    border-color: transparent;
}

.btn.glass {
    background: var(--glass);
    color: var(--text-on-dark);
    border-color: var(--border-dark);
}

.btn.glass:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* -------------------------
   Section label (mono)
--------------------------*/
.section-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.section-label--light {
    color: var(--text-muted);
}

.section-label--dark {
    color: var(--accent-lavender);
}

/* -------------------------
   Hero
--------------------------*/
.hero {
    padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 120px);
    background: linear-gradient(135deg, #fce4ec 0%, #e8eaf6 50%, #e3f2fd 100%);
}

.hero-content {
    max-width: 700px;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 500;
    letter-spacing: -1.92px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.lead {
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.35;
    letter-spacing: -0.18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

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

.bg-gradient {
    background: linear-gradient(135deg, #fce4ec 0%, #e8eaf6 50%, #e3f2fd 100%);
}

/* -------------------------
   Sections common
--------------------------*/
section {
    padding: clamp(60px, 10vw, 120px) 0;
}

.section-header {
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    letter-spacing: -0.18px;
    line-height: 1.35;
    color: var(--text-muted);
    max-width: 600px;
}

/* -------------------------
   Explainer
--------------------------*/
.explainer-body {
    max-width: 680px;
    margin-bottom: 56px;
}

.explainer-body p {
    font-size: 17px;
    letter-spacing: -0.17px;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 20px;
}

.explainer-body p:last-child {
    margin-bottom: 0;
}

.explainer-body--dark {
    max-width: 680px;
    margin-bottom: 56px;
}

.explainer-body--dark p {
    font-size: 17px;
    letter-spacing: -0.17px;
    line-height: 1.45;
    color: var(--text-muted-dark);
    margin-bottom: 20px;
}

.explainer-body--dark p:last-child {
    margin-bottom: 0;
}

.explainer-body a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s;
}

.explainer-body a:hover {
    text-decoration-color: var(--text);
}

.explainer-body--dark a {
    color: var(--text-on-dark);
    text-decoration: underline;
    text-decoration-color: var(--border-dark);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s;
}

.explainer-body--dark a:hover {
    text-decoration-color: var(--text-on-dark);
}

.examples-grid.examples-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.example-card {
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.example-card h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.22px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.example-card p {
    font-size: 15px;
    letter-spacing: -0.15px;
    line-height: 1.4;
    color: var(--text-muted);
}

.example-card a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s;
}

.example-card a:hover {
    text-decoration-color: var(--text);
}

@media (max-width: 768px) {
    .examples-grid,
    .examples-grid.examples-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* -------------------------
   How It Works (dark)
--------------------------*/
.how-it-works {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.how-it-works .section-header h2 {
    color: var(--text-on-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    padding: 28px;
}

/* -------------------------
   What We Do (dark)
--------------------------*/
.what-we-do {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.what-we-do .section-header p {
    color: var(--text-muted-dark);
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.block-card {
    padding: 32px;
    background: var(--glass);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
}

.block-card h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.22px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-on-dark);
}

.block-card p {
    font-size: 16px;
    letter-spacing: -0.16px;
    line-height: 1.4;
    color: var(--text-muted-dark);
    margin-bottom: 0;
}

.block-card p + p {
    margin-top: 16px;
}

.block-quote {
    font-style: italic;
    font-size: 14px;
    letter-spacing: -0.14px;
    line-height: 1.45;
    color: var(--accent-lavender);
    padding-left: 16px;
    border-left: 2px solid var(--border-dark);
}

.block-card a {
    color: var(--text-on-dark);
    text-decoration: underline;
    text-decoration-color: var(--border-dark);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s;
}

.block-card a:hover {
    text-decoration-color: var(--text-on-dark);
}

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

/* -------------------------
   Team
--------------------------*/
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.team-card {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.team-card h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.22px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.team-role {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.team-card p {
    font-size: 16px;
    letter-spacing: -0.16px;
    line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.team-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.14px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: border-color 0.15s;
}

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

.team-section--dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.team-section--dark .section-header h2 {
    color: var(--text-on-dark);
}

.team-card--dark {
    background: var(--glass);
    border-color: var(--border-dark);
    box-shadow: none;
}

.team-card--dark h3 {
    color: var(--text-on-dark);
}

.team-card--dark .team-role {
    color: var(--accent-lavender);
}

.team-card--dark p {
    color: var(--text-muted-dark);
}

.team-link--dark {
    color: var(--text-on-dark);
    border-bottom-color: var(--border-dark);
}

.team-link--dark:hover {
    border-color: var(--text-on-dark);
}

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

/* -------------------------
   Supported By
--------------------------*/

.supported-section {
    padding: 60px 0 80px;
    text-align: center;
}

.supporters-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.supporter-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.supporter-card:hover {
    border-color: var(--accent);
}

.supporter-card img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.2s, opacity 0.2s;
}

.supporter-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* -------------------------
   Footer
--------------------------*/
footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 48px 0;
    border-top: 1px solid var(--border-dark);
}

.team-section--dark + footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

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

.foot .brand {
    color: var(--text-on-dark);
}

.foot-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.foot-left .muted {
    font-size: 14px;
    letter-spacing: -0.14px;
    color: var(--text-muted-dark);
}

.foot-center {
    display: flex;
    align-items: center;
    gap: 24px;
}

.foot-center a:not(.btn) {
    font-size: 14px;
    letter-spacing: -0.14px;
    color: var(--text-muted-dark);
    text-decoration: none;
    transition: color 0.15s;
}

.foot-center a:not(.btn):hover {
    color: var(--text-on-dark);
}

.foot-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted-dark);
}

.social-link {
    color: var(--text-muted-dark);
    text-decoration: none;
    transition: color 0.15s;
}

.social-link:hover {
    color: var(--text-on-dark);
}

@media (max-width: 768px) {
    .foot {
        flex-direction: column;
        align-items: flex-start;
    }
}
