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

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

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede9e3;
  --hairline: #d3cec6;
  --hairline-soft: #e4e0da;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --ink-tertiary: #9c9fa5;
  --inverse-canvas: #000000;
  --inverse-ink: #ffffff;
  --inverse-ink-muted: #cccccc;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
}

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  background-color: 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; }

/* Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  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: 8px;
  flex-direction: column;
  gap: 5px;
}

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Sections */
section { padding: 96px 0; }
section + section { padding-top: 0; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 16px;
  display: block;
}

.display-xl {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.10;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.display-lg {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 24px;
}

.display-md {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 16px;
}

.card-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 12px;
}

.body-lg {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.50;
  letter-spacing: -0.1px;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.body-sm {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Cards */
.feature-card {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
}

.product-mockup-card {
  background: var(--surface-1);
  border-radius: var(--rounded-xl);
  border: 1px solid var(--hairline);
  padding: 24px;
  overflow: hidden;
}

.product-mockup-card img {
  width: 100%;
  border-radius: var(--rounded-lg);
  object-fit: cover;
}

.testimonial-card {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: 32px;
}

/* Card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* CTA Banner */
.cta-banner {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: 48px;
  text-align: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--inverse-ink);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 40px;
}

.btn-primary:hover { opacity: 0.85; text-decoration: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
  transition: background 0.15s;
  min-height: 40px;
}

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

/* Section headings */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .body-lg { margin-bottom: 0; }

/* Articles */
.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: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body .card-title { margin-bottom: 8px; }
.article-card-body .body-sm { flex: 1; margin-bottom: 16px; }

.article-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
  margin-bottom: 8px;
}

/* Article page */
.article-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--rounded-xl);
  margin-bottom: 48px;
}

.article-content { max-width: 720px; margin: 0 auto; }

.article-content h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 8px;
}

.article-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content strong { font-weight: 500; }

.article-date {
  font-size: 14px;
  color: var(--ink-subtle);
  margin-bottom: 32px;
  display: block;
}

.breadcrumb {
  font-size: 14px;
  color: var(--ink-subtle);
  margin-bottom: 32px;
}

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

/* Highlight box */
.info-box {
  background: var(--surface-2);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin: 32px 0;
  border-left: 3px solid var(--hairline);
}

.info-box p { margin-bottom: 0; }

/* Contact form */
.contact-form {
  background: var(--surface-1);
  border-radius: var(--rounded-lg);
  border: 1px solid var(--hairline);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.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%;
  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);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-message {
  display: none;
  padding: 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  margin-top: 16px;
}

.form-message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
  padding: 20px 32px;
  z-index: 1000;
  display: none;
}

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text { font-size: 14px; color: var(--inverse-ink-muted); flex: 1; min-width: 200px; }
.cookie-text a { color: var(--inverse-ink); text-decoration: underline; }

.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-btn {
  padding: 8px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  min-height: 40px;
}

.cookie-btn-accept { background: var(--inverse-ink); color: var(--inverse-canvas); }
.cookie-btn-reject { background: transparent; color: var(--inverse-ink-muted); border: 1px solid #555; }

/* Footer */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 32px 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-brand .nav-logo { font-size: 16px; margin-bottom: 12px; display: block; }

.footer-col h4 {
  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 li a { font-size: 14px; color: var(--ink-subtle); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--ink); text-decoration: none; }

.footer-desc { font-size: 14px; color: var(--ink-subtle); line-height: 1.6; }

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

.footer-bottom p { font-size: 12px; color: var(--ink-tertiary); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-row {
  background: var(--canvas);
  border-radius: var(--rounded-md);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  padding: 0 4px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] .faq-question::after { content: '−'; }

.faq-answer {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  padding: 0 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .display-xl { font-size: 36px; letter-spacing: -0.8px; }
  .display-lg { font-size: 28px; }
  .display-md { font-size: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .cta-banner { padding: 32px 24px; }
  .contact-form { padding: 28px 20px; }
  .top-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .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: 20px;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .display-xl { font-size: 28px; }
  .article-content h1 { font-size: 28px; }
}
