:root {
  --bg-primary: #0f0f11;
  --bg-secondary: #17171b;
  --bg-tertiary: #232329;
  --text-primary: #f7f7f8;
  --text-secondary: #9d9da8;
  --accent: #f97316;
  --accent-bright: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.25);
  --accent-glow-soft: rgba(249, 115, 22, 0.12);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Background: top glow + faint grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -25%, var(--accent-glow), transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 96px,
      rgba(255, 255, 255, 0.025) 96px,
      rgba(255, 255, 255, 0.025) 97px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 96px,
      rgba(255, 255, 255, 0.025) 96px,
      rgba(255, 255, 255, 0.025) 97px
    );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.container--wide {
  max-width: 1024px;
}

/* Navigation — full-bleed sticky bar */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 17, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Header (calculator / privacy pages) */
header {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.logo,
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto;
}

.last-updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 0 5rem;
  animation: fadeIn 0.4s ease-out;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.hero .subtitle {
  max-width: 560px;
}

.hero-audience {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn--primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.btn--secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

/* App Showcase */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  padding: 3rem 0 2rem;
}

.showcase-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.showcase-section:nth-child(even) {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
}

.showcase-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.showcase-text h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.showcase-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.showcase-image {
  position: relative;
  flex-shrink: 0;
  width: 280px;
}

/* Glow behind each phone */
.showcase-image::before {
  content: '';
  position: absolute;
  inset: -15% -25%;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, var(--accent-glow-soft), transparent 70%);
  pointer-events: none;
}

.showcase-image img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.03),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Features */
.features-header {
  text-align: center;
  margin-top: 6rem;
  scroll-margin-top: calc(var(--nav-height) + 2rem);
}

.features-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.features-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 4rem;
  scroll-margin-top: calc(var(--nav-height) + 2rem);
}

.feature {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%), var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-glow), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-bright);
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

/* Sections (privacy policy, calculator panels) */
section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
}

section:hover {
  border-color: var(--border-strong);
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.highlight svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

ul {
  color: var(--text-secondary);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

ul:last-child {
  margin-bottom: 0;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Free tool CTA */
.tool-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-glow-soft), transparent 55%), var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  margin-top: 2rem;
}

.tool-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.tool-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.tool-cta p {
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

.tool-cta .btn--primary {
  color: #fff;
}

/* Bottom CTA */
.bottom-cta {
  position: relative;
  text-align: center;
  padding: 6rem 0 5rem;
  margin-top: 2rem;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, var(--accent-glow-soft), transparent 70%);
  pointer-events: none;
}

.bottom-cta > * {
  position: relative;
}

.bottom-cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.bottom-cta p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

/* Footer */
footer {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

footer .footer-links {
  margin-bottom: 1rem;
}

footer .footer-links a {
  color: var(--text-secondary);
  margin: 0 0.75rem;
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal — .reveal is added by JS, so content stays visible without it */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 2rem 1rem 3rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  section {
    padding: 1.5rem;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .showcase {
    gap: 4.5rem;
    padding-top: 1.5rem;
  }

  .showcase-section,
  .showcase-section:nth-child(even) {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .showcase-image {
    width: 230px;
  }

  .features-header {
    margin-top: 4rem;
  }

  .bottom-cta {
    padding: 4rem 0 3.5rem;
  }
}

/* Contact form */
.contact-section {
  padding: 2rem;
}

.contact-form .field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form .field {
  margin-bottom: 1.5rem;
}

.contact-form .field-grid .field {
  margin-bottom: 0;
}

.contact-form .field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
}

.contact-form .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  opacity: 0.8;
}

.contact-form .field-hint {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.625rem 0 0;
}

.contact-form .control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.75rem 0.875rem;
  transition: border-color 0.2s;
}

.contact-form .control::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.contact-form .control:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form select.control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}

.contact-form textarea.control {
  resize: vertical;
  min-height: 160px;
}

.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-actions .btn {
  cursor: pointer;
  font-family: inherit;
  border: 0;
}

.form-actions .btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-status--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.form-status--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

@media (max-width: 640px) {
  .contact-section {
    padding: 1.5rem;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    max-width: none;
  }
}
