* {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --dark: #1d1d1f;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Instrument Serif", Georgia, "Times New Roman", serif;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

/* Floating pill navbar like Refocus */
.topbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 12px;
  margin: 0 auto 16px;
  max-width: min(1100px, calc(100% - 48px));
}

.nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 680px;
  margin: 0 auto;
  background: #1d1d1f;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.brand {
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.links {
  display: flex;
  gap: 32px;
}

.links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.links a:hover {
  color: #fff;
}

.links .lang-switch {
  opacity: 0.8;
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
  opacity: 0.95;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  border: 2px solid var(--dark);
}

.btn-hero {
  height: 48px;
  padding: 0 24px;
  color: var(--dark);
  background: #fff;
  border: 2px solid var(--dark);
}

.btn-cta {
  height: 52px;
  padding: 0 32px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(147, 197, 253, 0.32) 0%,
    rgba(147, 197, 253, 0.14) 40%,
    rgba(147, 197, 253, 0.04) 65%,
    rgba(147, 197, 253, 0) 85%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text);
}

.lead {
  margin: 16px auto 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-rating {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-rating .stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
}

.hero-rating strong {
  font-size: 1.4rem;
  font-weight: 800;
}

.rating-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 8px;
}

.hero-mockup {
  margin-top: 48px;
}

.mockup-placeholder {
  background: #1d1d1f;
  border-radius: 24px;
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.95);
}

.mockup-brand {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.mockup-features {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* Features */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin: 0 0 40px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.and-more {
  margin-top: 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.review-card .stars {
  color: #f5a623;
  font-size: 0.95rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.review-text {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.98rem;
}

.review-meta {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.faq-list {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 8px;
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 8px;
}

.faq-list details:last-child {
  margin-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 32px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

#getWaitlistContainer {
  max-width: 480px;
  margin: 0 auto;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

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

#year {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Tablet */
@media (max-width: 860px) {
  .links {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-hero {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    padding: 0 20px;
  }

  .topbar {
    padding: 0 8px;
    top: 12px;
  }

  .section {
    padding: 56px 0;
  }

  .mockup-placeholder {
    padding: 36px 20px;
  }

  .cta-section {
    padding: 56px 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 10px;
  }

  .btn-hero {
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .mockup-placeholder {
    padding: 28px 16px;
  }

  .mockup-brand {
    font-size: 1.3rem;
  }

  .mockup-features {
    font-size: 0.88rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 28px;
  }

  .feature-card,
  .review-card {
    padding: 20px 18px;
  }

  .cta-section {
    padding: 40px 0;
  }

  .cta-inner h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
