:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --success: #1f8a65;
  --error: #cf2d56;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --section: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */

.display-mega {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
}
.display-lg {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--ink);
}
.display-md {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
}
.display-sm {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.11px;
  color: var(--ink);
}
.title-md {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.title-sm {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
}
.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
}
.caption {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.caption-uppercase {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.88px;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.ink { color: var(--ink); }

/* ===== 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;
  height: 100%;
  gap: 0;
}
.nav-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
  flex-shrink: 0;
  margin-right: auto;
}
.nav-brand span {
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--body);
  transition: color 0.15s;
}
.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;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 24px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }

/* ===== BUTTONS ===== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-download {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 20px;
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-download:hover { opacity: 0.88; color: var(--canvas); }

/* ===== HERO BAND ===== */

.hero-band {
  padding: var(--section) 0;
  background: var(--canvas);
}
.hero-band .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;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.hero-band h1 {
  font-size: 72px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -2.16px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 24px;
}
.hero-band .hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-image {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ===== SECTIONS ===== */

.section {
  padding: var(--section) 0;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.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: 560px;
}
.section-header {
  margin-bottom: 48px;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ===== FEATURE CARDS ===== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.feature-card .card-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--hairline-soft);
}
.feature-card .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.feature-card .card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.feature-card h2, .feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  flex: 1;
  margin-bottom: 20px;
}
.feature-card .card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: border-color 0.15s;
}
.feature-card .card-link:hover { border-color: var(--ink); }
.feature-card .card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

/* ===== ARTICLE LAYOUT ===== */

.article-header {
  padding: var(--section) 0 40px;
  background: var(--canvas);
}
.article-header .article-label {
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.article-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  max-width: 800px;
  margin-bottom: 20px;
}
.article-header .article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 56px;
}
.article-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.article-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding-bottom: var(--section);
}
.article-content h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin: 40px 0 16px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 8px;
}
.article-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
}
.article-content a:hover { border-color: var(--ink); }
.article-content .info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
}
.article-content .info-box h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.article-content .info-box p { margin-bottom: 0; }
.article-content .info-box ul { margin-bottom: 0; }
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-box h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { color: var(--ink); }
.sidebar-box a:hover { border-bottom: 1px solid var(--hairline-strong); }

/* ===== PAGE CONTENT ===== */

.page-header {
  padding: var(--section) 0 48px;
}
.page-header h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-header p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  max-width: 560px;
}
.page-content {
  max-width: 720px;
  padding-bottom: var(--section);
}
.page-content h2 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin: 36px 0 14px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 24px 0 10px;
}
.page-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 18px;
}
.page-content ul {
  margin: 0 0 18px 24px;
  list-style: disc;
}
.page-content li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 6px;
}

/* ===== CONTACT FORM ===== */

.contact-section {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
}
.contact-section h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.325px;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-section .form-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-card);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}
.form-group input.error,
.form-group textarea.error {
  border-color: var(--error);
}
.form-error {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-status {
  font-size: 14px;
  color: var(--success);
  display: none;
}
.form-status.show { display: block; }
.form-loading {
  font-size: 14px;
  color: var(--muted);
  display: none;
}
.form-loading.show { display: block; }

/* ===== 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 .brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-brand .brand-name span { color: var(--primary); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  max-width: 240px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--body);
  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-bottom p {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom-links 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(--radius-lg);
  padding: 20px 24px;
  max-width: 640px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.08);
}
.cookie-banner.hidden { display: none; }
.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.cookie-text a {
  color: var(--canvas);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-reject {
  background: transparent;
  color: var(--canvas);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  white-space: nowrap;
}

/* ===== MISC ===== */

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--muted-soft); }

.tag-pill {
  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;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.related-articles {
  border-top: 1px solid var(--hairline);
  padding-top: 48px;
  margin-top: 48px;
}
.related-articles h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.11px;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .hero-band h1 { font-size: 56px; letter-spacing: -1.4px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .article-body { grid-template-columns: 1fr; }
  .article-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .hero-band h1 { font-size: 40px; letter-spacing: -1px; }
  .hero-image img { height: 260px; }
  .article-header h1 { font-size: 32px; letter-spacing: -0.5px; }
  .page-header h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-section { padding: 24px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; }
  .article-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-band h1 { font-size: 32px; letter-spacing: -0.5px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .display-mega { font-size: 36px; }
}
