@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --timeline-thinking: #dfa88f;
    --timeline-grep: #9fc9a2;
    --timeline-read: #9fbbe0;
    --timeline-edit: #c0a8dd;
    --timeline-done: #c08532;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;

    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;

    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-base: 16px;
    --spacing-md: 20px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 80px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* TOP NAV */
.top-nav {
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-wordmark {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.nav-wordmark span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    flex-direction: column;
    gap: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* BUTTONS */
.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-active);
    color: var(--on-primary);
}

.btn-secondary {
    background-color: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* BADGE PILL */
.badge-pill {
    background-color: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    line-height: 1.4;
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    display: inline-block;
}

/* HERO BAND */
.hero-band {
    background-color: var(--canvas);
    padding: var(--spacing-section) 0;
    text-align: center;
}

.hero-label {
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    margin-bottom: var(--spacing-xl);
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-base);
    flex-wrap: wrap;
}

/* SECTION LAYOUT */
.section {
    padding: var(--spacing-section) 0;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-base);
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: var(--spacing-base);
}

.section-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    max-width: 600px;
}

.section-header {
    margin-bottom: var(--spacing-xxl);
}

/* ARTICLE CARDS GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.article-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-xs);
}

.article-card-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

.article-card-excerpt {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    flex: 1;
    margin-bottom: var(--spacing-base);
}

.article-card-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: auto;
}

.article-card-link {
    display: block;
    text-decoration: none;
}

.article-card-link:hover .article-card-title {
    color: var(--primary);
}

/* FEATURE CARDS */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
}

.feature-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.feature-card-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

.feature-card-icon {
    font-size: 28px;
    margin-bottom: var(--spacing-sm);
}

/* DIVIDER */
.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

/* CTA BAND */
.cta-band {
    background-color: var(--canvas);
    padding: 96px 0;
    text-align: center;
    border-top: 1px solid var(--hairline);
}

.cta-band-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: var(--spacing-xl);
}

/* FOOTER */
.site-footer {
    background-color: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
}

.footer-brand-name span {
    color: var(--primary);
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

.footer-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* ARTICLE PAGE */
.article-header {
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    border-bottom: 1px solid var(--hairline);
}

.article-header-inner {
    max-width: 760px;
    margin: 0 auto;
}

.article-category-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--spacing-base);
    display: block;
}

.article-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: var(--spacing-lg);
}

.article-lead {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: var(--spacing-xl);
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: var(--spacing-base);
    flex-wrap: wrap;
}

.article-body {
    padding: var(--spacing-section) 0;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-base);
}

.article-content h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.article-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-base);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--spacing-base);
    padding-left: var(--spacing-xl);
}

.article-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.article-content .article-figure {
    margin: var(--spacing-xxl) 0;
}

.article-content .article-figure img {
    width: 100%;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.article-content .article-figure figcaption {
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
    margin-top: var(--spacing-xs);
}

.article-content a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--primary);
}

.info-box {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--timeline-read);
    border-radius: var(--rounded-md);
    padding: var(--spacing-base) var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.info-box p {
    margin-bottom: 0;
}

/* PAGE HEADER (about, privacy, terms) */
.page-header {
    background-color: var(--canvas);
    padding: var(--spacing-section) 0 var(--spacing-xxl);
    border-bottom: 1px solid var(--hairline);
}

.page-header-inner {
    max-width: 760px;
    margin: 0 auto;
}

.page-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: var(--spacing-base);
}

.page-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
}

.page-body {
    padding: var(--spacing-section) 0;
}

.page-content {
    max-width: 760px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-base);
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xs);
}

.page-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-base);
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--spacing-base);
    padding-left: var(--spacing-xl);
}

.page-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--spacing-xs);
}

.page-updated {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-base);
    border-top: 1px solid var(--hairline);
}

/* CONTACT FORM */
.contact-section {
    padding: var(--spacing-section) 0;
    background-color: var(--canvas);
}

.contact-form-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-base);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea {
    width: 100%;
    background-color: var(--surface-card);
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}

.form-textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--ink);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted-soft);
}

.form-message {
    display: none;
    padding: var(--spacing-base);
    border-radius: var(--rounded-md);
    font-size: 14px;
    margin-top: var(--spacing-base);
}

.form-message.success {
    background-color: #e8f5f0;
    border: 1px solid var(--semantic-success);
    color: var(--semantic-success);
    display: block;
}

.form-message.error {
    background-color: #fde8ec;
    border: 1px solid var(--semantic-error);
    color: var(--semantic-error);
    display: block;
}

.form-loading {
    display: none;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 14px;
    color: var(--muted);
    margin-top: var(--spacing-base);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--hairline-strong);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-card);
    border-top: 1px solid var(--hairline);
    padding: var(--spacing-base) var(--spacing-xl);
    z-index: 200;
    display: none;
}

.cookie-banner.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    flex: 1;
    min-width: 200px;
}

.cookie-text a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

/* BREADCRUMB */
.breadcrumb {
    padding: var(--spacing-base) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    list-style: none;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
}

.breadcrumb-list a {
    color: var(--muted);
}

.breadcrumb-list a:hover {
    color: var(--ink);
}

.breadcrumb-sep {
    color: var(--hairline-strong);
}

/* RELATED ARTICLES */
.related-section {
    padding: var(--spacing-section) 0;
    border-top: 1px solid var(--hairline);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* ABOUT TEAM */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.team-card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: var(--spacing-lg);
}

.team-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--spacing-xxs);
}

.team-card-role {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.team-card-bio {
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
}

/* HERO IMAGE */
.hero-image-wrap {
    margin-top: var(--spacing-xxl);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
}

.hero-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* STATS STRIP */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-xxl) 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.1;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: var(--spacing-xxs);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
        letter-spacing: -1.5px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        padding: var(--spacing-base) var(--spacing-xl);
        gap: var(--spacing-base);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-actions .btn-secondary {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .top-nav {
        position: relative;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .article-title,
    .page-title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .section-title {
        font-size: 28px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 var(--spacing-base);
    }

    .cookie-banner.visible {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image-wrap img {
        height: 220px;
    }
}
