:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --success: #1f8a65;
    --error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
address { font-style: normal; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.nav-logo:hover { color: var(--primary); }
.logo-mark { font-size: 20px; color: var(--primary); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-strong);
    border-radius: var(--rounded-sm);
    transition: color 0.15s, background 0.15s;
}
.nav-menu > li > a:hover { color: var(--primary); background: var(--hairline-soft); }

.nav-dropdown { position: relative; }
.nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    min-width: 200px;
    padding: 8px;
    z-index: 200;
}
.nav-dropdown:hover .nav-submenu { display: block; }
.nav-submenu li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
    border-radius: var(--rounded-sm);
}
.nav-submenu li a:hover { color: var(--primary); background: var(--canvas); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--rounded-md);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* HERO */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2.16px;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: 24px;
}
.hero-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
    margin-bottom: 48px;
}
.hero-image-wrap {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 460px;
}
.hero-image-wrap img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.section-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-lead {
    font-size: 16px;
    color: var(--body);
    max-width: 600px;
    margin-bottom: 48px;
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.4;
}
.feature-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card-img {
    height: 200px;
    overflow: hidden;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.article-card-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 20px;
}
.article-read-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

/* ARTICLE PAGE */
.article-hero {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
}
.article-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.article-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
}
.article-date { font-size: 13px; color: var(--muted); }
.article-hero h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 20px;
}
.article-hero-lead {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
    max-width: 680px;
}
.article-image-wrap {
    max-width: 800px;
    margin: 48px auto 0;
    padding: 0 24px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
}
.article-image-wrap img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}
.article-image-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    line-height: 1.25;
    margin: 48px 0 16px;
}
.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin: 32px 0 12px;
}
.article-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: 0.08px;
}
.article-body ul, .article-body ol {
    margin: 0 0 20px 20px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.6;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }

.article-body .callout {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 32px 0;
}
.article-body .callout p { margin: 0; font-size: 15px; color: var(--body-strong); }

.article-body .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
}
.article-body .data-table th {
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--hairline);
}
.article-body .data-table td {
    padding: 12px 16px;
    border: 1px solid var(--hairline);
    color: var(--body);
}
.article-body .data-table tr:nth-child(even) td { background: var(--canvas-soft); }

.article-body .secondary-img {
    margin: 32px 0;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}
.article-body .secondary-img img { width: 100%; object-fit: cover; max-height: 340px; }
.article-body .secondary-img figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: 8px 16px;
    background: var(--canvas-soft);
}

.article-nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
    border-top: 1px solid var(--hairline);
    padding-top: 40px;
}
.article-nav p {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.article-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.article-nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    padding: 16px 20px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    display: block;
}
.article-nav-links a:hover { border-color: var(--primary); color: var(--primary); }

/* PAGE (about, privacy, terms) */
.page-hero {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
}
.page-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.page-hero h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 16px;
}
.page-hero-lead {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
}
.page-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.page-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 40px 0 16px;
}
.page-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}
.page-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}
.page-body ul {
    margin: 0 0 16px 20px;
    list-style: disc;
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
}
.page-body li { margin-bottom: 8px; }
.page-updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hairline);
}

/* CONTACT FORM */
.contact-section { padding: 80px 0; background: var(--canvas-soft); }
.contact-section-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}
.contact-section .section-title { margin-bottom: 8px; }
.contact-section .section-lead { margin-bottom: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}
.form-group input,
.form-group textarea {
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}
.form-group .field-error {
    font-size: 13px;
    color: var(--error);
    display: none;
}
.form-submit-wrap { display: flex; flex-direction: column; gap: 12px; }
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline-strong);
    cursor: pointer;
    transition: border-color 0.15s;
    font-family: inherit;
}
.btn-secondary:hover { border-color: var(--ink); }
.form-status {
    display: none;
    font-size: 14px;
    color: var(--success);
    padding: 12px 16px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
}

/* COOKIE BANNER */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 680px;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-lg);
    z-index: 9999;
    padding: 20px 24px;
}
.cookie-banner.visible { display: block; }
.cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { font-size: 14px; color: var(--body); flex: 1; min-width: 200px; }
.cookie-inner p a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.5; }
.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 14px; color: var(--body); }
.footer-col ul a:hover { color: var(--primary); }
.footer-col address p { font-size: 14px; color: var(--body); margin-bottom: 4px; }
.footer-col address a { color: var(--body); font-size: 14px; }
.footer-col address a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-disclaimer { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 700px; }
.footer-copy { font-size: 13px; color: var(--muted-soft); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 56px; letter-spacing: -1.4px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-col.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 24px; gap: 4px; }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-inner { position: relative; }
    .nav-dropdown:hover .nav-submenu { display: none; }
    .nav-submenu { display: block; position: static; border: none; background: transparent; padding: 0 0 0 16px; }
    .hero h1 { font-size: 40px; letter-spacing: -1px; }
    .section-title { font-size: 28px; }
    .article-hero h1 { font-size: 36px; letter-spacing: -0.7px; }
    .page-hero h1 { font-size: 36px; }
    .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
    .hero { padding: 48px 0; }
    .section { padding: 48px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .cookie-banner { bottom: 16px; width: calc(100% - 32px); }
    .cookie-inner { flex-direction: column; gap: 16px; }
    .cookie-actions { width: 100%; justify-content: flex-end; }
}
