/* ============================================================
   NoteStream landing page — "paper & ink"
   Warm-gray paper, black ink, real app screenshots. The only
   color on the page comes from the product itself.
   ============================================================ */

:root {
  --paper: #faf9f7;
  --paper-2: #f3f2ee;
  --card: #ffffff;
  --ink: #17191d;
  --ink-2: #555a63;
  --ink-3: #8a8e96;
  --line: #e7e5e0;
  --line-strong: #d6d3cc;
  --radius: 16px;
  --container: 1120px;
  --shadow-card:
    0 1px 2px rgba(23, 25, 29, 0.04),
    0 12px 32px -18px rgba(23, 25, 29, 0.14);
  --shadow-card-hover:
    0 2px 4px rgba(23, 25, 29, 0.05),
    0 20px 44px -20px rgba(23, 25, 29, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Instrument Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: rgba(23, 25, 29, 0.14);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

img {
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.serif-accent {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Inter Display (Inter at its large optical size) for all headings */
.hero-title,
.section-head h2,
.card h3,
.platform h3 {
  font-family:
    "Inter",
    "Instrument Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-variation-settings: "opsz" 32;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------
   Backdrop: paper washes + ruled notebook lines + grain
   ------------------------------------------------------------ */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
}

.wash-a {
  width: 720px;
  height: 720px;
  top: -300px;
  left: 6%;
  background: radial-gradient(closest-side, rgba(23, 25, 29, 0.05), transparent 70%);
}

.wash-b {
  width: 560px;
  height: 560px;
  top: -160px;
  right: 2%;
  background: radial-gradient(closest-side, rgba(120, 110, 90, 0.07), transparent 70%);
}

.wash-c {
  width: 760px;
  height: 760px;
  top: 48%;
  left: 30%;
  background: radial-gradient(closest-side, rgba(23, 25, 29, 0.04), transparent 70%);
}

.rules {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 35px,
    rgba(23, 25, 29, 0.05) 35px,
    rgba(23, 25, 29, 0.05) 36px
  );
  -webkit-mask-image: radial-gradient(ellipse 85% 52% at 50% 0%, #000 12%, transparent 70%);
  mask-image: radial-gradient(ellipse 85% 52% at 50% 0%, #000 12%, transparent 70%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: 12px;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s,
    background-color 0.25s,
    border-color 0.25s,
    filter 0.25s;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2a2d33, #131418);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px -10px rgba(23, 25, 29, 0.55);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #32363d, #17181c);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 30px -10px rgba(23, 25, 29, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(23, 25, 29, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(23, 25, 29, 0.4);
  background: #f6f5f2;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15.5px;
}

.btn-lg svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  transition:
    background-color 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}

.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line-strong);
  box-shadow: 0 12px 36px -16px rgba(23, 25, 29, 0.22);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav-brand img {
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition:
    color 0.2s,
    background-color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(23, 25, 29, 0.05);
}

.nav-cta {
  margin-left: auto;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  padding: 168px 0 0;
  text-align: center;
}

.hero-title {
  margin: 0 auto;
  font-size: clamp(2.7rem, 6.5vw, 4.7rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-title .serif-accent {
  font-size: 1.22em;
  line-height: 0.94;
}

.hero-sub {
  max-width: 800px;
  margin: 22px auto 0;
  font-size: clamp(1.02rem, 1.6vw, 1.17rem);
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   Hero fold: desktop screenshot + phone mockup + live cursors
   ------------------------------------------------------------ */

.hero-app {
  position: relative;
  max-width: 1020px;
  margin: 72px auto 0;
  perspective: 1400px;
}

.app-glow {
  position: absolute;
  inset: 14% -2% -6%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(23, 25, 29, 0.14), transparent 70%);
  filter: blur(44px);
  z-index: -1;
}

.hero-shots {
  position: relative;
  container-type: inline-size;
}

.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(23, 25, 29, 0.05),
    0 28px 70px -28px rgba(23, 25, 29, 0.32),
    0 60px 130px -44px rgba(23, 25, 29, 0.22);
  overflow: hidden;
  transform: rotateX(4deg);
  transform-origin: 50% 0;
}

.frame img {
  width: 100%;
  height: auto;
}

.phone {
  position: absolute;
  right: -18px;
  bottom: -34px;
  width: clamp(140px, 19%, 196px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgba(23, 25, 29, 0.06),
    0 30px 60px -18px rgba(23, 25, 29, 0.4);
  overflow: hidden;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: auto;
}

/* floating action buttons, mirroring the native iOS app chrome */
.fab {
  position: absolute;
  bottom: 4%;
  width: 17%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #131418;
  box-shadow: 0 5px 14px rgba(23, 25, 29, 0.35);
}

.fab svg {
  width: 48%;
  height: 48%;
  color: #fff;
}

.fab-compose {
  right: 7%;
}

.fab-mic {
  right: 28%;
}

/* live collaboration cursors — scaled to the screenshot via container
   query units so they track the app's own text size at any width */
.live-cursor {
  position: absolute;
  font-family: "Inter", "Instrument Sans", system-ui, sans-serif;
  font-size: clamp(5px, 1.111cqw, 16px);
  line-height: 1.5;
  color: #1f2228;
  white-space: nowrap;
  pointer-events: none;
}

.cursor-maya {
  left: 32.42%;
  top: 80.4%;
}

.cursor-leo {
  left: 46.1%;
  top: 53%;
}

.lc-pin {
  position: relative;
  display: inline-block;
  height: 1.15em;
  vertical-align: baseline;
}

.lc-caret {
  display: inline-block;
  width: max(1.5px, 0.12em);
  height: 1.15em;
  border-radius: 1px;
  background: #0891b2;
  vertical-align: baseline;
  animation: caret-blink 1.15s steps(1) infinite;
}

.cursor-leo .lc-caret {
  background: #7c3aed;
  animation-delay: 0.45s;
}

.lc-flag {
  position: absolute;
  bottom: calc(100% + 0.3em);
  left: 0;
  padding: 0.15em 0.6em;
  border-radius: 0.5em 0.5em 0.5em 0.15em;
  background: #0891b2;
  color: #fff;
  font-size: max(0.85em, 8.5px);
  font-weight: 650;
  font-style: normal;
  line-height: 1.6;
}

.cursor-leo .lc-flag {
  background: #7c3aed;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */

.section {
  padding: clamp(76px, 10vw, 124px) 0 0;
}

.section:last-of-type {
  padding-bottom: clamp(76px, 10vw, 124px);
}

section[id] {
  scroll-margin-top: 92px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 640;
  line-height: 1.14;
  text-wrap: balance;
}

.section-head p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.06rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ------------------------------------------------------------
   Bento features
   ------------------------------------------------------------ */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: span 4;
}

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  border-color: rgba(23, 25, 29, 0.28);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, -20%),
    rgba(23, 25, 29, 0.035),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 1.06rem;
  font-weight: 550;
}

.card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
}

.card-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbf9;
  overflow: hidden;
}

/* sync visual: two real screens with packets travelling between */
.visual-sync {
  gap: 0;
  padding: 18px 26px 0;
  align-items: flex-end;
}

.mini-frame {
  flex: none;
  width: 54%;
  align-self: flex-end;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: var(--card);
  box-shadow: 0 -4px 18px -8px rgba(23, 25, 29, 0.14);
  overflow: hidden;
}

.mini-bar {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: #fcfbf8;
}

.mini-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mini-frame img {
  width: 100%;
  height: auto;
}

.mini-phone {
  flex: none;
  width: 17%;
  align-self: flex-end;
  border: 1.5px solid var(--line-strong);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: var(--card);
  box-shadow: 0 -4px 18px -8px rgba(23, 25, 29, 0.14);
  overflow: hidden;
}

.mini-phone img {
  width: 100%;
  height: auto;
}

.sync-track {
  position: relative;
  flex: 1;
  height: 2px;
  margin: 0 16px 64px;
  background: rgba(23, 25, 29, 0.12);
}

.sync-packet {
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 8px rgba(23, 25, 29, 0.35);
  animation: packet 2.8s linear infinite;
}

.sync-packet.delay {
  background: var(--ink-3);
  box-shadow: 0 0 8px rgba(138, 142, 150, 0.45);
  animation: packet-back 2.8s linear infinite;
  animation-delay: 1.4s;
}

@keyframes packet {
  0% {
    left: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}

@keyframes packet-back {
  0% {
    left: calc(100% - 7px);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 0;
    opacity: 0;
  }
}

/* offline visual */
.shield {
  width: 52px;
  height: 52px;
  color: var(--ink-2);
}

.shield-ring {
  position: absolute;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(23, 25, 29, 0.22);
  border-radius: 50%;
  animation: ring-pulse 2.8s ease-out infinite;
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.86);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* real screenshot visuals */
.visual-shot-cover {
  display: block;
  padding: 0;
}

.visual-shot-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.visual-note {
  display: block;
  padding: 18px 0 18px 26px;
  background: #fff;
}

.visual-note img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* smaller note rendering: pin the image scale so its text matches the
   ~13px type in the neighbouring illustration cards */
.visual-note-sm {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.visual-note-sm img {
  width: auto;
  height: 74px;
  max-width: none;
  object-fit: unset;
}

.visual-shot-contain {
  padding: 14px;
}

.visual-shot-contain img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.visual-shot-contain.shadowed img {
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(23, 25, 29, 0.08),
    0 14px 30px -14px rgba(23, 25, 29, 0.25);
}

/* live collaboration visual: a mini note with two collaborators in it */
.visual-collab {
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 36px 26px 18px;
}

.collab-line {
  position: relative;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.collab-line.dim {
  color: var(--ink-3);
}

.collab-sel {
  background: rgba(8, 145, 178, 0.16);
  border-radius: 3px;
  padding: 1px 2px;
  margin-right: -2px;
}

.lc-pin.violet .lc-caret {
  background: #7c3aed;
  animation-delay: 0.45s;
}

.lc-pin.violet .lc-flag {
  background: #7c3aed;
}

/* in the collab card, Leo's flag hangs below his caret so it doesn't
   cover Maya's selection on the line above */
.visual-collab .lc-pin.violet .lc-flag {
  bottom: auto;
  top: calc(100% + 0.25em);
  border-radius: 0.15em 0.5em 0.5em 0.5em;
}

/* AI visual */
.visual-ai {
  flex-direction: column;
  gap: 9px;
  padding: 18px;
}

.ai-line {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ai-line.dim {
  color: var(--ink-3);
}

.ai-line.bright {
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--ink);
}

.ai-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
}

/* voice capture visual */
.visual-voice {
  gap: 18px;
}

.voice-mic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #131418;
  box-shadow: 0 6px 16px rgba(23, 25, 29, 0.3);
}

.voice-mic svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.voice-bars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-bars i {
  width: 3.5px;
  border-radius: 2px;
  background: #a7abb3;
  animation: voice-bounce 1.15s ease-in-out infinite;
}

.voice-bars i:nth-child(1) {
  height: 10px;
}

.voice-bars i:nth-child(2) {
  height: 20px;
  animation-delay: 0.12s;
}

.voice-bars i:nth-child(3) {
  height: 30px;
  animation-delay: 0.24s;
  background: #555a63;
}

.voice-bars i:nth-child(4) {
  height: 16px;
  animation-delay: 0.36s;
}

.voice-bars i:nth-child(5) {
  height: 26px;
  animation-delay: 0.48s;
  background: #555a63;
}

.voice-bars i:nth-child(6) {
  height: 14px;
  animation-delay: 0.6s;
}

.voice-bars i:nth-child(7) {
  height: 22px;
  animation-delay: 0.72s;
}

@keyframes voice-bounce {
  0%,
  100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1.15);
  }
}

/* Siri visual */
.visual-siri {
  flex-direction: column;
  gap: 11px;
  padding: 18px;
}

.siri-bubble {
  max-width: 100%;
  padding: 9px 15px;
  border-radius: 15px 15px 15px 4px;
  background: #1f2126;
  color: #f2f3f5;
  font-size: 12.5px;
  line-height: 1.45;
}

.siri-toast {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(23, 25, 29, 0.08);
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-2);
}

.siri-toast svg {
  width: 13px;
  height: 13px;
  color: var(--ink);
}

/* relations visual */
.visual-relations {
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 22px 24px;
}

.rel-line {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rel-chip {
  font-weight: 650;
  color: #15803d;
  background: rgba(22, 163, 74, 0.09);
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 6px;
  padding: 1px 6px;
}

.rel-menu {
  display: flex;
  flex-direction: column;
  margin-left: 36%;
  min-width: 130px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 10px 26px -10px rgba(23, 25, 29, 0.25);
  overflow: hidden;
}

.rel-menu span {
  padding: 7px 13px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.rel-menu span.active {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 550;
}

/* folders visual */
.visual-folders {
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px 0 20px 26%;
}

.ftree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.ftree svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

.ftree.lvl-2 {
  margin-left: 20px;
}

.ftree.lvl-3 {
  margin-left: 40px;
}

/* ------------------------------------------------------------
   Platforms
   ------------------------------------------------------------ */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform:hover {
  border-color: rgba(23, 25, 29, 0.28);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.platform::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, -20%),
    rgba(23, 25, 29, 0.035),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.platform:hover::after {
  opacity: 1;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--paper-2);
}

.platform-icon svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.platform h3 {
  margin: 18px 0 7px;
  font-size: 1.1rem;
  font-weight: 550;
}

.platform p {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
}

.platform-cta {
  margin-top: 18px;
}

.platform:hover .platform-cta svg {
  transform: translateX(3px);
}

/* desktop download links */
.dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.dl-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.2s;
}

.dl-link:hover {
  border-color: rgba(23, 25, 29, 0.45);
  background: var(--paper-2);
  transform: translateY(-1px);
}

.dl-link svg {
  width: 14px;
  height: 14px;
}

.dl-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}

/* App Store badge */
.appstore-badge {
  display: inline-block;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.appstore-badge:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.appstore-badge svg {
  display: block;
  height: 44px;
  width: auto;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-left: auto;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.bento .reveal:nth-child(2),
.platforms .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.bento .reveal:nth-child(3),
.platforms .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.bento .reveal:nth-child(4) {
  transition-delay: 0.08s;
}

.bento .reveal:nth-child(5) {
  transition-delay: 0.16s;
}

.bento .reveal:nth-child(6),
.bento .reveal:nth-child(9) {
  transition-delay: 0.08s;
}

.bento .reveal:nth-child(7),
.bento .reveal:nth-child(10) {
  transition-delay: 0.16s;
}

.bento .reveal:nth-child(8),
.bento .reveal:nth-child(11) {
  transition-delay: 0s;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 920px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .span-2,
  .span-4 {
    grid-column: span 2;
  }

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

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

  .hero {
    padding-top: 138px;
  }

  .hero-actions .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .frame {
    transform: none;
  }

  .phone {
    right: 0;
    bottom: -22px;
    width: 106px;
    border-radius: 10px;
  }

  .visual-sync {
    padding: 18px 16px 0;
  }

  .sync-track {
    margin: 0 10px 56px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    margin-left: 0;
  }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

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

  .sync-packet,
  .shield-ring,
  .lc-caret,
  .voice-bars i {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .frame {
    transform: none;
  }

  .btn,
  .card,
  .platform {
    transition: none;
  }
}
