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

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

:root {
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --canvas: #ffffff;
  --soft: #f8fafc;
  --strong: #e0e2e6;
  --hairline: #dddddd;
  --link: #1b61c9;
  --link-active: #1a3866;
  --coral: #aa2d00;
  --forest: #0a2e0e;
  --cream: #f5e9d4;
  --peach: #fcab79;
  --mint: #a8d8c4;
  --yellow: #f4d35e;
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --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 { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-active); }

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

ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}
.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── HERO BAND ── */
.hero-band {
  padding: var(--sp-section) 0;
  background: var(--canvas);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-text h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-lg);
}
.hero-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: var(--sp-xl);
}
.hero-image-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn-primary:hover { background: #0d1218; color: #fff; }

.btn-secondary {
  display: inline-block;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: #9297a0; color: var(--ink); }

.btn-legal {
  display: inline-block;
  background: var(--link);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: var(--r-xs);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-legal-outline {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
}

/* ── SIGNATURE CARDS ── */
.card-coral {
  background: var(--coral);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}
.card-coral h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: #fff; margin-bottom: var(--sp-md); }
.card-coral p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: var(--sp-lg); }

.card-forest {
  background: var(--forest);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}
.card-forest h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: #fff; margin-bottom: var(--sp-md); }
.card-forest p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: var(--sp-lg); }

.card-dark {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
}
.card-dark h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: #fff; margin-bottom: var(--sp-md); }
.card-dark p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: var(--sp-lg); }

/* ── SECTION GENERIC ── */
.section { padding: var(--sp-section) 0; }
.section-soft { background: var(--soft); }
.section-cream { background: var(--cream); }
.section-strong { background: var(--strong); }
.section-dark { background: var(--ink); }

.section-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.12px;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}
.section-title-lg {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}
.section-sub {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: var(--sp-xl);
  max-width: 620px;
}

/* ── ARTICLE GRID ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.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 {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card:hover .article-card-img img { transform: scale(1.03); }
.article-card-body { padding: var(--sp-md); flex: 1; display: flex; flex-direction: column; }
.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: var(--sp-xs);
}
.article-card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}
.article-card-title a { color: var(--ink); }
.article-card-title a:hover { color: var(--link); }
.article-card-excerpt {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  flex: 1;
  margin-bottom: var(--sp-sm);
}
.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ── DEMO GRID CARDS ── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.demo-card {
  border-radius: var(--r-md);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.demo-card-peach { background: var(--peach); }
.demo-card-mint { background: var(--mint); }
.demo-card-yellow { background: var(--yellow); }
.demo-card-label { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.demo-card-text { font-size: 14px; color: var(--body); line-height: 1.5; }

/* ── CONTACT FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 480px;
}
.form-group { display: flex; flex-direction: column; gap: var(--sp-xs); }
.form-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.form-input {
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 16px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  outline: none;
  width: 100%;
}
.form-input:focus { border-color: #458fff; box-shadow: 0 0 0 2px rgba(69,143,255,0.15); }

/* ── CTA BAND ── */
.cta-band {
  background: var(--strong);
  border-radius: var(--r-lg);
  padding: var(--sp-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--ink); }

/* ── ARTICLE PAGE ── */
.article-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-section) var(--sp-xxl);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
.article-content h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: var(--sp-lg); }
.article-content h2 { font-size: 24px; font-weight: 500; line-height: 1.35; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-md); }
.article-content h3 { font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink); margin: var(--sp-lg) 0 var(--sp-sm); }
.article-content p { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-md); }
.article-content ul { margin: var(--sp-sm) 0 var(--sp-md) var(--sp-lg); }
.article-content ul li { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: 6px; list-style: disc; }
.article-content a { color: var(--link); }
.article-content a:hover { color: var(--link-active); }
.article-content .article-hero-img { border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--sp-xl); aspect-ratio: 16/9; }
.article-content .article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-lg); display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--soft);
  border-radius: var(--r-md);
  padding: var(--sp-xl);
  border: 1px solid var(--hairline);
  margin-bottom: var(--sp-lg);
}
.sidebar-card-title { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-md); }
.sidebar-card ul { display: flex; flex-direction: column; gap: var(--sp-xs); }
.sidebar-card ul li a { font-size: 14px; color: var(--body); }
.sidebar-card ul li a:hover { color: var(--link); }
.article-img-block { border-radius: var(--r-md); overflow: hidden; margin: var(--sp-xl) 0; }
.article-img-block img { width: 100%; height: auto; }
.article-img-caption { font-size: 13px; color: var(--muted); margin-top: var(--sp-xs); font-style: italic; }

/* ── PLAIN PAGES (about, privacy, terms) ── */
.plain-layout {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--sp-section) var(--sp-xxl);
}
.plain-layout h1 { font-size: 40px; font-weight: 400; color: var(--ink); margin-bottom: var(--sp-md); }
.plain-layout h2 { font-size: 24px; font-weight: 500; color: var(--ink); margin: var(--sp-xl) 0 var(--sp-sm); }
.plain-layout h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: var(--sp-lg) 0 var(--sp-xs); }
.plain-layout p { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: var(--sp-md); }
.plain-layout ul { margin: var(--sp-sm) 0 var(--sp-md) var(--sp-lg); }
.plain-layout ul li { font-size: 14px; line-height: 1.7; color: var(--body); margin-bottom: 6px; list-style: disc; }
.plain-layout a { color: var(--link); }
.plain-updated { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-xl); }

/* ── TEAM / ABOUT ── */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-lg); margin-top: var(--sp-xl); }
.team-card { background: var(--soft); border-radius: var(--r-md); padding: var(--sp-xl); border: 1px solid var(--hairline); }
.team-name { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-xs); }
.team-role { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-sm); }
.team-bio { font-size: 14px; color: var(--body); line-height: 1.6; }

/* ── HIGHLIGHTS ── */
.highlight-box {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-xl) 0;
}
.highlight-box p { margin-bottom: 0; font-size: 14px; line-height: 1.7; color: var(--body); }

/* ── FOOTER ── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-section);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xxl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xxl);
}
.footer-brand { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: var(--sp-sm); }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: var(--sp-md); }
.footer-contact { font-size: 14px; color: var(--muted); line-height: 1.8; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--link); }
.footer-heading { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: var(--sp-md); }
.site-footer ul { display: flex; flex-direction: column; gap: var(--sp-xs); }
.site-footer ul li a { font-size: 14px; color: var(--muted); }
.site-footer ul li a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: var(--sp-md) var(--sp-xxl);
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: 13px;
  color: var(--muted);
}
.footer-legal-links { display: flex; gap: var(--sp-md); }
.footer-legal-links a { font-size: 13px; color: var(--muted); }
.footer-legal-links a:hover { color: var(--ink); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner.is-visible { display: block; }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-xxl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; }
.cookie-inner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--sp-sm); flex-shrink: 0; }

/* ── DISCLAIMER ── */
.disclaimer {
  background: var(--soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--sp-sm) var(--sp-md);
  font-size: 13px;
  color: var(--muted);
  margin: var(--sp-lg) 0;
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .article-grid { grid-template-columns: repeat(2,1fr); }
  .demo-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --sp-section: 64px; }
  .container { padding: 0 var(--sp-md); }
  .nav-inner { padding: 0 var(--sp-md); }
  .nav-links { display: none; flex-direction: column; position: fixed; inset: 64px 0 0 0; background: var(--canvas); padding: var(--sp-xl) var(--sp-md); gap: var(--sp-lg); overflow-y: auto; border-top: 1px solid var(--hairline); }
  .nav-links.is-open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-inner { padding: 0 var(--sp-md); }
  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 16px; }
  .article-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 var(--sp-md) var(--sp-xxl); }
  .footer-bottom { padding: var(--sp-md); }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; padding: var(--sp-xl); }
  .cta-band h2 { font-size: 24px; }
  .card-coral, .card-forest, .card-dark { padding: var(--sp-xl); }
  .card-coral h2, .card-forest h2, .card-dark h2 { font-size: 24px; }
  .plain-layout { padding: var(--sp-xxl) var(--sp-md); }
  .plain-layout h1 { font-size: 28px; }
  .article-layout { padding: var(--sp-xxl) var(--sp-md); }
  .article-content h1 { font-size: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; padding: var(--sp-md); }
}
