@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Inter+Display:wght@400;475;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #181d26;
  --ink-active: #0d1218;
  --canvas: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --surface-dark: #181d26;
  --surface-dark-el: #1d1f25;
  --hairline: #dddddd;
  --body: #333840;
  --muted: #41454d;
  --border-strong: #9297a0;
  --on-primary: #ffffff;
  --coral: #aa2d00;
  --forest: #0a2e0e;
  --cream: #f5e9d4;
  --peach: #fcab79;
  --mint: #a8d8c4;
  --yellow: #f4d35e;
  --link: #1b61c9;
  --link-active: #1a3866;
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-pill: 9999px;
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 96px;
  --max-w: 1280px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--body);
  background: var(--canvas);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--sp-xl);
}

.logo {
  font-family: 'Inter Display', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--coral); }

.main-nav { margin-left: auto; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}
.main-nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
}
.main-nav a.active,
.main-nav a:hover { color: var(--ink); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--sp-xs) 0;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: var(--sp-xs) var(--sp-md);
  font-size: 14px;
  color: var(--body);
}
.dropdown li a:hover { color: var(--ink); background: var(--surface-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: var(--sp-xs);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── HERO ── */
.hero-band {
  padding: var(--sp-section) 0;
  background: var(--canvas);
}
.hero-band .container { max-width: 760px; }
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-md);
}
.hero-band h1 {
  font-family: 'Inter Display', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}
.hero-band p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  max-width: 620px;
  margin-bottom: var(--sp-xxl);
}
.hero-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background: var(--ink);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--ink-active); color: var(--on-primary); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
}

/* ── SECTIONS ── */
.section { padding: var(--sp-section) 0; }
.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-md);
}
.section-title {
  font-family: 'Inter Display', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}
.section-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  max-width: 680px;
}

/* ── ARTICLE CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xxl);
}
.article-card {
  background: var(--canvas);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-card-body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-xs);
}
.article-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--link); }
.article-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  flex: 1;
  margin-bottom: var(--sp-md);
}
.card-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── SIGNATURE CORAL CARD ── */
.signature-coral {
  background: var(--coral);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
  color: var(--on-primary);
  margin: 0 var(--sp-xxl);
}
.signature-coral h2 {
  font-family: 'Inter Display', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--sp-md);
}
.signature-coral p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--sp-xl);
  opacity: .9;
}
.btn-on-dark {
  display: inline-flex;
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  text-decoration: none;
}

/* ── SIGNATURE DARK CARD ── */
.signature-dark {
  background: var(--surface-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
  color: var(--on-primary);
  margin: 0 var(--sp-xxl);
}
.signature-dark h2 {
  font-family: 'Inter Display', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--sp-md);
}
.signature-dark p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--sp-xl);
  opacity: .8;
}

/* ── CREAM CALLOUT ── */
.cream-callout {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: var(--sp-xxl);
}
.cream-callout h2 {
  font-family: 'Inter Display', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}
.cream-callout p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  max-width: 600px;
  margin-bottom: var(--sp-xl);
}

/* ── DEMO GRID ── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xxl);
}
.demo-card {
  border-radius: var(--r-md);
  padding: var(--sp-md);
}
.demo-card:nth-child(1) { background: var(--peach); }
.demo-card:nth-child(2) { background: var(--mint); }
.demo-card:nth-child(3) { background: var(--yellow); }
.demo-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}
.demo-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--surface-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xxl);
  margin: 0 var(--sp-xxl);
}
.cta-band h2 {
  font-family: 'Inter Display', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 520px;
}

/* ── FORM ── */
.contact-form {
  background: var(--surface-soft);
  border-radius: var(--r-md);
  padding: var(--sp-xxl);
  max-width: 560px;
}
.form-group { margin-bottom: var(--sp-md); }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}
.form-group input {
  width: 100%;
  height: 44px;
  padding: 12px var(--sp-md);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}
.form-group input:focus {
  outline: none;
  border-color: #458fff;
  box-shadow: 0 0 0 3px rgba(69,143,255,.15);
}

/* ── ARTICLE PAGE ── */
.article-hero {
  padding: var(--sp-section) 0 var(--sp-xxl);
  background: var(--canvas);
}
.article-hero .container { max-width: 760px; }
.article-hero h1 {
  font-family: 'Inter Display', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}
.article-hero .lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: var(--sp-md);
}
.article-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
}
.article-img-hero {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-xxl);
}
.article-body { max-width: 720px; margin: 0 auto; padding: 0 var(--sp-xxl) var(--sp-section); }
.article-body h2 {
  font-family: 'Inter Display', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin: var(--sp-xxl) 0 var(--sp-md);
}
.article-body h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin: var(--sp-xl) 0 var(--sp-sm);
}
.article-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--sp-md);
}
.article-body ul {
  list-style: disc;
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
}
.article-body ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--sp-xs);
}
.article-body a {
  color: var(--link);
}
.article-body a:hover { color: var(--link-active); }
.article-img-inline {
  width: 100%;
  border-radius: var(--r-md);
  margin: var(--sp-xl) 0;
}
.article-img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: calc(-1 * var(--sp-md));
  margin-bottom: var(--sp-xl);
}
.article-related {
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-xl);
  margin-top: var(--sp-xxl);
}
.article-related h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--sp-md);
}
.article-related ul { list-style: none; padding: 0; }
.article-related ul li { margin-bottom: var(--sp-xs); }
.article-related ul li a { color: var(--link); font-size: 15px; }

/* ── PAGE (about/privacy/terms) ── */
.page-hero {
  padding: var(--sp-section) 0 var(--sp-xxl);
}
.page-hero .container { max-width: 760px; }
.page-hero h1 {
  font-family: 'Inter Display', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}
.page-hero p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.page-body { max-width: 720px; margin: 0 auto; padding: 0 var(--sp-xxl) var(--sp-section); }
.page-body h2 {
  font-family: 'Inter Display', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: var(--sp-xxl) 0 var(--sp-md);
}
.page-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: var(--sp-xl) 0 var(--sp-sm);
}
.page-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--sp-md);
}
.page-body ul {
  list-style: disc;
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
}
.page-body ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: var(--sp-xs);
}
.page-body a { color: var(--link); }
.updated {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--sp-xxl);
  display: block;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xxl);
  padding: var(--sp-section) var(--sp-xxl);
}
.footer-brand .logo { margin-bottom: var(--sp-md); display: inline-block; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--sp-md);
}
.footer-brand address {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-brand address a { color: var(--link); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}
.footer-col ul li { margin-bottom: var(--sp-xs); }
.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
}
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: var(--sp-lg) var(--sp-xxl);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-dark);
  color: var(--on-primary);
  padding: var(--sp-md) var(--sp-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,.1);
}
.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  opacity: .9;
}
.cookie-banner a { color: #7aadff; }
.cookie-actions { display: flex; gap: var(--sp-xs); flex-shrink: 0; }
.btn-legal {
  font-size: 13.12px;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--link);
  border: none;
  border-radius: var(--r-xs);
  padding: 12px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-legal-reject {
  font-size: 13.12px;
  font-weight: 600;
  color: var(--on-primary);
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-xs);
  padding: 12px 10px;
  cursor: pointer;
  white-space: nowrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .signature-coral,
  .signature-dark,
  .cta-band { margin: 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-md); }
  .cards-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: var(--sp-xxl) var(--sp-md); }
  .hero-band h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band h2 { font-size: 24px; }
  .main-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--canvas); flex-direction: column; padding: var(--sp-xl) var(--sp-md); overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: var(--sp-md); }
  .dropdown { position: static; border: none; padding: var(--sp-xs) 0 var(--sp-xs) var(--sp-md); }
  .has-dropdown:hover .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .article-body { padding: 0 var(--sp-md) var(--sp-xxl); }
  .page-body { padding: 0 var(--sp-md) var(--sp-xxl); }
  .article-hero .container { padding: 0 var(--sp-md); }
  .page-hero .container { padding: 0 var(--sp-md); }
}
