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

:root {
  --cream: #f7f4ed;
  --charcoal: #1c1c1c;
  --off-white: #fcfbf8;
  --muted: #5f5f5d;
  --border-light: #eceae4;
  --border-interactive: rgba(28,28,28,0.4);
  --shadow-inset: rgba(255,255,255,0.2) 0px 0.5px 0px 0px inset, rgba(0,0,0,0.2) 0px 0px 0px 0.5px inset, rgba(0,0,0,0.05) 0px 1px 2px 0px;
  --shadow-focus: rgba(0,0,0,0.1) 0px 4px 12px;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247,244,237,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--charcoal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--off-white);
  font-size: 16px;
  font-weight: 600;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:active { opacity: 0.8; }

.btn-primary {
  background: var(--charcoal);
  color: var(--off-white);
  box-shadow: var(--shadow-inset);
}

.btn-primary:hover { box-shadow: var(--shadow-focus); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--border-interactive);
}

.btn-ghost:hover { box-shadow: var(--shadow-focus); }

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 8px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg { width: 24px; height: 24px; }

/* HERO */
.hero {
  padding: 160px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(255,182,193,0.15) 0%, rgba(255,218,185,0.1) 30%, rgba(173,216,230,0.08) 60%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.5px;
  max-width: 800px;
  margin: 0 auto 24px;
  position: relative;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  position: relative;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* STATS */
.stats {
  padding: 64px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* SECTION */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

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

.feature-card {
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow-focus); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(28,28,28,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--charcoal);
  stroke-width: 1.5;
  fill: none;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* USE CASES */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.usecase-card {
  padding: 40px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s;
}

.usecase-card:hover { box-shadow: var(--shadow-focus); }

.usecase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  font-size: 12px;
  color: var(--muted);
  align-self: flex-start;
}

.usecase-tag svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  stroke-width: 1.5;
  fill: none;
}

.usecase-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.usecase-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ARCHITECTURE */
.arch-section {
  padding: 96px 0;
  border-top: 1px solid var(--border-light);
}

.arch-diagram {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.arch-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.arch-box {
  padding: 16px 24px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-width: 140px;
}

.arch-box-dark {
  background: var(--charcoal);
  color: var(--off-white);
  border-color: var(--charcoal);
}

.arch-arrow {
  color: var(--muted);
  display: flex;
  align-items: center;
}

.arch-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  stroke-width: 1.5;
  fill: none;
}

.arch-arrow-down {
  display: flex;
  justify-content: center;
}

.arch-arrow-down svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  stroke-width: 1.5;
  fill: none;
}

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

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover { color: var(--muted); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  stroke: var(--charcoal);
  stroke-width: 1.5;
  fill: none;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* CTA */
.cta-section { padding: 96px 0; }

.cta-box {
  background: var(--charcoal);
  color: var(--off-white);
  border-radius: 16px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 18px;
  color: rgba(252,251,248,0.6);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.5;
  position: relative;
}

.btn-cta-white {
  background: var(--off-white);
  color: var(--charcoal);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  position: relative;
}

.btn-cta-white:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

/* LEGAL PAGES */
.legal-page {
  padding: 128px 0 96px;
}

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

.legal-content h1 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--charcoal);
  font-weight: 500;
}

.legal-contact-box {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
}

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

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

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--charcoal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--charcoal); }

.footer-address {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  font-style: normal;
  margin-top: 8px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; letter-spacing: -1.2px; }
  .section-header h2 { font-size: 36px; letter-spacing: -0.9px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.9px; }
  .hero p { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .cta-box h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .arch-diagram { padding: 24px; }
  .arch-section { padding: 64px 0; }
  .legal-page { padding: 100px 0 64px; }
  .legal-content h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
