@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;
    --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;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

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

a:hover {
    color: var(--primary);
}

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

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

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

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

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    text-decoration: none;
}

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

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    text-decoration: none;
    transition: color 0.15s;
}

.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-color: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-mobile {
    display: none;
    background-color: 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: 16px;
}

.nav-mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
    text-decoration: none;
}

/* HERO */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline);
}

.hero-inner {
    max-width: 760px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--rounded-pill);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--body);
    line-height: 1.6;
    max-width: 560px;
}

/* SECTIONS */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline-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;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

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

/* 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;
}

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

.card-icon {
    width: 40px;
    height: 40px;
    background-color: var(--surface-strong);
    border-radius: var(--rounded-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

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

/* ARTICLE CARDS */
.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 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

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

.article-tag {
    display: inline-block;
    background-color: var(--surface-strong);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--rounded-xs);
    margin-bottom: 12px;
}

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

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

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

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-top: 16px;
}

.link-arrow::after {
    content: '→';
    transition: transform 0.15s;
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

/* IMAGE SECTION */
.img-feature {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.img-feature img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

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

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

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

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

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

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

.btn-primary:hover {
    background-color: var(--primary-active);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    display: none;
    background-color: #f0faf5;
    border: 1px solid #b7dece;
    border-radius: var(--rounded-md);
    padding: 16px;
    font-size: 14px;
    color: var(--success);
    margin-top: 16px;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 999;
    display: none;
}

.cookie-banner.visible {
    display: block;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 14px;
    color: var(--canvas);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--canvas);
    text-decoration: underline;
}

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

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

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

/* 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 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

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

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

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

.footer-col a {
    font-size: 14px;
    color: var(--body);
    text-decoration: none;
}

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

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

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

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

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

/* PAGE CONTENT */
.page-hero {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

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

.page-hero p {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
}

.updated-date {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

.prose {
    max-width: 720px;
}

.prose h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
    line-height: 1.25;
}

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

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

.prose ul, .prose ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.prose li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 6px;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose strong {
    color: var(--ink);
    font-weight: 600;
}

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

.info-box p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    margin: 0;
}

/* ARTICLE PAGE */
.article-header {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

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

.article-header p {
    font-size: 18px;
    color: var(--body);
    max-width: 640px;
    line-height: 1.6;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.article-meta-bar span {
    font-size: 13px;
    color: var(--muted);
}

.article-meta-bar .dot {
    width: 3px;
    height: 3px;
    background-color: var(--muted);
    border-radius: 50%;
    display: inline-block;
}

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

.article-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.article-image figcaption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--muted);
    background-color: var(--surface-card);
    border-top: 1px solid var(--hairline);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a, .breadcrumb span {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

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

.breadcrumb .sep {
    color: var(--muted-soft);
}

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

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

.spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

/* DISCLAIMER */
.disclaimer {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 48px 0 0;
}

/* BREADCRUMB SEPARATOR */
.breadcrumb .sep::before {
    content: '/';
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 48px 0;
    }
    .hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }
    .hero p {
        font-size: 16px;
    }
    .section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .card-grid-2 {
        grid-template-columns: 1fr;
    }
    .split-section {
        grid-template-columns: 1fr;
    }
    .split-section.reverse {
        direction: ltr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .article-header h1 {
        font-size: 30px;
    }
    .page-hero h1 {
        font-size: 30px;
    }
    .contact-form {
        padding: 24px;
    }
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
