@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;
    --semantic-success: #1f8a65;
    --semantic-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-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 NAVIGATION */
.top-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.top-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.01em;
}

.nav-brand span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}

.nav-menu a:hover {
    color: var(--ink);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    z-index: 99;
}

.nav-mobile.open {
    display: block;
}

.nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-mobile ul a {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
}

/* HERO */
.hero {
    padding: 80px 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline-soft);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    background: var(--surface-strong);
    color: var(--ink);
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    aspect-ratio: 4/3;
    background: var(--surface-card);
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted-soft);
}

/* SECTION LABEL */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

/* ARTICLES GRID */
.articles-section {
    padding: 80px 0;
}

.section-head {
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-head p {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

.article-card:hover {
    border-color: var(--hairline-strong);
}

.article-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface-strong);
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-img img {
    transform: scale(1.02);
}

.article-card-body {
    padding: 20px 24px 24px;
}

.article-card-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 8px;
}

.article-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-card-date {
    font-size: 13px;
    color: var(--muted);
}

/* FEATURES BAND */
.features-band {
    padding: 80px 0;
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    padding: 24px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
}

.feature-card-icon {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.35;
}

.feature-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

/* CONTACT FORM SECTION */
.contact-section {
    padding: 80px 0;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-detail-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    width: 64px;
    flex-shrink: 0;
    padding-top: 2px;
}

.contact-detail-val {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

/* FORM */
.contact-form-wrap {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 32px;
}

.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(--canvas-soft);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-size: 16px;
    color: var(--ink);
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none;
    height: 44px;
}

.form-group textarea {
    height: auto;
    min-height: 110px;
    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(--semantic-error);
}

.form-error-msg {
    font-size: 13px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}

.form-error-msg.visible {
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    height: 40px;
    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-success {
    display: none;
    background: #f0faf6;
    border: 1px solid #b2dece;
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    color: var(--semantic-success);
    font-size: 15px;
    margin-top: 16px;
}

.form-success.visible {
    display: block;
}

/* ARTICLE PAGE */
.article-page {
    padding: 80px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.article-header {
    margin-bottom: 32px;
}

.article-header h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.article-header .article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.article-cover {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--hairline);
    aspect-ratio: 16/9;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.325px;
    line-height: 1.25;
    margin: 40px 0 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
    line-height: 1.3;
}

.article-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.65;
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 20px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.65;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--primary-active);
}

.article-info-box {
    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-info-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.article-table th {
    text-align: left;
    padding: 10px 16px;
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    border: 1px solid var(--hairline);
}

.article-table td {
    padding: 10px 16px;
    border: 1px solid var(--hairline);
    color: var(--body);
    vertical-align: top;
}

.article-table tr:nth-child(even) td {
    background: var(--canvas-soft);
}

/* SIDEBAR */
.article-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: 24px;
}

.sidebar-card h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-links li a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.sidebar-links li a:hover {
    color: var(--primary);
}

.sidebar-img {
    border-radius: var(--rounded-md);
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 4/3;
}

.sidebar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PAGE (ABOUT / PRIVACY / TERMS) */
.page-section {
    padding: 80px 0;
}

.page-header {
    max-width: 760px;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.72px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
}

.page-content {
    max-width: 760px;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.325px;
    margin: 40px 0 16px;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 24px 0 10px;
}

.page-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.65;
    margin-bottom: 16px;
}

.page-content ul {
    margin: 0 0 16px 20px;
    color: var(--body);
    font-size: 16px;
    line-height: 1.65;
}

.page-content li {
    margin-bottom: 6px;
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--muted-soft);
}

/* FOOTER */
.footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 48px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--primary);
}

.footer-desc {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h5 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    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-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom-links 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;
    border-top: 1px solid rgba(255,255,255,0.1);
    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-soft);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-text a {
    color: var(--canvas);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    height: 36px;
}

.btn-cookie-accept:hover {
    background: var(--primary-active);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas-soft);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--rounded-md);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    height: 36px;
}

.btn-cookie-reject:hover {
    border-color: rgba(255,255,255,0.6);
}

/* SPINNER */
.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.spinner.visible {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 40px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
    .hero { padding: 48px 0; }
    .nav-menu { display: none; }
    .nav-hamburger { display: flex; }
    .section-head h2 { font-size: 28px; }
    .articles-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .articles-section, .features-band, .contact-section, .page-section { padding: 48px 0; }
}

@media (max-width: 640px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .article-header h1 { font-size: 28px; }
    .page-header h1 { font-size: 28px; }
    .contact-form-wrap { padding: 24px 16px; }
}
