*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --canvas: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --surface-dark: #181d26;
  --hairline: #dddddd;
  --link: #1b61c9;
  --coral: #aa2d00;
  --forest: #0a2e0e;
  --cream: #f5e9d4;
  --peach: #fcab79;
  --mint: #a8d8c4;
  --on-primary: #ffffff;
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --section: 96px;
  --max-w: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 48px;
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 48px;
  gap: 32px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--body);
  font-weight: 400;
}
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* HERO */
.hero-band {
  padding-block: var(--section);
  background: var(--canvas);
}
.hero-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.16px; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }
.hero-h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 20px; }
.hero-sub { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 32px; max-width: 480px; }
.hero-img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary:active { background: #0d1218; color: var(--on-primary); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
}

/* SIGNATURE CARDS */
.signature-coral {
  background: var(--coral);
  color: var(--on-primary);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.signature-forest {
  background: var(--forest);
  color: var(--on-primary);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.signature-dark {
  background: var(--surface-dark);
  color: var(--on-primary);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.signature-cream {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 24px;
}
.sig-label { font-size: 12px; font-weight: 500; letter-spacing: 0.16px; text-transform: uppercase; opacity: 0.7; margin-bottom: 12px; }
.sig-h2 { font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: 16px; }
.sig-p { font-size: 14px; line-height: 1.6; opacity: 0.85; margin-bottom: 24px; }

/* SECTIONS */
.section { padding-block: var(--section); }
.section-soft { padding-block: var(--section); background: var(--surface-soft); }
.section-cream { padding-block: var(--section); background: var(--cream); }
.section-title { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--body); line-height: 1.6; margin-bottom: 48px; max-width: 640px; }
.section-header { margin-bottom: 48px; }

/* ARTICLE CARDS */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--canvas);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card-thumb { aspect-ratio: 16/9; overflow: hidden; }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-card-tag { font-size: 12px; font-weight: 500; letter-spacing: 0.16px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.article-card-title { font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.article-card-title a { color: inherit; }
.article-card-excerpt { font-size: 14px; color: var(--body); line-height: 1.5; flex: 1; }
.article-card-meta { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* DEMO GRID */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.demo-card {
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-card.peach { background: var(--peach); }
.demo-card.mint  { background: var(--mint); }
.demo-card.cream { background: var(--cream); }
.demo-card-label { font-size: 16px; font-weight: 500; color: var(--ink); }
.demo-card-text  { font-size: 14px; color: var(--ink); opacity: 0.8; line-height: 1.5; }

/* TWO-COL FEATURE */
.feature-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-two-col.reverse { direction: rtl; }
.feature-two-col.reverse > * { direction: ltr; }
.feature-img { border-radius: var(--radius-md); overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.feature-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.16px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.feature-h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 16px; }
.feature-p { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }
.feature-list { list-style: disc; padding-left: 20px; font-size: 14px; color: var(--body); line-height: 1.8; }

/* CTA BAND */
.cta-band {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { font-size: 32px; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.cta-band p { font-size: 16px; color: var(--body); margin-bottom: 28px; }

/* FORM */
.contact-form { display: grid; gap: 16px; max-width: 540px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-group input,
.form-group textarea {
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  height: 44px;
  width: 100%;
}
.form-group textarea { height: auto; min-height: 100px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #458fff; }
.form-submit { margin-top: 8px; }

/* ARTICLE PAGE */
.article-header { padding-block: var(--section); background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.article-tag { font-size: 13px; font-weight: 500; letter-spacing: 0.16px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.article-h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 16px; max-width: 760px; }
.article-meta { font-size: 13px; color: var(--muted); }
.article-body-wrap { padding-block: 64px; }
.article-body-wrap .container { display: grid; grid-template-columns: minmax(0,720px) 1fr; gap: 64px; }
.article-content { font-size: 15px; line-height: 1.75; color: var(--body); }
.article-content h2 { font-size: 28px; font-weight: 400; color: var(--ink); margin-block: 40px 16px; }
.article-content h3 { font-size: 20px; font-weight: 500; color: var(--ink); margin-block: 28px 12px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; line-height: 1.8; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content a { color: var(--link); }
.article-content figure { margin-block: 32px; }
.article-content figure img { border-radius: var(--radius-md); width: 100%; }
.article-content figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-content blockquote { border-left: 3px solid var(--hairline); padding-left: 20px; color: var(--muted); font-style: italic; margin-block: 24px; }
.article-sidebar { padding-top: 4px; }
.sidebar-box { background: var(--surface-soft); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; border: 1px solid var(--hairline); }
.sidebar-box-title { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a { font-size: 14px; color: var(--body); line-height: 1.4; }
.sidebar-links a:hover { color: var(--link); }

/* BREADCRUMB */
.breadcrumb { font-size: 13px; color: var(--muted); padding-block: 12px; border-bottom: 1px solid var(--hairline); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin-inline: 6px; }

/* PAGE (about/privacy/terms) */
.page-header { padding-block: 64px; border-bottom: 1px solid var(--hairline); }
.page-h1 { font-size: 40px; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.page-sub { font-size: 16px; color: var(--body); }
.page-body { padding-block: 64px; max-width: 760px; }
.page-body h2 { font-size: 24px; font-weight: 400; color: var(--ink); margin-block: 36px 12px; }
.page-body p { font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.page-body ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
.page-body a { color: var(--link); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--hairline); padding-block: var(--section); }
.footer-inner { max-width: var(--max-w); margin-inline: auto; padding-inline: 48px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-col-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 14px; color: var(--muted); }
.footer-col address p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.footer-col address a { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.footer-legal a { color: var(--muted); margin-inline: 4px; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--on-primary);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { max-width: 760px; }
.cookie-banner a { color: var(--peach); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept,
.btn-cookie-reject {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}
.btn-cookie-accept { background: var(--link); color: var(--on-primary); }
.btn-cookie-reject { background: transparent; color: var(--on-primary); border: 1px solid rgba(255,255,255,0.4); }

/* DISCLAIMER */
.disclaimer-bar { background: var(--surface-soft); border-top: 1px solid var(--hairline); padding: 12px 48px; font-size: 13px; color: var(--muted); text-align: center; max-width: var(--max-w); margin: 0 auto; }

/* SPECIES GRID */
.species-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.species-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--hairline); background: var(--canvas); }
.species-card-img { aspect-ratio: 4/3; overflow: hidden; }
.species-card-img img { width: 100%; height: 100%; object-fit: cover; }
.species-card-body { padding: 16px; }
.species-card-name { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.species-card-sci { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 8px; }
.species-card-desc { font-size: 14px; color: var(--body); line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-band .container { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .species-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-two-col { grid-template-columns: 1fr; }
  .feature-two-col.reverse { direction: ltr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .article-body-wrap .container { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .nav-inner { padding-inline: 20px; }
  .footer-inner { padding-inline: 20px; }
  .cookie-banner { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
  .disclaimer-bar { padding-inline: 20px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 20px; font-size: 16px; }
  .hero-h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .sig-h2 { font-size: 24px; }
  .feature-h2 { font-size: 24px; }
  .articles-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .species-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .article-h1 { font-size: 28px; }
  .page-h1 { font-size: 28px; }
  .signature-coral, .signature-forest, .signature-dark { padding: 32px 24px; }
  .cta-band { padding: 32px 24px; }
}
