/* Spentd landing — ink + gold, product marketing */

:root {
  --bg: #0a0b0d;
  --bg-elev: #12141a;
  --card: #161a22;
  --border: rgba(244, 240, 232, 0.08);
  --border-strong: rgba(244, 240, 232, 0.16);
  --text: #f4f0e8;
  --text-2: rgba(244, 240, 232, 0.68);
  --text-3: rgba(244, 240, 232, 0.42);
  --accent: #c9a46c;
  --accent-soft: rgba(201, 164, 108, 0.14);
  --accent-hot: #e0c08a;
  --teal: #3ddeb0;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --shell: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-phone: 1.85rem;
  --phone-w: min(280px, 72vw);
  /* Entrance curve: fast start, long quiet settle, no overshoot. */
  --ease-spawn: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      1000px 480px at 15% -12%,
      rgba(201, 164, 108, 0.08),
      transparent 55%
    ),
    radial-gradient(
      800px 400px at 95% 5%,
      rgba(61, 222, 176, 0.05),
      transparent 50%
    ),
    radial-gradient(
      600px 300px at 50% 100%,
      rgba(90, 100, 140, 0.05),
      transparent 55%
    );
  z-index: -1;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hot);
}

strong {
  color: var(--text);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--text);
}

/* —— layout shell —— */

.shell {
  width: min(100%, var(--shell));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* —— header —— */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--gutter);
  background: rgba(10, 11, 13, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.brand-icon {
  display: block;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.15rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-3);
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-hot);
  color: var(--bg) !important;
}

.btn.top-cta-mobile {
  display: none;
}

/* —— type helpers —— */

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2,
.privacy-copy h2,
.cta-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.quiet {
  color: var(--text-3);
  font-size: 0.95rem;
}

/* —— buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  color: var(--bg);
  background: var(--accent-hot);
  border-color: var(--accent-hot);
}

.btn-ghost {
  color: var(--text-2);
  background: transparent;
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(201, 164, 108, 0.35);
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.hero-actions.center {
  justify-content: center;
}

/* —— phone mockup —— */

.phone {
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-phone);
  border: 3px solid #2a2e38;
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

/* No notch / dynamic island — screenshots already include the device status bar */

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

.phone-sm {
  --phone-w: min(240px, 42vw);
}

/* —— hero —— */

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.lede {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 34rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(22, 26, 34, 0.6);
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding: 1rem 0 0;
}

.hero-phones .phone-back {
  position: absolute;
  width: min(240px, 55vw);
  transform: translate(-38%, -4%) rotate(-8deg);
  opacity: 0.88;
  z-index: 1;
}

.hero-phones .phone-front {
  position: relative;
  z-index: 2;
  width: min(280px, 68vw);
  transform: translateX(12%) rotate(3deg);
}

/* —— trust strip —— */

.trust {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(18, 20, 26, 0.45);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}

/* —— features —— */

.features {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--border);
}

.feature-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0 0 1.15rem;
  color: var(--text-2);
  max-width: 32rem;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--accent);
  opacity: 0.9;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.feature-media-pair {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  padding: 1rem 0 0;
}

.feature-media-pair .phone:first-child {
  position: absolute;
  width: min(220px, 50vw);
  transform: translate(-36%, -4%) rotate(-8deg);
  opacity: 0.9;
  z-index: 1;
}

.feature-media-pair .phone:last-child {
  position: relative;
  z-index: 2;
  width: min(250px, 58vw);
  transform: translateX(14%) rotate(3deg);
}

/* —— how it works —— */

.how {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(18, 20, 26, 0.65) 20%,
    rgba(18, 20, 26, 0.65) 80%,
    transparent
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps-grid li {
  padding: 1.4rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.step-num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.steps-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps-grid p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* —— privacy —— */

.privacy {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.privacy-copy p {
  margin: 1rem 0 1.25rem;
  color: var(--text-2);
  max-width: 34rem;
}

.privacy-media {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 380px;
  padding-bottom: 1rem;
}

.privacy-media .phone {
  width: min(250px, 58vw);
  z-index: 2;
}

.privacy-media .phone-offset {
  position: absolute;
  width: min(210px, 48vw);
  right: max(0px, calc(50% - 200px));
  top: 12%;
  transform: rotate(6deg) translateX(40%);
  z-index: 1;
  opacity: 0.92;
}

/* —— limits —— */

.limits {
  padding: 0 0 clamp(2rem, 5vw, 3rem);
}

.limits-inner {
  padding: 1.75rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.limits-inner h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 550;
}

.limits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.limits-grid li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.limits-grid li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* —— CTA band —— */

.cta {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-inner {
  text-align: center;
  padding: clamp(2.25rem, 5vw, 3.25rem) var(--gutter);
  background:
    radial-gradient(
      500px 200px at 50% 0%,
      rgba(201, 164, 108, 0.12),
      transparent 70%
    ),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.cta-icon {
  display: block;
  margin: 0 auto 1.1rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cta-inner p {
  margin: 0.85rem auto 0;
  color: var(--text-2);
  max-width: 32rem;
}

.cta-note {
  margin-top: 1.35rem !important;
}

/* —— footer —— */

.foot {
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-3);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.foot-brand p {
  margin: 0.65rem 0 0;
  color: var(--text-3);
  max-width: 22rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
}

.foot-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.88rem;
}

.foot-links a:hover {
  color: var(--accent);
}

.foot-tagline {
  margin: 0;
}

/* —— responsive —— */

@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

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

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem 3rem;
  }

  .hero-phones {
    min-height: 520px;
  }

  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    padding: 3.25rem 0;
  }

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

  .feature-row.reverse .feature-media {
    order: 1;
  }

  .feature-media {
    justify-content: flex-end;
  }

  .feature-row.reverse .feature-media {
    justify-content: flex-start;
  }

  .privacy-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

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

  .btn.top-cta-mobile {
    display: inline-flex;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-phones .phone-back {
    display: none;
  }

  .hero-phones .phone-front {
    transform: none;
  }

  .privacy-media .phone-offset {
    display: none;
  }

  .feature-media-pair .phone:first-child {
    display: none;
  }

  .feature-media-pair .phone:last-child {
    transform: none;
  }

  .trust-row .dot {
    display: none;
  }

  .trust-row {
    gap: 0.65rem 1.1rem;
  }
}

/* —— blur spawn / scroll reveal (from srinesh-profile) —— */
/* Content resolves from soft + offset to sharp + settled.
   Gated on prefers-reduced-motion: no-preference. Scroll reveals
   additionally need .js so content stays visible without JS. */

@media (prefers-reduced-motion: no-preference) {
  @keyframes spawn-in {
    from {
      opacity: 0;
      filter: blur(10px);
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: none;
    }
  }

  /* Hero: pure CSS, plays at first paint. `backwards` holds the
     blurred state during delay, then hands styles back. */
  .spawn {
    animation: spawn-in var(--spawn-duration, 700ms) var(--ease-spawn)
      var(--spawn-delay, 0ms) backwards;
  }

  .js .reveal {
    opacity: 0;
    filter: blur(var(--reveal-blur, 10px));
    transform: translateY(var(--reveal-y, 14px)) scale(var(--reveal-scale, 1));
    transition:
      opacity var(--reveal-duration, 620ms) var(--ease-spawn),
      filter var(--reveal-duration, 620ms) var(--ease-spawn),
      transform var(--reveal-duration, 620ms) var(--ease-spawn);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js .reveal[data-reveal="card"] {
    --reveal-blur: 8px;
    --reveal-y: 18px;
    --reveal-scale: 0.985;
    --reveal-duration: 640ms;
  }

  /* Screenshots: light blur so large phone frames stay smooth. */
  .js .reveal[data-reveal="media"] {
    --reveal-blur: 4px;
    --reveal-y: 12px;
    --reveal-duration: 640ms;
  }

  .js .reveal[data-in="true"] {
    opacity: 1;
    filter: blur(0);
    transform: none;
    will-change: opacity, filter, transform;
  }

  .js .reveal[data-settled="true"] {
    filter: none;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .hero-phones .phone-back,
  .hero-phones .phone-front,
  .privacy-media .phone-offset,
  .feature-media-pair .phone:first-child,
  .feature-media-pair .phone:last-child {
    transform: none;
  }
}
