@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e2;
  --hairline: #d3cec6;
  --hairline-soft: #e8e3dc;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --fin-orange: #ff5600;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--rounded-xl); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* NAV */
.top-nav {
  background: var(--canvas);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
}
.top-nav .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--ink-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* HERO */
.hero {
  padding: 96px 0;
  background: var(--canvas);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-bottom: 16px; }
.hero h1 {
  font-size: 56px; font-weight: 500; line-height: 1.10;
  letter-spacing: -1.4px; color: var(--ink); margin-bottom: 24px;
}
.hero-lead { font-size: 18px; font-weight: 400; line-height: 1.50; letter-spacing: -0.1px; color: var(--ink-muted); margin-bottom: 32px; }
.hero-img { background: var(--surface-1); border-radius: var(--rounded-xl); border: 1px solid var(--hairline); overflow: hidden; }
.hero-img img { width: 100%; object-fit: cover; aspect-ratio: 16/10; border-radius: var(--rounded-xl); }

/* SECTIONS */
.section { padding: 96px 0; }
.section-eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-muted); margin-bottom: 12px; }
.section h2 { font-size: 40px; font-weight: 500; line-height: 1.15; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 16px; }
.section-lead { font-size: 18px; color: var(--ink-muted); line-height: 1.5; margin-bottom: 48px; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
}
.card h3 { font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.3px; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.card-img { margin-bottom: 20px; border-radius: var(--rounded-lg); overflow: hidden; }
.card-img img { width: 100%; object-fit: cover; aspect-ratio: 16/9; border-radius: var(--rounded-lg); }

/* ARTICLES GRID */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--ink); }
.article-card a { display: block; text-decoration: none; }
.article-card-img img { width: 100%; object-fit: cover; aspect-ratio: 16/9; border-radius: 0; }
.article-card-body { padding: 24px; }
.article-card-body h3 { font-size: 20px; font-weight: 500; line-height: 1.30; letter-spacing: -0.2px; margin-bottom: 8px; color: var(--ink); }
.article-card-body p { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.article-meta { font-size: 12px; color: var(--ink-tertiary); margin-top: 12px; }

/* INFO STRIP (dark) */
.info-strip {
  background: var(--inverse-canvas);
  padding: 64px 0;
}
.info-strip h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.8px; color: var(--inverse-ink); margin-bottom: 16px; }
.info-strip p { font-size: 18px; color: #888; line-height: 1.5; }

/* MOCKUP CARD */
.mockup-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: 24px;
  margin-top: 48px;
}
.mockup-card img { width: 100%; border-radius: var(--rounded-lg); }

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two-col-text h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 16px; }
.two-col-text p { font-size: 16px; color: var(--ink-muted); line-height: 1.5; margin-bottom: 16px; }
.two-col-img { background: var(--surface-1); border-radius: var(--rounded-xl); border: 1px solid var(--hairline); overflow: hidden; }
.two-col-img img { width: 100%; object-fit: cover; border-radius: var(--rounded-xl); }

/* FAQ */
.faq-list { margin-top: 32px; }
.faq-row {
  background: var(--canvas);
  border-radius: var(--rounded-md);
  padding: 24px;
  border-bottom: 1px solid var(--hairline-soft);
  cursor: pointer;
}
.faq-row:last-child { border-bottom: none; }
.faq-question { font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { font-size: 14px; color: var(--ink-muted); line-height: 1.5; margin-top: 12px; display: none; }
.faq-row.open .faq-answer { display: block; }
.faq-icon { font-size: 20px; color: var(--ink-muted); transition: transform 0.2s; }
.faq-row.open .faq-icon { transform: rotate(45deg); }

/* FORM */
.contact-section { background: var(--surface-2); border-radius: var(--rounded-xl); padding: 48px; margin-top: 48px; }
.contact-section h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; margin-bottom: 8px; }
.contact-section p { font-size: 16px; color: var(--ink-muted); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-group input, .form-group textarea {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); }
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-primary {
  background: var(--ink);
  color: var(--inverse-ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 40px;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.form-success {
  display: none;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 16px;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 640px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: 24px;
  z-index: 9999;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
#cookie-banner.hidden { display: none; }
.cookie-text { flex: 1; font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.cookie-text strong { color: var(--ink); }
.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.btn-cookie-accept {
  background: var(--ink); color: var(--inverse-ink);
  border: none; border-radius: var(--rounded-md); padding: 8px 16px;
  font-size: 14px; font-weight: 500; cursor: pointer; min-height: 36px;
}
.btn-cookie-reject {
  background: var(--surface-1); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--rounded-md); padding: 8px 16px;
  font-size: 14px; font-weight: 500; cursor: pointer; min-height: 36px;
}

/* FOOTER */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 32px 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto 48px; }
.footer-logo { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.footer-desc { font-size: 14px; color: var(--ink-subtle); line-height: 1.5; max-width: 240px; }
.footer-col h4 { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 12px; color: var(--ink-muted); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--hairline-soft); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-copyright { font-size: 12px; color: var(--ink-subtle); }

/* ARTICLE PAGE */
.article-header { padding: 64px 0 48px; }
.article-header h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.8px; line-height: 1.15; max-width: 800px; }
.article-meta-bar { font-size: 12px; color: var(--ink-tertiary); margin-top: 12px; }
.article-lead { font-size: 20px; color: var(--ink-muted); line-height: 1.4; letter-spacing: -0.2px; margin-top: 20px; max-width: 720px; }
.article-body { padding: 0 0 96px; }
.article-body .prose { max-width: 720px; }
.prose h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; margin: 48px 0 16px; }
.prose h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.3px; margin: 32px 0 12px; }
.prose p { font-size: 16px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 20px; }
.prose ul { padding-left: 20px; margin-bottom: 20px; }
.prose ul li { font-size: 16px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose .info-box {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin: 32px 0;
}
.prose .info-box h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.prose .info-box p { font-size: 14px; color: var(--ink-muted); margin: 0; }
.article-img-full { border-radius: var(--rounded-xl); overflow: hidden; margin: 32px 0; border: 1px solid var(--hairline); }
.article-img-full img { width: 100%; object-fit: cover; border-radius: var(--rounded-xl); }
.article-sidebar { padding-left: 48px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.sidebar-card { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--rounded-lg); padding: 24px; margin-bottom: 24px; }
.sidebar-card h4 { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { margin-bottom: 10px; }
.sidebar-card ul li a { font-size: 14px; color: var(--ink-muted); }
.sidebar-card ul li a:hover { color: var(--ink); }

/* PAGE HERO */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--hairline); }
.page-hero h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.8px; }
.page-hero p { font-size: 18px; color: var(--ink-muted); margin-top: 12px; max-width: 600px; }
.page-content { padding: 64px 0 96px; max-width: 780px; }
.page-content h2 { font-size: 22px; font-weight: 500; margin: 32px 0 12px; letter-spacing: -0.3px; }
.page-content p { font-size: 16px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 16px; }
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content ul li { font-size: 16px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 6px; }

/* BREADCRUMB */
.breadcrumb { font-size: 12px; color: var(--ink-tertiary); padding: 16px 0; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb span { margin: 0 6px; }

/* MOBILE */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-inner { gap: 40px; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .two-col { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { padding-left: 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 16px 32px; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 32px 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section h2 { font-size: 32px; }
  #cookie-banner { flex-direction: column; }
  .cookie-buttons { width: 100%; justify-content: flex-end; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0; }
}
