:root {
  --bg: #0b0f14;
  --bg-elevated: #121820;
  --bg-card: #161d27;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-glow: rgba(13, 148, 136, 0.35);
  --accent: #f59e0b;
  --radius: 14px;
  --radius-pill: 999px;
  --header-h: 64px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  min-width: 36px;
  height: 30px;
  padding: 0 0.55rem;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: rgba(13, 148, 136, 0.2);
  color: #99f6e4;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.35);
}

html[lang='en'] .lang-es {
  display: none !important;
}

html[lang='es'] .lang-en {
  display: none !important;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.site-brand-icon {
  border-radius: 8px;
}

.site-brand-name {
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px var(--primary-glow);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.btn-download:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-download.is-soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
  cursor: default;
  font-weight: 600;
}

.btn-download-lg {
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

/* Landing */
.page-main {
  overflow-x: hidden;
}

.hero {
  position: relative;
  padding: 3.5rem 1.25rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(13, 148, 136, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(245, 158, 11, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding-top: 1rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-note {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(280px, 78vw);
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
}

.section {
  padding: 4rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .shots {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto;
  }
}

.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.cta-band {
  margin: 0 1.25rem 4rem;
  max-width: calc(var(--max) - 2.5rem);
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(13, 148, 136, 0.04));
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

/* Legal pages */
.legal-page {
  padding: 2rem 1.25rem 5rem;
}

.legal-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-kicker {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-inner h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-callout {
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  font-size: 0.92rem;
}

.legal-inner h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.1rem;
}

.legal-inner p,
.legal-inner li {
  color: var(--text-muted);
}

.legal-inner ul {
  padding-left: 1.2rem;
}

.legal-inner strong {
  color: var(--text);
}

.legal-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
}

.legal-nav a {
  color: var(--text-muted);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2rem;
  background: var(--bg-elevated);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .site-header-inner {
    gap: 0.65rem;
    padding: 0 1rem;
  }

  .site-brand {
    gap: 0.45rem;
  }

  .site-brand-icon {
    width: 28px;
    height: 28px;
  }

  .site-brand-name {
    font-size: 0.95rem;
  }

  .btn-download {
    min-height: 36px;
    padding: 0 0.85rem;
    font-size: 0.8rem;
  }

  .lang-btn {
    min-width: 32px;
    height: 28px;
  }
}
