:root {
  --color-primary: #2979ff;
  --color-primary-dark: #1459c9;
  --color-text: #172033;
  --color-muted: #667085;
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-border: #dbe4f0;
  --color-success: #198754;
  --color-error: #d92d20;
  --shadow-soft: 0 18px 50px rgba(16, 24, 40, 0.11);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 15% 0%, rgba(41, 121, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 45%, #ffffff 100%);
}

body.home-page {
  position: relative;
  background:
    linear-gradient(135deg, rgba(41, 121, 255, 0.12) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(225deg, rgba(47, 185, 141, 0.1) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #fbfdff 0%, #eef5ff 42%, #ffffff 100%);
}

body.home-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background-image:
    linear-gradient(rgba(41, 121, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 121, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
  pointer-events: none;
}

body.home-page > * {
  position: relative;
  z-index: 1;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 228, 240, 0.75);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

body.home-page .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.06);
}

.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  /* border: 1px solid rgba(255, 255, 255, 0.72); */
  border-radius: 12px;
  background-image: url("/assets/minilogo.png");
  background-size: 470%;
  background-position: 33% 47%;
  /* box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 24px rgba(41, 121, 255, 0.18); */
}

.nav-links,
.drawer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a,
.drawer-links a,
.footer-links a {
  color: var(--color-muted);
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.drawer-links a:hover,
.footer-links a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  background: var(--color-surface);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(10, 20, 35, 0.38);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  width: min(86vw, 340px);
  height: 42vh;
  padding: 28px;
  /* background: var(--color-surface); */
  box-shadow: var(--shadow-soft);
  transform: translateX(105%);
  transition: transform 180ms ease;
  position: relative;
  background: #e6e1e1;       /* Foreground content */
}

.nav-overlay[hidden],
.nav-drawer[hidden] {
  display: none;
}

.nav-drawer.is-open {
  display: block;
  transform: translateX(0);
}

.nav-overlay.is-open {
  display: block;
}

.drawer-links {
  align-items: stretch;
  flex-direction: column;
  gap: 5px;
}

.drawer-links a {
  padding: 6px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 44px;
}

.hero::before {
  position: absolute;
  inset: 10% -18% auto auto;
  width: min(56vw, 680px);
  aspect-ratio: 1;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.16), transparent 68%);
  pointer-events: none;
}

body.home-page .hero::before {
  display: none;
}

.hero-grid,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 52px;
}

.hero-grid {
  position: relative;
  min-height: calc(100vh - 170px);
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(41, 121, 255, 0.22);
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(41, 121, 255, 0.08);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.55;
}

.muted,
.hint {
  color: var(--color-muted);
}

.hero-copy .muted {
  margin: 14px 0 0;
  font-size: 15px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-top: 20px;
}

.app-store-badge {
  display: inline-flex;
  width: clamp(164px, 18vw, 194px);
  transition: transform 160ms ease, filter 160ms ease;
}

.app-store-badge:hover,
.qr-lockup:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.qr-lockup {
  width: 104px;
  padding: 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  transition: transform 160ms ease, filter 160ms ease;
}

.shots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  align-items: end;
  gap: clamp(10px, 1.6vw, 18px);
  max-width: 640px;
  justify-self: end;
  padding: 20px 0 34px;
}

.shot {
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: clamp(18px, 2.4vw, 28px);
  background: #0b1220;
  box-shadow: 0 24px 55px rgba(16, 24, 40, 0.18);
}

body.home-page .shot {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.12)),
    rgba(15, 23, 42, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 26px 70px rgba(41, 121, 255, 0.18),
    0 18px 46px rgba(16, 24, 40, 0.14);
  backdrop-filter: blur(16px);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot:nth-child(2) {
  z-index: 1;
  transform: translateY(28px) scale(1.06);
}

.shot:nth-child(1),
.shot:nth-child(3) {
  opacity: 0.96;
}

.section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 54px;
  padding: 44px 0;
}

.feature-row.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
}

.feature-row.reverse .feature-image {
  order: 2;
}

.feature-image {
  justify-self: center;
  max-height: 640px;
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 24px 32px rgba(16, 24, 40, 0.17));
}

body.home-page .feature-image {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 26px 56px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(18px);
}

.feature-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.feature-copy p,
.card p,
.prose p,
.prose li {
  color: var(--color-muted);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-primary);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--color-primary);
}

.button.primary:hover {
  background: var(--color-primary-dark);
}

.explore {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--color-primary);
  font-weight: 800;
}

.explore a {
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
}

body.home-page .card {
  border-color: rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 48px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(20px);
}

.card h3,
.card h2 {
  margin: 0 0 10px;
}

.card p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.prose {
  width: min(100% - 32px, 860px);
  margin-inline: auto;
}

.page-heading {
  margin-bottom: 28px;
  text-align: center;
}

.page-heading h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.page-heading p {
  margin: 12px auto 0;
  max-width: 680px;
  color: var(--color-muted);
  line-height: 1.7;
}

.prose-card {
  margin-top: 18px;
}

.prose ul {
  margin: 0;
  padding-left: 22px;
}

.faq details {
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq details:first-of-type {
  border-top: 0;
}

.faq summary {
  color: var(--color-text);
  font-weight: 800;
  cursor: pointer;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.reset-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.form-field {
  display: block;
  margin-bottom: 16px;
  text-align: left;
}

.form-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  outline: none;
}

.input:focus {
  border-color: var(--color-primary);
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
}

.form-message.success {
  color: var(--color-success);
}

.form-message.error {
  color: var(--color-error);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.76);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.fade-up {
  animation: fade-up 420ms ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .nav-toggle {
    display: grid;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-grid,
  .two-col,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    max-width: 680px;
  }

  .feature-row.reverse .feature-image {
    order: 0;
  }

  .shots {
    max-width: 560px;
    justify-self: center;
    margin-inline: auto;
    padding-bottom: 22px;
  }

  .shot:nth-child(2) {
    transform: translateY(16px) scale(1.04);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero h1,
  .page-heading h1 {
    font-size: 42px;
    line-height: 1.03;
  }

  .subtitle {
    font-size: 17px;
  }

  .cta-row {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .app-store-badge {
    width: min(58vw, 176px);
  }

  .qr-lockup {
    width: 86px;
    padding: 7px;
  }

  .shots {
    grid-template-columns: 1fr 1fr;
    max-width: 360px;
    gap: 12px;
    padding-top: 6px;
  }

  .shot:nth-child(3) {
    display: none;
  }

  .shot:nth-child(2) {
    transform: translateY(12px) scale(1.03);
  }

  .feature-row {
    padding: 32px 0;
  }

  .feature-image {
    max-height: 560px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}
