@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;
  --semantic-success: #1f8a65;
  --semantic-error: #cf2d56;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: 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: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TOP 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: 64px;
}
.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.nav-brand span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
  line-height: 1.4;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
  flex-direction: column;
  gap: 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }

/* HERO BAND */
.hero-band {
  padding: 80px 0 80px;
  background: var(--canvas);
}
.hero-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: 9999px;
  padding: 4px 10px;
  margin-bottom: 24px;
}
.hero-h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-card);
}
.hero-image-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* SECTION GENERIC */
.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: 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;
  color: var(--body);
  line-height: 1.5;
  max-width: 560px;
}
.section-head {
  margin-bottom: 48px;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* FEATURE CARD */
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}
.feature-card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}
.feature-card-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* ARTICLE CARD */
.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: 24px;
}
.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: 9999px;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 12px;
}
.article-card-title {
  font-size: 18px;
  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.5;
  margin-bottom: 16px;
}
.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}
.article-read-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.article-read-link:hover { color: var(--primary-active); }

/* ARTICLE PAGE */
.article-hero {
  padding: 48px 0 0;
}
.article-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  margin-top: 32px;
}
.article-content-wrap {
  padding: 48px 0 80px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 36px 0 16px;
  line-height: 1.25;
}
.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.7;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 8px;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--primary-active); }
.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  background: var(--canvas-soft);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 16px;
  color: var(--ink);
  font-style: italic;
  line-height: 1.6;
}
.article-sidebar {
  position: sticky;
  top: 80px;
}
.sidebar-widget {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sidebar-links a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.15s;
  line-height: 1.4;
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--ink); }
.article-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-breadcrumb a { color: var(--muted); }
.article-breadcrumb a:hover { color: var(--ink); }
.article-breadcrumb span { margin: 0 6px; }
.article-title {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-meta-line {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-strong);
  border-radius: 9999px;
  padding: 3px 8px;
}

/* INFO BOX */
.info-box {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.info-box p {
  font-size: 14px;
  color: var(--body);
  margin-bottom: 0;
}

/* TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.data-table th {
  text-align: left;
  padding: 10px 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline-strong);
}
.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--body);
}
.data-table tr:last-child td { border-bottom: none; }

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* CONTACT FORM */
.contact-section { padding: 80px 0; }
.form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.form-row textarea { height: 120px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus { border-color: var(--ink); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--muted-soft); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  height: 40px;
  cursor: pointer;
  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: #e8f5ef;
  border: 1px solid #1f8a65;
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--semantic-success);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
}
.form-success.visible { display: block; }
.form-error-msg {
  font-size: 12px;
  color: var(--semantic-error);
  margin-top: 4px;
  display: none;
}
.form-error-msg.visible { display: block; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 20px 24px;
  z-index: 999;
  display: none;
  border-top: 1px solid #3a3930;
}
#cookie-banner.visible { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text {
  flex: 1;
  font-size: 14px;
  color: #d0cfc8;
  line-height: 1.5;
}
.cookie-text a { color: var(--canvas); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn-cookie-reject {
  background: transparent;
  color: #d0cfc8;
  border: 1px solid #5a5852;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject:hover { border-color: #807d72; }

/* PAGE CONTENT (privacy, terms, about) */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-content {
  padding: 64px 0 80px;
}
.page-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 64px;
}
.prose h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.25;
}
.prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}
.prose p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 8px;
}
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.page-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-updated {
  font-size: 13px;
  color: var(--muted);
}
.toc-widget {
  position: sticky;
  top: 80px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}
.toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.toc-list a {
  display: block;
  font-size: 13px;
  color: var(--body);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.15s;
  line-height: 1.4;
}
.toc-list a:last-child { border-bottom: none; }
.toc-list a:hover { color: var(--ink); }

/* ABOUT */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.value-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}
.value-card-num {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--primary);
  margin-bottom: 8px;
}
.value-card-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.value-card-text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

/* 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: 32px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--primary); }
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 260px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--body);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col 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-copy {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: var(--ink); }

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

/* HIGHLIGHT BAND */
.highlight-band {
  background: var(--ink);
  color: var(--canvas);
  padding: 80px 0;
  text-align: center;
}
.highlight-band .section-title {
  color: var(--canvas);
  margin-bottom: 12px;
}
.highlight-band .section-sub {
  color: #a09c92;
  margin: 0 auto 32px;
  text-align: center;
}
.highlight-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.highlight-item {
  text-align: center;
}
.highlight-item-num {
  font-size: 36px;
  font-weight: 400;
  color: var(--canvas);
  letter-spacing: -0.72px;
}
.highlight-item-label {
  font-size: 13px;
  color: #807d72;
  margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-h1 { font-size: 42px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .page-layout { grid-template-columns: 1fr; }
  .toc-widget { position: static; }
}
@media (max-width: 768px) {
  .hero-band .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-image-wrap { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .page-title { font-size: 32px; }
  .article-title { font-size: 28px; }
  .form-wrap { padding: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .highlight-list { gap: 24px; }
}
