@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: #ede9e3;
  --hairline: #d3cec6;
  --hairline-soft: #e2ddd7;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --fin-orange: #ff5600;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}

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

img { max-width: 100%; height: auto; display: block; }

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

/* TOP NAV */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 56px;
  display: flex;
  align-items: center;
}
.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.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-right { display: flex; gap: 12px; align-items: center; }

.btn-primary {
  background: var(--ink);
  color: var(--inverse-ink);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; color: var(--inverse-ink); }

.btn-secondary {
  background: var(--surface-1);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.15s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--canvas); text-decoration: none; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 32px;
  gap: 12px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 15px;
  color: var(--ink-muted);
  padding: 6px 0;
}

/* HERO */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 16px;
  display: block;
}
.hero h1 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  max-width: 800px;
  margin: 0 auto 24px;
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.50;
  letter-spacing: -0.1px;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-image-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  padding: 24px;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
}
.hero-image-card img {
  width: 100%;
  border-radius: var(--rounded-lg);
  object-fit: cover;
  max-height: 420px;
}

/* SECTIONS */
.section { padding: 96px 0; }
.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 48px;
}

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

/* ARTICLES */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.article-card {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  padding: 24px;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}
.article-card img {
  width: 100%;
  border-radius: var(--rounded-md);
  object-fit: cover;
  height: 180px;
  margin-bottom: 16px;
}
.article-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
}
.article-card .read-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ARTICLE PAGE */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0;
}
.article-content h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 24px;
}
.article-content h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 28px 0 12px;
}
.article-content p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 16px;
}
.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
  font-size: 16px;
  line-height: 1.6;
}
.article-content li { margin-bottom: 6px; }
.article-meta {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.article-hero-img {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  padding: 16px;
  border: 1px solid var(--hairline);
  margin-bottom: 40px;
}
.article-hero-img img {
  width: 100%;
  border-radius: var(--rounded-lg);
  object-fit: cover;
  max-height: 380px;
}

/* 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 summary {
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row p { margin-top: 16px; font-size: 15px; color: var(--ink-muted); line-height: 1.6; }

/* CONTACT FORM */
.contact-section { padding: 80px 0; }
.form-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  padding: 48px;
  border: 1px solid var(--hairline);
  max-width: 640px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  min-height: 44px;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-muted);
  display: none;
}
.form-status.visible { display: block; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
  border-radius: var(--rounded-xl);
  padding: 20px 28px;
  max-width: 560px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
#cookie-banner p a { color: #aaa; text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btns button {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
}
.btn-accept { background: var(--surface-1); color: var(--ink); }
.btn-reject { background: transparent; color: #aaa; border: 1px solid #555 !important; }

/* CTA BANNER */
.cta-banner {
  background: var(--surface-1);
  border-radius: var(--rounded-xxl);
  padding: 48px;
  border: 1px solid var(--hairline);
  text-align: center;
  margin: 0 0 96px;
}
.cta-banner h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.cta-banner p { font-size: 16px; color: var(--ink-muted); margin-bottom: 28px; }

/* FOOTER */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 32px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--ink-subtle);
  line-height: 1.6;
  margin-top: 12px;
  max-width: 300px;
}
.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: 8px; }
.footer-col ul li a {
  font-size: 14px;
  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;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-subtle);
}
.footer-bottom a { color: var(--ink-subtle); }
.footer-bottom a:hover { color: var(--ink); text-decoration: none; }

/* PAGE HEADER */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 48px;
}
.page-header h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  max-width: 700px;
}
.page-header p {
  font-size: 18px;
  color: var(--ink-muted);
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.5;
}

/* PROSE */
.prose h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 40px 0 16px;
}
.prose h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 28px 0 12px;
}
.prose p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--ink);
}
.prose ul, .prose ol {
  margin: 0 0 16px 24px;
  line-height: 1.6;
  font-size: 16px;
}
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; }

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb span { margin: 0 6px; }

/* TAG */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--rounded-xs);
  background: var(--surface-2);
  color: var(--ink-muted);
  margin-bottom: 16px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero h1 { font-size: 36px; letter-spacing: -0.6px; }
  .section-title { font-size: 28px; letter-spacing: -0.4px; }
  .card-grid { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .cta-banner { padding: 32px 24px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .article-content h1 { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .section-title { font-size: 24px; }
}
