@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;
  --semantic-success: #1f8a65;
  --semantic-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: var(--canvas);
  color: var(--body);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
}

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-logo {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-logo span { color: var(--primary); }

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

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

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

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

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

.mobile-nav {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
}

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

.mobile-nav ul {
  list-style: none;
  padding: 0 24px;
}

.mobile-nav ul li { padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }

.mobile-nav ul li:last-child { border-bottom: none; }

.mobile-nav ul a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body-strong);
}

/* HERO */
.hero-band {
  background: var(--canvas);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hairline);
}

.hero-content { max-width: 720px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  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: 56px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-band p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
}

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

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

/* SECTIONS */
section { padding: 80px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  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: 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  transition: border-color 0.15s;
}

.feature-card:hover { border-color: var(--hairline-strong); }

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

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

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

/* 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;
  display: flex;
  flex-direction: column;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.article-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.article-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 14px;
  margin-top: auto;
}

.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

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

/* PRINCIPLES BAND */
.principles-band { background: var(--canvas); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.principle-item { display: flex; gap: 20px; align-items: flex-start; }

.principle-number {
  font-size: 36px;
  font-weight: 400;
  color: var(--hairline-strong);
  line-height: 1;
  min-width: 48px;
  letter-spacing: -1px;
}

.principle-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.principle-content p { font-size: 15px; color: var(--body); line-height: 1.5; }

/* IMAGE BAND */
.image-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.image-split img { border-radius: var(--rounded-lg); border: 1px solid var(--hairline); width: 100%; height: 340px; object-fit: cover; }

.image-split-text h2 { font-size: 36px; font-weight: 400; line-height: 1.2; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }

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

/* CONTACT FORM */
.contact-section { background: var(--canvas-soft); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; 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.6; margin-bottom: 24px; }

.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }

.contact-detail-icon { font-size: 18px; margin-top: 2px; }

.contact-detail-text { font-size: 14px; color: var(--body); line-height: 1.5; }

.contact-detail-text strong { color: var(--ink); display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }

.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: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.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-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea { height: 100px; 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); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 18px;
  height: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  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-message {
  padding: 12px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
  display: none;
}

.form-message.success { background: #e8f7f2; color: var(--semantic-success); border: 1px solid #b3e8d5; display: block; }

.form-message.error { background: #fce8ec; color: var(--semantic-error); border: 1px solid #f5b3c0; display: block; }

/* 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: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  max-width: 680px;
  width: calc(100% - 48px);
  box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}

#cookie-banner p { font-size: 14px; line-height: 1.5; flex: 1; color: var(--canvas); }

#cookie-banner p a { color: #f5c19c; text-decoration: underline; }

.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
  background: transparent;
  color: var(--muted-soft);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--rounded-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-cookie-reject:hover { color: var(--canvas); border-color: rgba(255,255,255,0.4); }

/* 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: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--body);
  line-height: 1.4;
  transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

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

/* PAGE HEADER */
.page-header {
  background: var(--canvas);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
}

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

.page-header p {
  font-size: 18px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.5;
}

.page-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* ARTICLE CONTENT */
.article-content { max-width: 760px; }

.article-content h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.2;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
  line-height: 1.3;
}

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

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-content li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 6px;
}

.article-content img {
  width: 100%;
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  margin: 28px 0;
}

.article-content figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: -20px;
  margin-bottom: 28px;
}

.article-sidebar { position: sticky; top: 84px; }

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.info-box h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

.info-box ul { list-style: none; }

.info-box ul li {
  font-size: 14px;
  color: var(--body);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  cursor: pointer;
  transition: color 0.12s;
}

.info-box ul li:last-child { border-bottom: none; }

.info-box ul li:hover { color: var(--ink); }

.info-box ul li a { color: inherit; }

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

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

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

/* PROSE PAGE */
.prose-content { max-width: 760px; }

.prose-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 14px;
  line-height: 1.25;
}

.prose-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.prose-content p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.prose-content ul,
.prose-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose-content li {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 4px;
}

.prose-content a { color: var(--primary); text-decoration: underline; }

/* ABOUT PAGE */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.about-stat {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  text-align: center;
}

.about-stat .stat-num {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.about-stat .stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* DISCLAIMER */
.disclaimer-box {
  background: var(--surface-strong);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 32px 0;
  border-left: 3px solid var(--hairline-strong);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .image-split { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .hero-band h1 { font-size: 36px; letter-spacing: -0.8px; }
  .section-title { font-size: 28px; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-header h1 { font-size: 32px; }
  #cookie-banner { flex-direction: column; bottom: 0; border-radius: var(--rounded-lg) var(--rounded-lg) 0 0; width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
  .image-split img { height: 240px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-band { padding: 48px 0 40px; }
  section { padding: 56px 0; }
  .hero-band h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid-3 { gap: 16px; }
}
