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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #f8f9fa;
  line-height: 1.7;
}

/* ── Navigation ── */
nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff9900;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #374151;
  font-size: 0.9rem;
}
.nav-links a:hover,
.nav-links a.active { color: #ff9900; }

/* ── Hero (home) ── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 6rem 2rem 5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.hero h1 span { color: #ff9900; }
.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ── Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 4.5rem 2rem 4rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.page-hero h1 span { color: #ff9900; }
.page-hero p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  background: rgba(255,153,0,0.15);
  border: 1px solid rgba(255,153,0,0.4);
  color: #ff9900;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Sections ── */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.alt-section {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #1a1a2e;
}
.section-sub {
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.8rem;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.feature-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}
.feature-card p { color: #6b7280; font-size: 0.9rem; }

/* ── API badges ── */
.api-section {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 4rem 2rem;
}
.api-inner { max-width: 900px; margin: 0 auto; }
.api-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.api-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step { text-align: center; }
.step-num {
  width: 48px;
  height: 48px;
  background: #ff9900;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: #6b7280; }

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }
.about-text p { margin-bottom: 1rem; color: #374151; }
.about-text em { color: #ff9900; font-style: normal; font-weight: 600; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #ff9900;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.8rem; color: #6b7280; line-height: 1.4; }
.stat-label small { display: block; }

.api-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.api-detail-card {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.8rem;
}
.api-detail-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #1a1a2e;
}
.api-detail-card p { color: #374151; font-size: 0.9rem; margin-bottom: 0.8rem; }
.api-detail-card ul { padding-left: 1.2rem; color: #6b7280; font-size: 0.85rem; }
.api-detail-card ul li { margin-bottom: 0.35rem; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.tech-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.tech-item strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; }
.tech-item span { font-size: 0.95rem; font-weight: 600; color: #1a1a2e; }

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 1rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info h2,
.contact-faq h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a2e;
}
.contact-info > p { color: #374151; margin-bottom: 1.5rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.contact-icon { font-size: 1.4rem; line-height: 1; }
.contact-card strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-card p { color: #374151; font-size: 0.9rem; margin: 0; }
.contact-card a { color: #ff9900; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.2rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a2e; }
.faq-item p { font-size: 0.875rem; color: #6b7280; }
.faq-item a { color: #ff9900; text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* ── Prose pages (privacy, terms) ── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.last-updated { color: #6b7280; font-size: 0.9rem; }

.container h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.5rem 0 0.8rem;
  color: #1a1a2e;
  padding-left: 0.8rem;
  border-left: 3px solid #ff9900;
}
.container p { margin-bottom: 0.9rem; color: #374151; }
.container ul {
  margin: 0.5rem 0 0.9rem 1.5rem;
  color: #374151;
}
.container ul li { margin-bottom: 0.4rem; }

.highlight-box {
  background: #fff8ec;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; font-size: 0.95rem; color: #92400e; }

/* ── Links ── */
a { color: #ff9900; }
a:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
  background: #1a1a2e;
  color: #94a3b8;
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
}
footer a { color: #ff9900; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { margin-bottom: 0.8rem; }
.footer-links a { margin: 0 0.8rem; }
