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

:root {
  --bg: #0D0D0D;
  --surface: #1A1A1A;
  --divider: #2A2A2A;
  --text: #FFFFFF;
  --text-secondary: #8A8A8E;
  --accent: #2D6A4F;
  --accent-light: #3D8B6A;
  --failure: #9B2226;
  --max-width: 720px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
}
nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
nav .nav-links { display: flex; align-items: center; gap: 1.5rem; }
nav .nav-links a { color: var(--text-secondary); font-size: 0.875rem; line-height: 1; }
nav .nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}
.hero .demo-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 3rem 2rem;
  max-width: 320px;
  margin: 0 auto 2.5rem;
}
.hero .demo-time {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hero .demo-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* ── Arc ring SVG ── */
.arc-ring {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
}
.arc-ring .track { fill: none; stroke: var(--divider); stroke-width: 4; }
.arc-ring .progress { fill: none; stroke: var(--accent-light); stroke-width: 4; stroke-linecap: round; }

/* ── App Store badge ── */
.store-badge {
  display: inline-block;
  height: 54px;
  transition: opacity 0.2s;
}
.store-badge:hover { opacity: 0.8; }
.store-badge img { height: 54px; }

/* ── Features ── */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 2rem;
}
.feature .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Section ── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.section .highlight {
  color: var(--text);
  font-weight: 500;
}

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}
.step-content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.step-content p { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Privacy banner ── */
.privacy-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.privacy-banner-inner {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}
.privacy-banner-inner h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.privacy-banner-inner p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--divider);
  padding: 2rem 1.5rem;
  text-align: center;
}
footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
footer .footer-links a { color: var(--text-secondary); font-size: 0.875rem; }
footer .footer-links a:hover { color: var(--text); }
footer .copyright {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ── Legal pages ── */
.legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}
.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.legal .meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 3rem;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal p, .legal li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal ul, .legal ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--divider);
}
.legal th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legal td { color: var(--text-secondary); }
.legal hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2rem 0;
}
.legal a { color: var(--accent-light); }
.legal strong { color: var(--text); font-weight: 600; }
.legal em { color: var(--text-secondary); font-style: italic; }

/* ── Language switcher ── */
.lang-select {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--divider);
  display: flex;
  align-items: center;
}
.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 1.5rem 0.3rem 0.5rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A8A8E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
}
.lang-select select:hover { color: var(--text); border-color: var(--text-secondary); }
.lang-select select:focus { outline: none; border-color: var(--accent-light); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero .demo-card { max-width: 280px; padding: 2.5rem 1.5rem; }
  .hero .demo-time { font-size: 2.75rem; }
  .section, .privacy-banner, .legal { padding-left: 1.25rem; padding-right: 1.25rem; }
}
