/* ===== Custom Properties ===== */
:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-input: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --text-dim: #666;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --border: #2a2a2a;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 300ms ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Layout ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top Bar ===== */
.topbar {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.topbar__badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 100px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.hero__left {
  flex: 1;
  max-width: 520px;
}

.hero__headline {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__subheadline {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Form */
.hero__form {
  position: relative;
}

.hero__form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__input {
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}

.hero__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero__input::placeholder {
  color: var(--text-dim);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 100ms ease;
  white-space: nowrap;
}

.hero__cta:hover:not(:disabled) {
  background: var(--accent-hover);
}

.hero__cta:active:not(:disabled) {
  transform: scale(0.98);
}

.hero__cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 8px;
}

.hero__microcopy {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Success State */
.hero__success-state {
  animation: fadeIn var(--transition) forwards;
}

.hero__success-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hero__success-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__success-subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Questions */
.questions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.question__label {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 150ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.chip:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.chip.selected {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.questions__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-secondary {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.btn-link {
  font-size: 0.875rem;
  color: var(--text-dim);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  color: var(--text-muted);
}

.hero__final-thanks {
  padding: 16px 0;
  color: var(--text-muted);
  animation: fadeIn var(--transition) forwards;
}

/* Phone Frame */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 260px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.phone-frame__img {
  width: 100%;
  height: auto;
}

.hero__caption {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 16px;
  text-align: center;
}

/* ===== Benefits ===== */
.benefits {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.benefits__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition);
}

.benefit-card:hover {
  border-color: var(--text-dim);
}

.benefit-card__icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.benefit-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Steps ===== */
.steps {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.steps__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.steps__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.step {
  text-align: center;
  max-width: 260px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 12px;
}

.step__label {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step__arrow {
  color: var(--text-dim);
  transform: rotate(90deg);
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.faq__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.faq__inner {
  max-width: 640px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 0 20px;
}

.faq__answer p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ===== Utilities ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Desktop (768px+) ===== */
@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }

  .hero__headline {
    font-size: 3rem;
  }

  .hero__form-row {
    flex-direction: row;
  }

  .hero__input {
    flex: 1;
  }

  .benefits__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps__grid {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .step__arrow {
    transform: none;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== Large Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  .hero {
    padding: 120px 0 140px;
  }

  .hero__headline {
    font-size: 3.5rem;
  }

  .phone-frame {
    width: 300px;
  }
}
