@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --ink: #26251e;
  --body: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --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;
  --section: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 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-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
  line-height: 1.4;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  font-family: inherit;
  transition: color 0.15s;
}

.nav-dropdown-toggle:hover { color: var(--ink); }

.nav-dropdown-toggle svg {
  width: 12px; height: 12px;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(38,37,30,0.08);
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--body);
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s;
}

.nav-dropdown-menu a:hover { background: var(--canvas); color: var(--ink); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-mobile-menu {
  display: none;
  background: var(--surface-card);
  border-top: 1px solid var(--hairline);
  padding: 16px 0;
}

.nav-mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile-menu a:last-child { border-bottom: none; }

/* HERO */
.hero {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  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(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.72px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTIONS */
.section { padding: var(--section) 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: 12px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 640px;
}

.section-head { margin-bottom: 48px; }

/* CARDS GRID */
.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;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--hairline-strong); }

.card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16/9;
  border: 1px solid var(--hairline-soft);
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.card-link:hover { color: var(--primary); }

.card-link svg { width: 14px; height: 14px; }

/* ARTICLE CARD (horizontal) */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  transition: border-color 0.15s;
}

.article-card:hover { border-color: var(--hairline-strong); }

.article-card-img {
  overflow: hidden;
}

.article-card-img img { width: 100%; height: 100%; object-fit: cover; }

.article-card-body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }

.article-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-card-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.11px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-card-desc {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ARTICLE PAGE */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--hairline);
  max-width: 760px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-lead {
  font-size: 18px;
  color: var(--body);
  line-height: 1.65;
}

.article-layout {
  padding: 48px 0 var(--section);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.article-body { min-width: 0; }

.article-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  line-height: 1.25;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 8px;
}

.article-body figure {
  margin: 32px 0;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}

.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--primary); }

.info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box p { margin-bottom: 0; color: var(--body); }

.article-sidebar { position: sticky; top: 84px; }

.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.sidebar-card ul { list-style: none; margin: 0; }
.sidebar-card li { margin-bottom: 8px; }

.sidebar-card a {
  font-size: 14px;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
  padding-bottom: 8px;
  display: block;
}

.sidebar-card a:hover { color: var(--ink); }
.sidebar-card li:last-child a { border-bottom: none; padding-bottom: 0; }

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  background: var(--surface-card);
  padding: 28px 24px;
}

.feature-item-icon {
  width: 36px;
  height: 36px;
  background: var(--surface-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-item-icon svg { width: 18px; height: 18px; color: var(--ink); }

.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

/* CONTACT FORM */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-input,
.form-textarea {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--ink);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted-soft); }

.form-textarea { min-height: 120px; resize: vertical; }

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}

.form-submit:hover { background: var(--primary); }

.form-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: none;
}

.form-msg.success {
  background: rgba(31,138,101,0.08);
  color: var(--success);
  border: 1px solid rgba(31,138,101,0.2);
  display: block;
}

.form-msg.error {
  background: rgba(207,45,86,0.08);
  color: var(--error);
  border: 1px solid rgba(207,45,86,0.2);
  display: block;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-active); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-secondary:hover { border-color: var(--ink); }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 48px;
  background: var(--canvas);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 280px; }

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.footer-logo span { color: var(--primary); }

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.88px;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--body);
  transition: color 0.12s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-updated {
  font-size: 13px;
  color: var(--muted-soft);
}

/* 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-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: rgba(247,247,244,0.85);
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}

.cookie-text a {
  color: var(--canvas);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  height: 36px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.cookie-accept:hover { background: var(--primary-active); }

.cookie-reject {
  background: transparent;
  color: var(--canvas);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(247,247,244,0.3);
  cursor: pointer;
  transition: border-color 0.15s;
}

.cookie-reject:hover { border-color: rgba(247,247,244,0.6); }

/* PAGE HEADER */
.page-header {
  padding: 60px 0;
  border-bottom: 1px solid var(--hairline);
}

.page-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--body);
  line-height: 1.6;
  max-width: 600px;
}

/* PROSE */
.prose {
  max-width: 720px;
  padding: var(--section) 0;
}

.prose h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin: 40px 0 14px;
  line-height: 1.25;
}

.prose h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
  line-height: 1.3;
}

.prose p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 18px;
}

.prose ul, .prose ol {
  margin: 0 0 18px 20px;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  font-size: 16px;
  color: var(--body);
  line-height: 1.65;
  margin-bottom: 6px;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--primary); }

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list a:hover { color: var(--ink); }

.breadcrumb-sep { color: var(--muted-soft); }

/* ABOUT CONTACT GRID */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.loading-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(247,247,244,0.4);
  border-top-color: var(--canvas);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { max-width: 560px; }
}

@media (max-width: 768px) {
  :root { --section: 56px; }
  .nav-links, .nav-dropdown { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu.open { display: block; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 32px; }
  .article-card { grid-template-columns: 1fr; }
  .article-card-img { height: 200px; }
  .article-layout { padding-top: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 28px; letter-spacing: -0.3px; }
  .section-title { font-size: 24px; }
  .page-title { font-size: 28px; }
}
