@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 {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { 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 {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--rounded-pill);
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px 24px;
  z-index: 99;
}

.mobile-menu.open { display: block; }

.mobile-menu .nav-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 15px;
}

/* BUTTONS */
.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;
  line-height: 1;
}

.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;
  line-height: 1;
}

.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* HERO BAND */
.hero-band {
  padding: 80px 0 64px;
  background: var(--canvas);
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-band {
  margin-top: 64px;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  max-height: 480px;
}

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

/* SECTION TITLES */
.section {
  padding: 80px 0;
}

.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-sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 48px;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  gap: 16px;
}

.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-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;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.feature-card-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  flex: 1;
}

/* ARTICLE CARD */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  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 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  flex: 1;
}

.article-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 8px;
  display: inline-block;
}

.article-card-link:hover { color: var(--primary-active); }

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* SECTION BAND */
.band-soft { background: var(--canvas-soft); }
.band-card { background: var(--surface-card); }

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

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.article-h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 720px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta-sep { color: var(--hairline-strong); }

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

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

.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0 0;
}

/* ARTICLE CONTENT */
.article-layout {
  padding: 64px 0 80px;
}

.article-content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

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

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 32px 0 12px;
}

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

.article-body ul, .article-body ol {
  margin: 0 0 20px 0;
  padding-left: 20px;
  list-style: initial;
}

.article-body ul li, .article-body ol li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 8px;
}

.article-body ol { list-style: decimal; }

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

.article-body a:hover { color: var(--primary-active); }

.article-body .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-body .info-box p { margin-bottom: 0; font-size: 15px; }

.article-body figure {
  margin: 40px 0;
}

.article-body figure img {
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  width: 100%;
}

.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0 0;
  line-height: 1.4;
}

.article-body .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}

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

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

.article-body .data-table tr:last-child td { border-bottom: none; }

/* SIDEBAR */
.article-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.sidebar-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-toc { list-style: none !important; padding: 0 !important; }
.sidebar-toc li { list-style: none !important; }

.sidebar-toc a {
  font-size: 14px;
  color: var(--body);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.15s;
}

.sidebar-toc li:last-child a { border-bottom: none; }
.sidebar-toc a:hover { color: var(--ink); }

.sidebar-links a {
  font-size: 14px;
  color: var(--primary);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-links a:hover { color: var(--primary-active); }

/* CONTACT FORM */
.contact-form-section {
  padding: 80px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-input, .form-textarea {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--rounded-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}

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

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--muted-soft);
}

.form-textarea {
  height: 140px;
  resize: vertical;
}

.form-error {
  font-size: 13px;
  color: var(--error);
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--success);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink);
  display: none;
}

.form-success.visible { display: block; }

.form-loader {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.form-loader.visible { display: flex; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hairline-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  padding: 16px 24px;
  z-index: 200;
  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(--body);
  flex: 1;
  min-width: 240px;
}

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

.cookie-actions { display: flex; gap: 10px; flex-shrink: 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: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.footer-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  max-width: 260px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: var(--body);
  transition: color 0.15s;
}

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

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

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-link {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-bottom-link:hover { color: var(--body); }

/* ABOUT / STATIC PAGES */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

.page-h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}

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

.page-body {
  padding: 64px 0 80px;
  max-width: 720px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin: 40px 0 12px;
}

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

.page-body ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 16px;
}

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

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

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

/* DISCLAIMER */
.disclaimer-banner {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline-soft);
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-h1 { font-size: 56px; letter-spacing: -1.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-content-grid { grid-template-columns: 1fr 240px; gap: 40px; }
}

@media (max-width: 768px) {
  .hero-h1 { font-size: 36px; letter-spacing: -0.8px; }
  .section-title { font-size: 28px; }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions { display: none; }
  .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .article-content-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-h1 { font-size: 32px; }
  .hero-image-band img { height: 280px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-band { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-inner { flex-direction: column; }
}
