html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;600;700&display=swap');

:root {
  --ink: #0f172a;
  --muted-ink: #475569;
  --bg: #f6f6fb;
  --card: #0f172a;
  --surface: #ffffff;
  --accent: #4f46e5;
  --accent-2: #22d3ee;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

body {
  font-family: 'Space Grotesk', 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.08), transparent 30%),
              radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.08), transparent 32%),
              var(--bg);
}

a {
  text-decoration: none;
}

body.landing header .navbar {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.05);
  margin-bottom: 28px;
  padding-right: 12px;
}

body.landing .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

body.landing main {
  padding: 0;
  margin: 0 auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
  padding: 40px 0 12px;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 10px;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-ink);
  margin-bottom: 18px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: flex-start;
}

.btn.primary,
.btn.ghost {
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #4338ca, #6366f1, #22d3ee);
  color: #fff;
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.28);
}

.btn.ghost {
  background: rgba(79, 70, 229, 0.08);
  color: var(--ink);
  border-color: rgba(79, 70, 229, 0.24);
}

.btn.primary:hover,
.btn.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.btn.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.with-icon .icon svg {
  display: block;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0d0d0f;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 56px;
  border: 1px solid #000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.store-badge .icon svg {
  display: block;
}

.store-badge .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge .store-text .small {
  font-size: 11px;
  opacity: 0.78;
  font-weight: 500;
}

.store-badge .store-text .large {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  background: #050505;
}

.text-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 52px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  opacity: 0.4;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.25));
  border-radius: 12px;
}

.logo-lockup .eyebrow {
  margin: 0;
}

.pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.cta-card {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
}

.cta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cta-badge {
  background: linear-gradient(120deg, #22d3ee, #6366f1);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.cta-note {
  margin: 0;
  color: var(--muted-ink);
  font-weight: 600;
}

.pill-strip span {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  font-weight: 600;
  color: var(--muted-ink);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.12), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.12), transparent 42%),
              rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  margin-bottom: 16px;
}

.hero-screens {
  width: 100%;
  max-width: 520px;
  padding: 6px 6px 12px;
}

.hero-screen-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-screen-track::-webkit-scrollbar {
  display: none;
}

.hero-screen {
  flex: 0 0 200px;
  width: 200px;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
  background: transparent;
}

.hero-screen:nth-child(odd) {
  transform: rotate(-2.5deg);
}

.hero-screen:nth-child(even) {
  transform: rotate(2.5deg);
}

.landing-section {
  padding: 44px 0;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 8px;
}

.section-head .subhead {
  color: var(--muted-ink);
  max-width: 760px;
}

.feature-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.08);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-card h3 {
  margin: 0 0 6px;
}

.feature-card p {
  color: var(--muted-ink);
  margin: 0;
}

.landing-section.contrast {
  background: linear-gradient(135deg, #0f172a, #0b1222);
  border-radius: 20px;
  padding: 42px;
  color: #e2e8f0;
  box-shadow: var(--shadow);
}

.landing-section.contrast h2 {
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: 14px;
}

.step-num {
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.step h3 {
  margin: 0 0 6px;
  color: #fff;
}

.step p {
  margin: 0;
  color: #cbd5f5;
}

.landing-section.download .download-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: center;
}

.stat-stack {
  display: grid;
  gap: 10px;
}

.stat {
  background: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: 12px;
  padding: 12px;
}

.stat .label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-ink);
  margin: 0 0 6px;
}

.stat .value {
  margin: 0;
  font-weight: 700;
  font-size: 22px;
}

@media (min-width: 960px) {
  .hero-screen-track {
    overflow: visible;
    justify-content: center;
    gap: 0;
    padding: 0;
    position: relative;
    min-height: 360px;
  }

  .hero-screen {
    position: absolute;
    width: 240px;
    flex: 0 0 auto;
    scroll-snap-align: unset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .hero-screen:nth-child(1) {
    transform: translateX(-150px) rotate(-10deg);
    z-index: 1;
  }

  .hero-screen:nth-child(2) {
    transform: translateX(0) scale(1.06);
    z-index: 3;
  }

  .hero-screen:nth-child(3) {
    transform: translateX(150px) rotate(10deg);
    z-index: 2;
  }

  .hero-screen:nth-child(n+4) {
    display: none;
  }

  .hero-screen:hover {
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.26);
  }
}

.app-preview .section-head {
  margin-bottom: 12px;
}

.app-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 4px;
  scroll-snap-type: x mandatory;
}

.app-gallery img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
}

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

  .landing-section.download .download-card {
    grid-template-columns: 1fr;
  }
}

/* Mobile-first tightening */
@media (max-width: 768px) {
  body.landing .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding: 24px 0 8px;
    text-align: center;
  }

  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
    overflow: visible;
    padding-bottom: 32px;
  }

  .hero-screens {
    max-width: 360px;
    padding: 4px;
    min-height: 420px;
  }

  .hero-screen-track {
    gap: 0;
    overflow: visible;
    justify-content: center;
    padding: 0;
    position: relative;
    min-height: 420px;
  }

  .hero-screen {
    position: absolute;
    width: 64vw;
    max-width: 240px;
    flex: 0 0 auto;
    scroll-snap-align: unset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  }

  .hero-screen:nth-child(1) {
    transform: translateX(-24vw) translateY(6px) rotate(-8deg) scale(0.96);
    z-index: 1;
  }

  .hero-screen:nth-child(2) {
    transform: translateX(0) translateY(-4px) scale(1.02);
    z-index: 3;
  }

  .hero-screen:nth-child(3) {
    transform: translateX(24vw) translateY(6px) rotate(8deg) scale(0.96);
    z-index: 2;
  }

  .hero-screen:nth-child(n+4) {
    display: none;
  }

  .cta-group {
    flex-direction: row;
    justify-content: center;
  }

  .cta-group .store-badge {
    flex: 1 1 48%;
    min-width: 150px;
    justify-content: center;
  }

  .cta-group .btn,
  .cta-group .text-link {
    width: 100%;
    justify-content: center;
  }

  .pill-strip {
    justify-content: center;
  }

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

  .landing-section.contrast {
    padding: 28px 20px;
  }

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

  .landing-section.download .download-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .app-gallery {
    grid-auto-columns: minmax(180px, 72vw);
  }
}
