@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;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  font-size: 16px;
  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;
}

/* 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-wordmark {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-wordmark span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  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;
  padding: 8px;
  color: var(--ink);
}
.nav-hamburger svg { width: 22px; height: 22px; }
.nav-mobile { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; align-items: center; }
  .nav-mobile {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--body);
    border-bottom: 1px solid var(--hairline-soft);
  }
  .nav-mobile a:last-child { border-bottom: none; }
}

/* HERO */
.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}
.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: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  max-width: 600px;
  margin-bottom: 48px;
}
.hero-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 640px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 16px; }
}

/* SECTION */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.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-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 680px;
}

/* ARTICLE CARDS */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-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-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.article-card-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.1px;
  color: var(--ink);
  margin-bottom: 12px;
}
.article-card-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 20px;
}
.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.article-card-link:hover { color: var(--primary-active); }

@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.info-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.info-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.info-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

@media (max-width: 1024px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* TABLE */
.data-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table th {
  background: var(--canvas-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.data-table td {
  padding: 12px 16px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--surface-strong);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--ink);
}

/* ARTICLE PAGE */
.article-header { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }
.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-header .article-meta span {
  font-size: 13px;
  color: var(--muted);
}
.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 20px;
}
.article-header .article-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 680px;
}

@media (max-width: 640px) {
  .article-header h1 { font-size: 28px; }
  .article-header { padding: 40px 0 32px; }
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  margin: 48px 0;
}

.article-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding: 48px 0 80px;
  align-items: start;
}

@media (max-width: 1024px) {
  .article-content { grid-template-columns: 1fr; gap: 48px; }
}

.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 h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  color: var(--body);
}
.article-body li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 8px;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--primary); }
.article-body a:hover { color: var(--primary-active); }

.article-body .callout {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}
.article-body .callout p { margin-bottom: 0; font-size: 15px; }

.article-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.sidebar-card ul { list-style: none; }
.sidebar-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { color: var(--body); }
.sidebar-card ul li a:hover { color: var(--ink); }

/* FORM */
.contact-form-wrap {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s;
  outline: none;
  height: 44px;
}
.form-row textarea { height: 120px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--ink); }
.form-row input.error, .form-row textarea.error { border-color: var(--error); }
.form-submit {
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  height: 44px;
  transition: opacity 0.15s;
}
.form-submit:hover { opacity: 0.85; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
}
.form-msg.success { background: #e8f6f0; color: var(--success); border: 1px solid #b8dfd0; }

/* 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 p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  margin-top: 12px;
  max-width: 260px;
}
.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: 13px;
  color: var(--muted);
}
.footer-bottom a {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--body); }
.disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-soft);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* BREADCRUMB */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--body); }
.breadcrumb span { margin: 0 8px; }

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}
.page-header h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-header p {
  font-size: 18px;
  color: var(--body);
  max-width: 600px;
}

.page-content {
  padding: 64px 0 80px;
  max-width: 780px;
}
.page-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 48px 0 16px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.page-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 20px;
}
.page-content ul, .page-content ol {
  margin: 0 0 20px 24px;
  color: var(--body);
}
.page-content li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 8px;
}
.page-content strong { color: var(--ink); }
.page-content a { color: var(--primary); }

/* 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;
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-inner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-soft);
  max-width: 700px;
}
.cookie-inner p a { color: var(--canvas); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  height: 40px;
}
.cookie-btn-accept { background: var(--primary); color: var(--on-primary); }
.cookie-btn-accept:hover { background: var(--primary-active); }
.cookie-btn-reject { background: transparent; color: var(--canvas); border: 1px solid #4a4840; }
.cookie-btn-reject:hover { border-color: var(--muted); }

/* UPDATED DATE */
.updated-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* ABOUT TEAM GRID */
.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.about-values .info-card { padding: 24px; }
@media (max-width: 640px) {
  .about-values { grid-template-columns: 1fr; }
}

/* UTILITY */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }
