:root {
  --bg: #192126;
  --bg-deep: #12171b;
  --panel: #384046;
  --panel-soft: rgba(56, 64, 70, 0.55);
  --accent: #bbf246;
  --accent-dim: rgba(187, 242, 70, 0.18);
  --muted: #8b8f92;
  --muted-dark: #5e6468;
  --text: #f4f6f7;
  --white: #ffffff;
  --radius-lg: 2rem;
  --nav-blur: blur(14px);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-brand: "Sora", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 80% 10%, rgba(187, 242, 70, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(56, 64, 70, 0.5), transparent 50%),
    var(--bg);
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Brand scrolls away; nav stays fixed at top (no header background) */
.site-header {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  padding: 1rem 0 0.5rem;
  background: transparent;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: start;
  z-index: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  line-height: 1.15;
  display: inline-flex;
  align-items: baseline;
}

.brand-name .brand-num {
  display: inline-block;
  transform: none;
  position: relative;
  top: 0;
  font-variant-numeric: lining-nums;
  vertical-align: baseline;
}

.nav-slot {
  grid-column: 2;
  justify-self: center;
  width: 17rem;
  height: 2.75rem;
  visibility: hidden;
  pointer-events: none;
}

.nav-lock {
  position: fixed !important;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  margin: 0;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
}

.header-spacer {
  grid-column: 3;
}

.nav-pill a {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-pill a:hover,
.nav-pill a.is-active {
  color: var(--bg);
  background: var(--accent);
}

/* Logo liquid fill (bottom → top) */
.logo-liquid {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.logo-liquid .logo-layer {
  position: absolute;
  inset: 0;
  background-color: rgba(244, 246, 247, 0.35);
  -webkit-mask-image: url("/assets/logo.png");
  mask-image: url("/assets/logo.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.logo-liquid .logo-fill {
  background-color: var(--accent);
  clip-path: inset(100% 0 0 0);
  animation: logo-fill-up 1.9s cubic-bezier(0.45, 0.05, 0.25, 1) 0.25s forwards;
}

@keyframes logo-fill-up {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Hero */
.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  max-width: none;
}

.hero-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 1.5rem;
  animation: rise 0.9s 0.12s ease both;
}

.hero-demo picture,
.hero-demo img {
  width: min(300px, 82%);
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.45));
}

.hero-phone-fade {
  position: relative;
  width: min(280px, 78%);
  aspect-ratio: 938 / 2034;
}

.hero-phone-fade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.45));
}

.hero-phone-fade img.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-copy {
  animation: rise 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 1.4rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.bullets {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--text);
  font-weight: 500;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 168px;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge .label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge .label small {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-badge .label strong {
  font-size: 1rem;
  font-weight: 700;
}

.hero-note {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.92rem;
  max-width: 32rem;
}

/* Single phone + screenshot slider (Flashquad-style) */
.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(187, 242, 70, 0.22), transparent 45%),
    linear-gradient(200deg, #2a3339, #151b1f 70%);
  border: 1px solid rgba(187, 242, 70, 0.2);
  overflow: hidden;
  animation: rise 0.9s 0.12s ease both;
}

.hero-phone {
  position: relative;
  width: min(280px, 72%);
  aspect-ratio: 9 / 19.2;
  border-radius: 2rem;
  background: #0b0e10;
  border: 3px solid #2c343a;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 14px;
  border-radius: 999px;
  background: #151a1e;
  z-index: 4;
}

.phone-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18%);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.phone-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.phone-slide.is-exit {
  opacity: 0;
  transform: translateX(-14%);
  z-index: 1;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.slider-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--accent);
  width: 18px;
}

/* Inner pages */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head h1,
.section-head h2,
.page-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.step {
  padding: 1.35rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.step:hover {
  border-color: rgba(187, 242, 70, 0.35);
  transform: translateY(-3px);
}

.step-num {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

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

.mission-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(56, 64, 70, 0.65), rgba(18, 23, 27, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mission-panel h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.mission-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.mission-panel p:last-child {
  margin-bottom: 0;
}

.mission-aside {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--accent-dim);
  border: 1px solid rgba(187, 242, 70, 0.25);
  align-self: start;
}

.mission-aside strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-family: var(--font-display);
}

.mission-aside p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

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

.blog-card {
  min-height: 180px;
  padding: 1.35rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(139, 143, 146, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-card span {
  color: var(--muted-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card h3 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--muted);
}

.page-main {
  padding: 2.5rem 0 4rem;
}

/* Footer — one centered line */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-deep);
}

.footer-line {
  width: 100%;
  box-sizing: border-box;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  white-space: nowrap;
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  color: var(--muted-dark);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.footer-line::-webkit-scrollbar {
  display: none;
}

.footer-line .socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.footer-line .socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-line .socials a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.footer-line .socials svg {
  width: 15px;
  height: 15px;
}

.footer-line .footer-email {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  line-height: 1;
}

.footer-line .footer-email:hover {
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  line-height: 1;
}

.footer-meta span,
.footer-meta a {
  flex-shrink: 0;
}

.footer-meta a {
  color: var(--muted-dark);
  transition: color 0.2s ease;
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-meta a + a::before,
.footer-meta span + a::before {
  content: "·";
  margin-right: 0.65rem;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.legal {
  padding: 3rem 0 5rem;
  max-width: 44rem;
}

.legal h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.legal h2 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

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

.legal .meta {
  color: var(--muted-dark);
  margin-bottom: 1.5rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .mission-panel,
  .steps,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-demo {
    min-height: 420px;
    order: -1;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-spacer {
    display: none;
  }

  .nav-slot {
    justify-self: end;
    width: 15rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand {
    justify-self: center;
  }

  .nav-slot {
    width: 100%;
    max-width: 18rem;
    justify-self: center;
  }

  .logo-liquid {
    width: 56px;
    height: 56px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .phone-stage {
    min-height: 420px;
  }

  .hero-phone {
    width: min(240px, 78%);
  }

  .footer-line {
    font-size: 0.78rem;
    gap: 0.7rem;
  }

  .footer-line .socials a {
    width: 30px;
    height: 30px;
  }
}
