/* Flaky landing page — global styles */
:root {
  --navy: rgb(25, 54, 84);
  --navy-deep: rgb(15, 34, 54);
  --amber: rgb(232, 164, 72);
  --tomato: rgb(210, 69, 64);
  --pink: rgb(234, 188, 187);
  --powder: rgb(173, 199, 212);
  --offwhite: rgb(247, 247, 247);
  --cream: #faf6ef;
  --paper: #f4ede0;
  --ink: rgb(31, 31, 31);
  --gray: rgb(132, 134, 136);
  --border: rgba(60, 60, 67, 0.18);

  --accent: var(--tomato);
  --bg: var(--cream);
  --fg: var(--ink);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.footer-link { transition: opacity 0.15s ease, color 0.15s ease; }
.footer-link:hover { opacity: 1 !important; color: var(--amber); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--navy);
  text-wrap: balance;
}

.color-strip {
  display: flex;
  height: 6px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
}
.color-strip > span { display: block; height: 100%; }
.color-strip .s1 { flex: 1; background: var(--tomato); }
.color-strip .s2 { flex: 1; background: var(--pink); }
.color-strip .s3 { flex: 2; background: var(--amber); }
.color-strip .s4 { flex: 1; background: rgba(25,54,84,0.5); }
.color-strip .s5 { flex: 3; background: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(25,54,84,0.55); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid rgba(25,54,84,0.25); }
.btn-ghost:hover { background: rgba(25,54,84,0.06); }

/* Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  transition: transform 150ms ease, box-shadow 150ms ease;
  min-width: 175px;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(25,54,84,0.5); }
.store-badge .store-icon { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .store-text .small { font-size: 10px; opacity: 0.75; letter-spacing: 0.06em; text-transform: uppercase; }
.store-badge .store-text .large { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* Section spacing */
.section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 80px 0; } }

/* Cat herd background (very subtle) */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(25,54,84,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* Sticky nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 22px;
  color: var(--navy); letter-spacing: -0.02em;
}
.nav-logo img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink); opacity: 0.75; }
.nav-links a:hover { opacity: 1; }
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: stretch; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: transparent; border: 0; cursor: pointer;
}
.nav-burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { position: relative; justify-content: flex-start; }
  .nav-burger { display: flex; order: -1; }
  .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-mobile.open {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 20px 20px;
    border-top: 1px solid var(--border);
  }
  .nav-mobile a { padding: 11px 0; font-size: 16px; font-weight: 500; color: var(--ink); }
}

/* iPhone bezel */
.iphone {
  width: 320px;
  height: 660px;
  background: #0e1820;
  border-radius: 48px;
  padding: 11px;
  box-shadow:
    0 60px 80px -40px rgba(15, 34, 54, 0.45),
    0 30px 60px -30px rgba(15, 34, 54, 0.3),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
  position: relative;
}
.iphone-screen {
  width: 100%;
  height: 100%;
  background: var(--offwhite);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}
.iphone .notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #0e1820;
  border-radius: 999px;
  z-index: 5;
}

/* Status bar inside phone */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* Underline link (in-text) */
.tlink { color: var(--tomato); font-weight: 600; }
.tlink:hover { text-decoration: underline; }

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  gap: 56px;
  padding-right: 56px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; border-radius: 4px; }
