@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;
  --rounded-pill: 9999px;
}

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);
  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 */
.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-wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-wordmark 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);
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.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;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* HERO */
.hero-band {
  padding: 80px 0;
  background: var(--canvas);
  text-align: center;
}
.hero-band .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: var(--rounded-pill);
  padding: 4px 10px;
  margin-bottom: 24px;
}
.hero-band h1 {
  font-size: 72px;
  font-weight: 400;
  letter-spacing: -2.16px;
  line-height: 1.1;
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero-band .hero-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-image-wrap {
  margin-top: 64px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* SECTION */
section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-head {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--body);
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 48px;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}
.feature-card .card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.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.5;
}

/* ARTICLE CARDS */
.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 {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body { padding: 24px; }
.article-card-body .article-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.article-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}
.article-card-body p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-card-body a {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.article-card-body a:hover { color: var(--primary-active); }

/* BAND ALTERNATING */
.band-alt { background: var(--surface-card); }

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--surface-card);
  padding: 32px 24px;
  text-align: center;
}
.stat-item .stat-value {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat-item .stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* CONTENT PAGE */
.page-hero {
  padding: 64px 0 48px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.page-hero p {
  font-size: 16px;
  color: var(--body);
  max-width: 640px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-soft); }

/* ARTICLE LAYOUT */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  padding: 64px 0;
}
.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin: 32px 0 12px;
  line-height: 1.3;
}
.article-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
}
.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 8px;
}
.article-content img {
  border-radius: var(--rounded-lg);
  margin: 32px 0;
  width: 100%;
}
.article-content .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-content .info-box p { margin-bottom: 0; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}
.article-content th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--hairline);
}
.article-content td {
  padding: 12px 16px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}
.article-content tr:last-child td { border-bottom: none; }
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.article-meta time { color: var(--muted); }

.article-sidebar { position: sticky; top: 80px; height: fit-content; }
.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: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
}
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { padding: 6px 0; border-bottom: 1px solid var(--hairline-soft); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { font-size: 14px; color: var(--body); }
.sidebar-card ul li a:hover { color: var(--ink); }

/* CONTACT FORM */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}
.contact-info p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 24px;
}
.contact-info .contact-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--body);
}
.contact-form-card {
  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: 8px;
}
.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::placeholder,
.form-group textarea::placeholder { color: var(--muted-soft); }
.form-message {
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
  display: none;
}
.form-message.success {
  background: #d1f0e7;
  color: var(--success);
  border: 1px solid #b0e0d0;
  display: block;
}
.form-message.loading {
  background: var(--surface-strong);
  color: var(--muted);
  border: 1px solid var(--hairline);
  display: block;
}

/* FOOTER */
.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: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-brand .footer-logo span { color: var(--primary); }
.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--body);
}
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  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: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  max-width: 640px;
  width: calc(100% - 48px);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  box-shadow: none;
}
.cookie-banner p {
  font-size: 14px;
  color: var(--canvas);
  line-height: 1.4;
}
.cookie-banner a { color: var(--primary); }
.cookie-banner .cookie-actions { display: flex; gap: 8px; 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;
  white-space: nowrap;
}
.btn-cookie-reject {
  background: transparent;
  color: var(--canvas);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  white-space: nowrap;
}

/* PROSE (legal pages) */
.prose-section { padding: 64px 0 80px; }
.prose-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.prose-content h2:first-child { margin-top: 0; }
.prose-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}
.prose-content p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 760px;
}
.prose-content ul { margin: 0 0 16px 24px; }
.prose-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--rounded-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

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

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.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 24px;
    gap: 16px;
  }
  .hamburger { display: flex; }
  .nav-cta .btn-secondary { display: none; }
  .hero-band h1 { font-size: 32px; letter-spacing: -0.5px; }
  .hero-image-wrap img { height: 220px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { font-size: 26px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  section { padding: 48px 0; }
  .hero-band { padding: 48px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
