@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 {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--canvas);
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TOP NAV ── */
.top-nav {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--primary); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: all 0.2s;
}

/* ── HERO BAND ── */
.hero-band {
  background: var(--canvas);
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-band h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 20px;
}

.hero-band .hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── SECTION HEADINGS ── */
.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-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 640px;
}

/* ── BANDS ── */
.band {
  padding: 80px 0;
}

.band--alt {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  color: var(--ink);
}

.feature-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-bottom: 16px;
}

.feature-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-card__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 16px;
}

.feature-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.feature-card__link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── ARTICLE PAGE ── */
.article-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.article-hero__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-hero__title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}

.article-hero__meta {
  font-size: 13px;
  color: var(--muted);
}

.article-hero__meta span { margin-right: 16px; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

.article-body { min-width: 0; }

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 18px;
}

.article-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--body);
}

.article-body ul li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.article-body a {
  color: var(--primary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.article-body a:hover { border-color: var(--primary); }

.article-img {
  width: 100%;
  border-radius: var(--rounded-lg);
  margin: 28px 0;
  border: 1px solid var(--hairline);
}

.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: -20px;
  margin-bottom: 28px;
}

.article-sidebar { position: sticky; top: 84px; }

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-card a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.sidebar-card a:last-child { border-bottom: none; }

.sidebar-card a:hover { color: var(--primary); }

/* ── BADGE ── */
.badge {
  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: var(--rounded-pill);
  padding: 4px 10px;
}

/* ── FORM ── */
.contact-band { padding: 80px 0; }

.contact-form-wrap {
  max-width: 600px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 40px;
}

.form-title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  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);
  outline: none;
  transition: border-color 0.15s;
}

.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: 12px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--semantic-success);
  display: none;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.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;
  line-height: 1.5;
  color: var(--canvas);
  flex: 1;
}

.cookie-text a { color: var(--primary); }

.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: color 0.15s;
}

.btn-cookie-reject:hover { color: var(--canvas); }

/* ── 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-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-brand-name span { color: var(--primary); }

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  max-width: 240px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--body);
  margin-bottom: 8px;
  transition: color 0.15s;
}

.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;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-legal a:hover { color: var(--ink); }

/* ── PAGE CONTENT (about/privacy/terms) ── */
.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
}

.page-content {
  padding: 48px 0 80px;
  max-width: 760px;
}

.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  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;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 16px;
}

.page-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--body);
}

.page-content ul li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.page-content a {
  color: var(--primary);
}

.updated-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 40px 0;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-band h1 { font-size: 56px; letter-spacing: -1.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
  }
  .hero-band h1 { font-size: 36px; letter-spacing: -0.8px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-hero__title { font-size: 32px; }
}

@media (max-width: 640px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .hero-band { padding: 48px 0; }
  .band { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .section-title { font-size: 28px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}
