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

: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;
    --success: #1f8a65;
    --error: #cf2d56;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;
}

html { 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;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

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

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

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}
.nav-logo:hover { color: var(--primary); }
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface-strong); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    list-style: none;
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(38,37,30,0.08);
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--body);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.nav-dropdown-menu li a:hover { color: var(--ink); background: var(--canvas); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.2s;
}

/* HERO */
.hero {
    background: var(--canvas);
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--hairline-soft);
}
.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);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -2.16px;
    max-width: 800px;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
    margin-bottom: 48px;
}
.hero-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
}
.hero-img-wrap img { width: 100%; height: 480px; object-fit: cover; }
.hero-img-caption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--canvas-soft); }
.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;
    color: var(--ink);
    letter-spacing: -0.72px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-sub {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.5;
    margin-bottom: 48px;
}

/* CARDS */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.15s;
}
.feature-card:hover { border-color: var(--hairline-strong); }
.feature-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}
.feature-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}
.feature-card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}
.feature-card-link:hover { color: var(--primary-active); }

/* ARTICLE LAYOUT */
.article-hero {
    background: var(--canvas);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline-soft);
}
.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.article-meta .badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    background: var(--surface-strong);
    color: var(--ink);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}
.article-hero h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -1.2px;
    line-height: 1.1;
    max-width: 760px;
    margin-bottom: 16px;
}
.article-hero .lead {
    font-size: 18px;
    color: var(--body);
    max-width: 640px;
    line-height: 1.5;
}
.article-body {
    padding: 64px 0 80px;
}
.article-inner {
    max-width: 720px;
}
.article-inner h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.325px;
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.25;
}
.article-inner h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 12px;
}
.article-inner p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 20px;
}
.article-inner ul, .article-inner ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.article-inner li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 6px;
}
.article-inner a { color: var(--primary); }
.article-inner a:hover { color: var(--primary-active); }
.article-img-wrap {
    margin: 32px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}
.article-img-wrap img { width: 100%; max-height: 400px; object-fit: cover; }
.article-img-caption {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 16px;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline-soft);
}
.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 4px solid var(--ink);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 32px 0;
}
.info-box p { margin-bottom: 0; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
}
.data-table th {
    background: var(--canvas-soft);
    color: var(--ink);
    font-weight: 600;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 2px solid var(--hairline);
}
.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
    vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.article-refs {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
}
.article-refs h3 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 12px; }
.article-refs ol { padding-left: 20px; }
.article-refs li { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.article-refs a { color: var(--muted); text-decoration: underline; }

/* FORM */
.contact-section { padding: 80px 0; }
.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 560px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-control-custom {
    width: 100%;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
}
.form-control-custom:focus { border-color: var(--ink); }
.form-control-custom::placeholder { color: var(--muted-soft); }
textarea.form-control-custom { height: 120px; resize: vertical; }
.btn-primary-custom {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-custom:hover { background: var(--primary-active); }
.btn-primary-custom:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: none;
}
.form-message.success { background: #d4edda; color: var(--success); border: 1px solid #b7dfca; }
.form-message.error-msg { background: #fde8ec; color: var(--error); border: 1px solid #f5bec9; }
.form-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 0;
    margin-top: 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}
.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; color: var(--body); line-height: 1.5; }
.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--body); }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
    border-top: 1px solid var(--hairline-soft);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.footer-bottom a { color: var(--muted); text-decoration: underline; }
.footer-disclaimer { font-size: 12px; color: var(--muted-soft); }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 16px 24px;
    z-index: 9999;
    display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner p { font-size: 14px; color: var(--canvas); margin: 0; }
.cookie-banner a { color: var(--canvas); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(247,247,244,0.4);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.btn-cookie-reject:hover { border-color: var(--canvas); }

/* PAGE HEADING */
.page-hero {
    background: var(--canvas);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline-soft);
}
.page-hero h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 12px;
}
.page-hero p {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
}
.page-content {
    padding: 64px 0 80px;
}
.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.325px;
    margin-top: 40px;
    margin-bottom: 12px;
    line-height: 1.25;
}
.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 28px;
    margin-bottom: 10px;
}
.page-content p, .page-content li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 16px;
}
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content a { color: var(--primary); }
.updated-note {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
}

/* SPINNER */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 10px 24px; border-radius: 0; }
    .nav-links a:hover { background: var(--surface-strong); }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 24px;
        background: transparent;
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-toggle::after { content: ' ▾'; font-size: 11px; }
    .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-form { padding: 24px; }
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .footer-container { grid-template-columns: 1fr; }
    .hero h1 { letter-spacing: -1px; }
    .section-title { font-size: 28px; }
}
