@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;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  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);
  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;
}
.nav-logo 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;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  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;
  flex-direction: column;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
  display: block;
}
.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero-band {
  padding: 80px 0;
  background: var(--canvas);
}
.hero-band h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 860px;
  margin-bottom: 24px;
}
.hero-band .hero-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
}
.hero-img-wrap {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--surface-card);
  margin-top: 48px;
}
.hero-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* BADGE */
.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;
  margin-bottom: 20px;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-card); }

.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-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* FEATURE CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ARTICLE CARDS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body { padding: 20px; }

.article-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card-date {
  font-size: 13px;
  color: var(--muted);
}

/* ARTICLE PAGE */
.article-header { padding: 60px 0 40px; }
.article-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 20px;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

.article-hero-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  margin-bottom: 48px;
}

.article-body { padding-bottom: 80px; }
.article-content {
  max-width: 760px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.325px;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li { margin-bottom: 6px; }

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(245,78,0,0.3);
}

.article-content a:hover {
  text-decoration-color: var(--primary);
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
}
.info-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-box p, .info-box ul { margin-bottom: 0; }

.article-img-caption {
  width: 100%;
  border-radius: 8px;
  margin: 28px 0 8px;
  border: 1px solid var(--hairline);
}
figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 24px;
}

.article-sidebar { padding-top: 0; }
.sidebar-widget {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { margin-bottom: 10px; }
.sidebar-widget ul li a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
}
.sidebar-widget ul li a:hover { color: var(--primary); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

/* FORM */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-intro h2 {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-intro p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
}

.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  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(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  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;
  min-height: 100px;
  resize: vertical;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  height: 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1.4;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
}
.form-status.success {
  display: block;
  background: #eaf7f2;
  color: var(--semantic-success);
  border: 1px solid #b2e0d0;
}
.form-status.error {
  display: block;
  background: #fdeaed;
  color: var(--semantic-error);
  border: 1px solid #f5b8c0;
}

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* 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: 40px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 260px; }
.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: block;
}
.footer-logo span { color: var(--primary); }
.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}
.footer-col h5 {
  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: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}
.footer-col ul li 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: 14px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 12px;
  padding: 20px 24px;
  z-index: 200;
  display: none;
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
.cookie-banner.show { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.cookie-banner p { font-size: 14px; line-height: 1.55; flex: 1; min-width: 200px; color: var(--canvas-soft); }
.cookie-banner a { color: var(--canvas); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.cookie-btn-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-btn-accept:hover { background: var(--primary-active); }
.cookie-btn-reject {
  background: transparent;
  color: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cookie-btn-reject:hover { border-color: rgba(255,255,255,0.6); }

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--hairline-strong); }

/* PAGE HEADER (about, privacy, terms) */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 48px;
}
.page-header h1 {
  font-size: 48px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 540px;
  line-height: 1.6;
}
.page-content {
  max-width: 760px;
  padding-bottom: 80px;
}
.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin: 36px 0 14px;
}
.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.7;
  margin-bottom: 18px;
}
.page-content ul, .page-content ol {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 18px;
}
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--primary); }
.last-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* DISCLAIMER */
.disclaimer-bar {
  background: var(--surface-strong);
  border-top: 1px solid var(--hairline);
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-band h1 { font-size: 56px; letter-spacing: -1.5px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-band h1 { font-size: 36px; letter-spacing: -0.9px; }
  .hero-band { padding: 48px 0; }
  .section { padding: 56px 0; }
  .hero-img-wrap img { height: 260px; }
  .cards-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .article-header h1 { font-size: 32px; letter-spacing: -0.5px; }
  .article-hero-img { height: 260px; }
  .section-title { font-size: 28px; }
  .page-header h1 { font-size: 32px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { bottom: 16px; left: 16px; right: 16px; }
}
