:root {
  --bg-page: #090513;
  --bg-panel: #0D081C;
  --bg-card: #120B24;
  --bg-phone-bezel: #1c1330;

  --purple-a: #A46BFF;
  --purple-b: #B784FF;
  --purple-shade-1: #9a6bef;
  --purple-shade-2: #8a4de0;
  --purple-shade-3: #6a37b8;
  --purple-tint-1: #e6d6ff;
  --purple-tint-2: #c9a8ff;

  --coral: #FF9A8B;
  --coral-shade: #e0685a;
  --on-coral: #3a1208;

  --text-primary: #FFFFFF;
  --text-secondary: #C7C7D1;
  --text-muted: #8F8FA8;

  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-stronger: rgba(255, 255, 255, 0.16);
  --border-purple: rgba(183, 132, 255, 0.5);
  --border-purple-soft: rgba(183, 132, 255, 0.35);

  --gradient-purple: linear-gradient(135deg, var(--purple-a), var(--purple-b));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
}

a { color: var(--purple-b); text-decoration: none; }
a:hover { color: var(--purple-a); }

.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;
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 900px) {
  .shell { padding: 0 24px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.btn-primary {
  color: var(--bg-page);
  background: var(--gradient-purple);
  padding: 12px 22px;
  font-size: 15px;
}
.btn-primary:hover { color: var(--bg-page); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(164, 107, 255, 0.35); }

.btn-coral {
  color: var(--on-coral);
  background: var(--coral);
  padding: 13px 24px;
  font-size: 16px;
  border-radius: 11px;
}
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 154, 139, 0.3); }

.btn-outline {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-purple);
  padding: 13px 22px;
  margin-top: 8px;
}
.btn-outline:hover { color: var(--text-primary); background: rgba(183, 132, 255, 0.1); border-color: var(--purple-b); }

/* ---------- animations ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.sqx-fade { opacity: 0; animation: fadeUp 0.7s cubic-bezier(.16, 1, .3, 1) forwards; }

@keyframes sqxWordA { 0% { opacity: 0; } 2.5% { opacity: 1; } 22.5% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes sqxDots   { 0% { opacity: 0; } 25% { opacity: 0; } 27% { opacity: 1; } 42% { opacity: 1; } 44% { opacity: 0; } 100% { opacity: 0; } }
@keyframes sqxWordB  { 0% { opacity: 0; } 50% { opacity: 0; } 52.5% { opacity: 1; } 72.5% { opacity: 1; } 75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes sqxFull   { 0% { opacity: 0; } 75% { opacity: 0; } 77.5% { opacity: 1; } 97.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sqxDotBounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-3px); opacity: 1; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--bg-page);
  opacity: 0.34;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-page) 0%, transparent 30%);
}

.hero .shell { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
}
.brand:hover { color: var(--text-primary); }
.brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 16px;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text-primary); }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .nav { gap: 12px; }
  .btn-primary { padding: 10px 16px; font-size: 13px; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
  position: relative;
  z-index: 1;
  padding: 56px 0 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(164, 107, 255, 0.12);
  border: 1px solid rgba(164, 107, 255, 0.4);
  color: var(--purple-b);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 100px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-b);
}

.hero-headline {
  margin: 0;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.brand-gradient-text {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subcopy {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
}

.email-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 8px 8px 8px 18px;
  transition: border-color 0.2s;
}
.email-bar:focus-within { border-color: rgba(183, 132, 255, 0.5); }
.email-icon { flex: none; }
.email-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}
.email-bar input::placeholder { color: var(--text-muted); }

.form-status {
  margin: -12px 0 0;
  font-size: 13px;
  color: var(--purple-b);
  min-height: 1em;
}

.scarcity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scarcity-track {
  width: 160px;
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.scarcity-fill {
  width: 37%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-a), var(--purple-b));
}
.scarcity-label { font-size: 14px; color: var(--text-muted); }

.trust-row {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
  margin-top: 8px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 170px;
}
.trust-title { font-size: 15px; font-weight: 600; }
.trust-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

@media (max-width: 900px) {
  .hero-headline { font-size: 40px; }
  .trust-row { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 30px; }
  .hero-subcopy { font-size: 16px; }
  .email-bar { flex-wrap: wrap; }
  .email-bar input { flex-basis: 0; }
  .btn-coral { flex: 1 1 100%; justify-content: center; }
}

/* ---------- how it works ---------- */

.how-it-works { padding-top: 0; }

.section-heading {
  text-align: center;
  padding: 100px 0 0;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--purple-b);
  margin: 0 0 14px;
}
.section-heading h2 {
  margin: 0 0 56px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding-bottom: 110px;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border-purple-soft); }

.step-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-number {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-purple);
  color: var(--purple-b);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step-title { font-size: 18px; font-weight: 700; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.step-arrow {
  flex: none;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); width: auto; padding: 8px 0; }
}

/* ---------- secondary cta + phones ---------- */

.secondary-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 120px;
}

@media (max-width: 900px) {
  .secondary-cta { grid-template-columns: 1fr; }
}

.secondary-cta-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.kicker-loop {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  min-width: 600px;
}
.kicker-loop span,
.kicker-loop-full {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--purple-b);
  white-space: nowrap;
}
.kicker-loop-a {
  position: absolute; left: 0; top: 0;
  animation: sqxWordA 16s ease-in-out infinite;
}
.kicker-loop-dots {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 6px; height: 22px;
  animation: sqxDots 16s ease-in-out infinite;
}
.kicker-loop-b {
  position: absolute; left: 0; top: 0;
  animation: sqxWordB 16s ease-in-out infinite;
}
.kicker-loop-full {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px; height: 22px;
  animation: sqxFull 16s ease-in-out infinite;
}
.kicker-loop-dots span,
.kicker-loop-dots-inline span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple-b);
  animation: sqxDotBounce 1.07s ease-in-out infinite;
}
.kicker-loop-dots-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kicker-loop-dots span:nth-child(2), .kicker-loop-dots-inline span:nth-child(2) { animation-delay: 0.15s; }
.kicker-loop-dots span:nth-child(3), .kicker-loop-dots-inline span:nth-child(3) { animation-delay: 0.3s; }

@media (max-width: 900px) {
  .kicker-loop { min-width: 0; }
}

@media (max-width: 480px) {
  /* Decorative only (the same message is in an sr-only paragraph right
     after it) - its nowrap sliding-word animation can't reasonably fit
     a narrow phone screen, so just hide it rather than let it overflow. */
  .kicker-loop { display: none; }
}

.secondary-headline {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.secondary-desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.phones {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.phone {
  width: 220px;
  height: 460px;
  background: var(--bg-card);
  border: 6px solid var(--bg-phone-bezel);
  border-radius: 36px;
  flex: none;
  padding: 0 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.phone-left { margin-right: -24px; z-index: 1; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.phone-center { z-index: 2; align-items: center; text-align: center; gap: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.phone-right { margin-left: -24px; z-index: 1; gap: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }

.phone-notch {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 16px;
  background: #000;
  border-radius: 10px;
  z-index: 2;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px 6px;
  font-size: 10px;
  font-weight: 600;
  width: 100%;
}
.phone-status-icons { display: flex; align-items: center; gap: 3px; }

.phone-route { font-size: 14px; font-weight: 700; }
.phone-dates { font-size: 11px; color: var(--text-muted); }
.phone-overlap { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }
.phone-overlap span { color: var(--purple-b); font-weight: 600; }

.phone-crew-list { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.phone-crew-row { display: flex; align-items: center; gap: 8px; }
.phone-crew-info { flex: 1; }
.phone-crew-name { font-size: 11.5px; font-weight: 600; }
.phone-crew-role { font-size: 9.5px; color: var(--text-muted); }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 11px;
}
.avatar-purple { background: var(--gradient-purple); color: #fff; }
.avatar-coral { background: linear-gradient(135deg, var(--coral-shade), var(--coral)); color: var(--on-coral); }
.avatar-lilac { background: linear-gradient(135deg, var(--purple-shade-1), var(--purple-tint-1)); color: #241733; }
.avatar-large { width: 64px; height: 64px; font-size: 24px; margin-top: 8px; }

.phone-pill {
  font-size: 9.5px;
  color: var(--purple-b);
  background: rgba(183, 132, 255, 0.12);
  padding: 3px 7px;
  border-radius: 100px;
}
.phone-pill-center { font-size: 10px; padding: 5px 10px; margin-top: 4px; }

.phone-cta {
  margin-top: auto;
  text-align: center;
  background: var(--gradient-purple);
  color: var(--bg-card);
  font-weight: 700;
  font-size: 12px;
  padding: 10px;
  border-radius: 100px;
  width: 100%;
}
.phone-home-indicator {
  width: 100px; height: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.35);
  margin: 6px auto 0;
}

.phone-profile-name { font-size: 15px; font-weight: 700; }
.phone-profile-role { font-size: 10.5px; color: var(--text-muted); }
.phone-looking-label { font-size: 10px; color: var(--text-muted); margin-top: 8px; align-self: flex-start; }
.phone-toggles { display: flex; gap: 6px; width: 100%; }
.phone-toggle {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 9.5px;
  padding: 6px 0;
  text-align: center;
}
.phone-btn-outline {
  width: 100%;
  border: 1px solid var(--border-stronger);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12px;
  padding: 9px;
  border-radius: 100px;
  text-align: center;
}

.phone-map { position: relative; height: 150px; border-radius: 14px; overflow: hidden; }
.phone-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.phone-map-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.phone-layover-list { display: flex; flex-direction: column; gap: 8px; }
.phone-layover-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.phone-layover-code { font-weight: 600; }
.phone-layover-dates { color: var(--text-muted); font-size: 10px; }

.phone-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border-default);
}
.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  color: var(--text-muted);
}
.phone-tab span { font-size: 7.5px; }
.phone-tab-active { color: var(--purple-b); }
.phone-tab-active span { font-weight: 600; }

@media (max-width: 900px) {
  .phones { display: none; }
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--border-default);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 260px; }
.footer-tagline { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }

.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--text-primary); }

.footer-social { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.social-icons { display: flex; gap: 14px; }
.social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-copyright { font-size: 13px; color: var(--text-muted); }

@media (max-width: 900px) {
  .footer-inner { flex-direction: column; }
  .footer-social { align-items: flex-start; }
}
