@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::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;
    --on-primary: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --success: #1f8a65;
    --error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
}

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

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;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; transition: color 0.15s; }
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: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}

.nav-brand span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
}

.nav-links a:hover { color: var(--ink); }

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-mobile {
    display: none;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
}

.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a { font-size: 15px; font-weight: 500; color: var(--body); display: block; padding: 8px 0; border-bottom: 1px solid var(--hairline-soft); }
.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero-band {
    padding: 80px 0;
    background: var(--canvas);
}

.hero-band .hero-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-band h1 {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--ink);
    max-width: 820px;
    margin-bottom: 24px;
}

.hero-band .hero-sub {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--body);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}

/* BADGE PILL */
.badge-pill {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 4px 10px;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 48px;
}

/* DIVIDER */
.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 0;
}

/* FEATURE CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* FEATURE CARD */
.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.feature-card .card-icon {
    font-size: 24px;
    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.6;
}

/* ARTICLE CARD */
.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.1px;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    flex: 1;
}

.article-card-link {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    display: inline-block;
}

/* PAGE HEADER */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 64px;
}

.page-header .breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.page-header .breadcrumb a { color: var(--muted); }
.page-header .breadcrumb a:hover { color: var(--ink); }

.page-header h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.84px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 720px;
}

.page-header .page-sub {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    max-width: 600px;
}

.page-header .page-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}

/* ARTICLE BODY */
.article-body {
    max-width: 740px;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 48px 0 16px;
    line-height: 1.25;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.3;
}

.article-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.7;
}

.article-body li { margin-bottom: 6px; }

.article-body a { color: var(--primary); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.15s; }
.article-body a:hover { text-decoration-color: var(--primary); }

.article-body figure {
    margin: 32px 0;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-body figure img {
    width: 100%;
    height: auto;
}

.article-body figcaption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--canvas-soft);
    line-height: 1.4;
}

.info-box {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 28px 0;
}

.info-box p { margin-bottom: 0; font-size: 15px; color: var(--body-strong); }
.info-box strong { color: var(--ink); }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
}

.data-table th {
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--hairline);
}

.data-table td {
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    color: var(--body);
    background: var(--surface-card);
}

.data-table tr:nth-child(even) td { background: var(--canvas-soft); }

/* LAYOUT: ARTICLE WITH SIDEBAR */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.sidebar-card ul { list-style: none; }
.sidebar-card ul li { border-bottom: 1px solid var(--hairline-soft); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul a { display: block; padding: 8px 0; font-size: 14px; color: var(--body); }
.sidebar-card ul a:hover { color: var(--ink); }

/* FORM */
.contact-section { padding: 80px 0; }

.form-wrap {
    max-width: 560px;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
}

.form-group textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
}

.field-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    height: 40px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
    margin-top: 16px;
    font-size: 14px;
    color: var(--success);
    display: none;
}

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-brand-col .footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-brand-col .footer-brand span { color: var(--primary); }

.footer-brand-col p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    max-width: 220px;
}

.footer-col h5 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom a {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 640px;
    color: var(--canvas);
    opacity: 0.85;
}

#cookie-banner p a { color: var(--canvas); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
}

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(247,247,244,0.3);
    border-radius: var(--rounded-md);
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
}

/* STATIC PAGES */
.static-page { padding: 64px 0 80px; }

.static-page h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.84px;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.15;
}

.static-page .page-date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 48px;
}

.static-page h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin: 40px 0 12px;
}

.static-page p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 740px;
}

.static-page ul {
    margin: 0 0 20px 24px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.7;
    max-width: 740px;
}

.static-page li { margin-bottom: 6px; }
.static-page a { color: var(--primary); }

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 64px;
}

.about-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.about-img img { width: 100%; height: 360px; object-fit: cover; }

.about-text h2 {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
}

.about-text p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .about-grid { grid-template-columns: 1fr; }
    .hero-band h1 { font-size: 48px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid-2 { grid-template-columns: 1fr; }
    .hero-band { padding: 48px 0; }
    .hero-band h1 { font-size: 36px; letter-spacing: -1px; }
    .hero-band .hero-sub { font-size: 16px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .form-wrap { padding: 24px 20px; }
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .page-header h1 { font-size: 32px; }
    .static-page h1 { font-size: 32px; }
    .about-img img { height: 240px; }
}

@media (max-width: 480px) {
    .hero-band h1 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}
