@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 {
  --primary: #181d26;
  --primary-active: #0d1218;
  --canvas: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e0e2e6;
  --surface-dark: #181d26;
  --hairline: #dddddd;
  --ink: #181d26;
  --body: #333840;
  --muted: #41454d;
  --on-primary: #ffffff;
  --link: #1b61c9;
  --signature-coral: #aa2d00;
  --signature-forest: #0a2e0e;
  --signature-cream: #f5e9d4;
  --signature-peach: #fcab79;
  --signature-mint: #a8d8c4;
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 12px;
  --section: 96px;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; }

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

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

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

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

/* NAV */
.site-nav {
  height: 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover { color: var(--link); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 200;
  padding: 24px;
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  margin-bottom: 32px;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu ul a {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 24px;
  border-radius: var(--rounded-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary:active, .btn-primary:hover { background: var(--primary-active); color: var(--on-primary); text-decoration: none; }

.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(--rounded-lg);
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-secondary:hover { background: var(--surface-soft); text-decoration: none; }

.btn-legal {
  display: inline-flex;
  align-items: center;
  background: var(--link);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--rounded-xs);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-reject {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--rounded-xs);
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
}

/* HERO */
.hero {
  padding: var(--section) 0;
  background: var(--canvas);
}

.hero h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  max-width: 680px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  font-weight: 400;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* SIGNATURE CARDS */
.section { padding: var(--section) 0; }

.signature-coral {
  background: var(--signature-coral);
  padding: var(--section) 0;
}

.signature-coral h2,
.signature-coral p { color: var(--on-primary); }

.signature-forest {
  background: var(--signature-forest);
  padding: var(--section) 0;
}

.signature-forest h2,
.signature-forest p { color: var(--on-primary); }

.surface-dark-band {
  background: var(--surface-dark);
  padding: var(--section) 0;
}

.surface-dark-band h2,
.surface-dark-band p { color: var(--on-primary); }

.surface-cream {
  background: var(--signature-cream);
  padding: var(--section) 0;
}

.surface-soft-band {
  background: var(--surface-soft);
  padding: var(--section) 0;
}

.surface-strong-band {
  background: var(--surface-strong);
  padding: var(--section) 0;
}

/* TYPOGRAPHY */
h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 12px;
}

h4 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 8px;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ARTICLE GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--canvas);
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.article-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-card-body {
  padding: 16px;
}

.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  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: var(--ink);
  text-decoration: none;
}

.article-card-title a:hover { color: var(--link); }

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
}

/* DEMO GRID */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.demo-card {
  border-radius: var(--rounded-md);
  padding: 24px;
}

.demo-card.peach { background: var(--signature-peach); }
.demo-card.mint { background: var(--signature-mint); }
.demo-card.cream { background: var(--signature-cream); }

.demo-card h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.demo-card p { font-size: 14px; color: var(--body); margin: 0; }

.demo-card img {
  width: 100%;
  border-radius: var(--rounded-sm);
  margin-top: 16px;
}

/* ARTICLE PAGE */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: var(--section) 0;
}

.article-content h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-content h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.article-content img {
  width: 100%;
  border-radius: var(--rounded-md);
  margin: 24px 0;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-content li { margin-bottom: 8px; }

.article-sidebar { position: sticky; top: 80px; height: fit-content; }

.sidebar-card {
  background: var(--surface-soft);
  border-radius: var(--rounded-md);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--hairline);
}

.sidebar-card h4 { margin-bottom: 12px; }

.sidebar-links { list-style: none; }
.sidebar-links li { padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: 14px; color: var(--link); }

/* CONTACT FORM */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--canvas);
  outline: none;
  transition: border-color 0.15s;
}

.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: #458fff; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--section) 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 300px; }

.footer-col h5 {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-col ul a:hover { color: var(--link); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--muted); margin: 0; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 20px 48px;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}

#cookie-banner p { font-size: 13px; color: var(--body); margin: 0; max-width: 700px; }
#cookie-banner .cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }

/* DISCLAIMER */
.disclaimer-box {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* PROTOCOL TABLE */
.proto-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.proto-table th {
  background: var(--surface-soft);
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 2px solid var(--hairline);
}

.proto-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
}

.proto-table tr:last-child td { border-bottom: none; }

/* PAGE CONTENT */
.page-content {
  padding: var(--section) 0;
  max-width: 800px;
}

.page-content h1 {
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span { margin: 0 6px; }

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: var(--section) 0;
}

.contact-info h2 { margin-bottom: 24px; }

.contact-detail {
  margin-bottom: 20px;
}

.contact-detail strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-detail span, .contact-detail a {
  font-size: 14px;
  color: var(--body);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  :root { --section: 64px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
}
