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

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

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede8e1;
  --hairline: #d3cec6;
  --hairline-soft: #e5e0d8;
  --inverse-canvas: #000000;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --inverse-ink: #ffffff;
  --fin-orange: #ff5600;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 96px;
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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 var(--spacing-xl); }

/* NAV */
.top-nav {
  background: var(--canvas);
  height: 56px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  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-hamburger { display: none; background: none; border: none; cursor: pointer; padding: var(--spacing-xs); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* HERO */
.hero {
  padding: var(--spacing-section) 0;
  text-align: center;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-md);
}
.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 var(--spacing-lg);
}
.hero-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.1px;
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}
.hero-img-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.hero-img-card img { width: 100%; height: 420px; object-fit: cover; }

/* SECTIONS */
.section { padding: var(--spacing-section) 0; }
.section-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-sm);
}
.section-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: var(--spacing-lg);
}
.section-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}
.feature-card {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: var(--spacing-lg);
}
.feature-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: var(--spacing-sm);
}
.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.article-card {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card-img { width: 100%; height: 200px; object-fit: cover; }
.article-card-body { padding: var(--spacing-lg); flex: 1; }
.article-card-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: var(--spacing-xs);
}
.article-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: var(--spacing-sm);
}
.article-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-md);
}
.article-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  display: inline-block;
}
.article-card-link:hover { text-decoration: none; border-bottom-color: var(--ink); }

/* TWO COL */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.mockup-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.mockup-card img { width: 100%; height: 320px; object-fit: cover; }

/* TESTIMONIAL STRIP */
.testimonial-strip {
  background: var(--inverse-canvas);
  padding: var(--spacing-section) 0;
}
.testimonial-card {
  background: #1a1a1a;
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
  color: var(--inverse-ink);
}
.testimonial-card blockquote {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin-bottom: var(--spacing-lg);
  color: var(--inverse-ink);
}
.testimonial-meta { font-size: 14px; color: #9c9fa5; }

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

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

.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;
  display: inline-block;
  transition: border-color 0.15s;
  min-height: 40px;
}
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; }

/* FORM */
.contact-section { padding: var(--spacing-section) 0; }
.contact-form-wrap {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: var(--spacing-xxl);
  max-width: 600px;
  margin: var(--spacing-xl) auto 0;
}
.form-group { margin-bottom: var(--spacing-lg); }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}
.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-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--rounded-md);
  padding: var(--spacing-md);
  color: #2e7d32;
  font-size: 15px;
  margin-top: var(--spacing-md);
}

/* ARTICLE PAGE */
.article-page { padding: var(--spacing-section) 0; }
.article-header { margin-bottom: var(--spacing-xxl); }
.article-header h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
}
.article-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: var(--spacing-lg);
}
.article-hero-img {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-bottom: var(--spacing-xxl);
}
.article-hero-img img { width: 100%; height: 400px; object-fit: cover; }
.article-content h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: var(--spacing-xxl) 0 var(--spacing-md);
}
.article-content h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: var(--spacing-xl) 0 var(--spacing-sm);
}
.article-content p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: var(--spacing-md);
}
.article-content ul, .article-content ol {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}
.article-content li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: var(--spacing-xs);
  color: var(--ink);
}
.article-content a { color: var(--ink); text-decoration: underline; }
.article-infobox {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}
.article-infobox h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}
.article-infobox p, .article-infobox li {
  font-size: 14px;
  color: var(--ink-muted);
}

/* STATIC PAGES */
.static-page { padding: var(--spacing-section) 0; max-width: 800px; margin: 0 auto; }
.static-page h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: var(--spacing-lg);
}
.static-page h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: var(--spacing-xl) 0 var(--spacing-sm);
}
.static-page p, .static-page li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: var(--spacing-sm);
}
.static-page ul, .static-page ol { padding-left: var(--spacing-lg); margin-bottom: var(--spacing-md); }

/* FOOTER */
footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px var(--spacing-xl);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xxl);
}
.footer-brand { font-size: 16px; font-weight: 500; margin-bottom: var(--spacing-md); }
.footer-desc { font-size: 12px; color: var(--ink-subtle); line-height: 1.5; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--spacing-xs); }
.footer-col a { font-size: 12px; color: var(--ink-muted); }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  max-width: 1280px;
  margin: var(--spacing-xl) auto 0;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--ink-subtle); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 560px;
  width: calc(100% - var(--spacing-xl) * 2);
  z-index: 1000;
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
}
#cookie-banner p { font-size: 14px; line-height: 1.5; color: var(--ink-muted); flex: 1; min-width: 200px; }
.cookie-buttons { display: flex; gap: var(--spacing-sm); }

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

/* FAQ */
.faq-section { padding: var(--spacing-section) 0; }
.faq-item {
  border-bottom: 1px solid var(--hairline-soft);
  padding: var(--spacing-lg) 0;
}
.faq-q {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q span { font-size: 20px; color: var(--ink-muted); transition: transform 0.2s; }
.faq-a {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-item.open .faq-a { max-height: 300px; padding-top: var(--spacing-sm); }

/* BREADCRUMB */
.breadcrumb {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb span { color: var(--ink-tertiary); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { gap: var(--spacing-xl); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .section-title { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .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: var(--spacing-lg);
    gap: var(--spacing-md);
    z-index: 99;
  }
  .footer-bottom { flex-direction: column; gap: var(--spacing-sm); text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--spacing-md); }
  .hero h1 { font-size: 28px; }
  .hero-img-card img { height: 220px; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 28px; }
}
