/* ==========================================================================
   Notchly — marketing site
   Dark by design: the product is a black notch, so the page is too.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-raised: #0d0d0f;
  --card: #111113;
  --fg: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.09);

  --claude: #d9785a;
  --sky: #4da3ff;
  --indigo: #7861ff;
  --music: #ff5f7e;
  --green: #34c759;

  --spring: cubic-bezier(0.34, 1.32, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: max(16px, 4vw);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow-music { color: var(--music); }
.eyebrow-airdrop { color: var(--sky); }
.eyebrow-claude { color: var(--claude); }
.eyebrow-home { color: #ffc95c; }
.eyebrow-downloads { color: #3ddc97; }

.gradient-text {
  background: linear-gradient(100deg, #ffb37a 0%, var(--claude) 28%, #c86dd7 58%, var(--indigo) 80%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fineprint { font-size: 13px; color: var(--muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: #000;
  font-weight: 600;
  border-radius: 980px;
  transition: transform 0.25s var(--spring), background 0.2s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.04); box-shadow: 0 10px 40px rgba(255, 255, 255, 0.18); }
.btn:active { transform: scale(0.97); }
.btn-small { font-size: 12px; padding: 5px 13px; }
.btn-large { font-size: 17px; padding: 14px 26px; }
.btn-icon { width: 18px; height: 18px; }

.link-arrow {
  color: var(--sky);
  font-size: 17px;
}
.link-arrow:hover { text-decoration: underline; }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.brand-mark {
  width: 20px; height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: 8px; height: 4px;
  transform: translateX(-50%);
  background: currentColor;
  border-radius: 0 0 2px 2px;
}
.nav-links { display: flex; gap: 28px; font-size: 12px; color: rgba(245, 245, 247, 0.8); }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- Entrance + reveal ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes fade-up { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  padding: 120px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-copy { max-width: 820px; will-change: transform, opacity; }
.hero-title {
  font-size: clamp(48px, 9vw, 104px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.35;
  color: var(--muted);
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.hero .fineprint { margin-top: 18px; }

/* ---------- Device mock ---------- */

.device {
  --screen-w: min(980px, 100%);
  width: var(--screen-w);
  margin-top: 64px;
  will-change: transform;
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9.6;
  border-radius: clamp(10px, 2.3vw, 22px) clamp(10px, 2.3vw, 22px) 6px 6px;
  border: clamp(4px, 1.05vw, 10px) solid #1b1b1d;
  border-bottom-width: clamp(6px, 1.45vw, 14px);
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 0 1px #2c2c2e, 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 160px rgba(120, 97, 255, 0.12);
}
.device-base {
  height: clamp(6px, 1.45vw, 14px);
  margin: 0 -6%;
  background: linear-gradient(#3a3a3c, #1c1c1e 60%, #0d0d0f);
  border-radius: 0 0 18px 18px;
  position: relative;
}
.device-base::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 16%; height: 6px;
  transform: translateX(-50%);
  background: #121214;
  border-radius: 0 0 10px 10px;
}

.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 15% 85%, #ff7a59 0%, transparent 60%),
    radial-gradient(55% 70% at 85% 80%, #7861ff 0%, transparent 60%),
    radial-gradient(70% 60% at 50% 20%, #1e3a8a 0%, transparent 70%),
    linear-gradient(160deg, #0b1026, #241238 55%, #3b1530);
  animation: drift 18s ease-in-out infinite alternate;
  background-size: 120% 120%;
}
.wallpaper-2 {
  background:
    radial-gradient(60% 70% at 80% 85%, #34c3ff 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 70%, #d9785a 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 0%, #0f172a 0%, transparent 70%),
    linear-gradient(200deg, #07131f, #10213a 50%, #2a1838);
  background-size: 120% 120%;
}
@keyframes drift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

.screen-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 960px;
  height: 576px; /* 960 at the screen's 16:9.6 aspect */
  transform: scale(var(--k, 1));
  transform-origin: top left;
  z-index: 1;
}

.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 26px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1;
}
.menubar-left { display: flex; gap: 16px; }
.menubar-right { display: flex; gap: 12px; align-items: center; }
.mb-icon { width: 14px; height: 9px; border: 1.4px solid currentColor; border-radius: 2.5px; opacity: 0.85; }

.hover-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.hover-hint.is-visible { opacity: 1; }

/* ==========================================================================
   The notch — sizes mirror NotchViewModel.width/height in the app
   ========================================================================== */

.notch-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%) scale(1.25);
  transform-origin: top center;
}

.notch {
  --w: 190px; --h: 32px; --r: 10px;
  position: relative;
  width: var(--w);
  height: var(--h);
  border-radius: 0 0 var(--r) var(--r);
  transition:
    width 0.62s var(--spring),
    height 0.62s var(--spring),
    border-radius 0.62s var(--spring);
  cursor: default;
}
.notch[data-state="idle"]           { --w: 190px; --h: 32px;  --r: 10px; }
.notch[data-state="hello"]          { --w: 380px; --h: 180px; --r: 28px; }
.notch[data-state="music-compact"]  { --w: 310px; --h: 40px;  --r: 12px; }
.notch[data-state="music-expanded"] { --w: 380px; --h: 244px; --r: 24px; }
.notch[data-state="idle-home"]      { --w: 302px; --h: 32px;  --r: 10px; }
.notch[data-state="home"]           { --w: 400px; --h: 220px; --r: 26px; }
.notch[data-state="transfers"]      { --w: 400px; --h: 266px; --r: 26px; }
.notch[data-state="agent-compact"]  { --w: 340px; --h: 58px;  --r: 16px; }
.notch[data-state="permission"]     { --w: 400px; --h: 214px; --r: 24px; }
.notch[data-state="done"]           { --w: 380px; --h: 100px; --r: 20px; }
.notch[data-state="airdrop"]        { --w: 380px; --h: 158px; --r: 28px; }

/* Backdrop: black under the camera, fading into glass when expanded. */
.notch-bg, .notch-bg i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.notch-bg i { transition: opacity 0.4s ease; }
.bg-black { background: #000; }
.bg-glass {
  opacity: 0;
  background: linear-gradient(#000 0, #000 32px, rgba(0, 0, 0, 0.36) 60px, rgba(0, 0, 0, 0.3) 100%);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2), inset 1px 0 0 rgba(255, 255, 255, 0.06), inset -1px 0 0 rgba(255, 255, 255, 0.06);
}
.notch.is-glass .bg-black { opacity: 0; }
.notch.is-glass .bg-glass { opacity: 1; }
.notch.is-glass { filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45)); }

/* Panes cross-fade in once the shape has started growing. */
.pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.94);
  filter: blur(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
  pointer-events: none;
  font-family: var(--font-round);
}
.notch[data-state="hello"] [data-pane="hello"],
.notch[data-state="music-compact"] [data-pane="music-compact"],
.notch[data-state="music-expanded"] [data-pane="music-expanded"],
.notch[data-state="agent-compact"] [data-pane="agent-compact"],
.notch[data-state="permission"] [data-pane="permission"],
.notch[data-state="done"] [data-pane="done"],
.notch[data-state="airdrop"] [data-pane="airdrop"],
.notch[data-state="idle-home"] [data-pane="idle-home"],
.notch[data-state="home"] [data-pane="home"],
.notch[data-state="transfers"] [data-pane="transfers"] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.45s ease 0.16s, transform 0.6s var(--spring) 0.12s, filter 0.45s ease 0.16s;
}

/* Lottie containers: the mascot sits in the middle ~60% of its canvas. */
[data-lottie] svg { display: block; }
.mini-mascot, .np-mascot, .pm-mascot, .done-mascot, .drop-mascot, .mascot-art { overflow: visible; }

/* Tab bar: floating glass capsule at the bottom of hover pages; the
   selected tab widens to show its name (NotchTabBar in the app). */
.tabbar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  font-family: var(--font-round);
}
.tb {
  height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.3s, padding 0.35s var(--spring), color 0.3s;
}
.tb svg { width: 13px; height: 13px; flex: none; }
.tb svg.tb-claude { color: var(--claude); opacity: 0.8; }
.tb b {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.35s var(--spring), opacity 0.25s;
}
.tb.is-on { background: rgba(255, 255, 255, 0.2); color: #fff; padding: 0 12px; }
.tb.is-on b { max-width: 80px; opacity: 1; }

.tabbar-notch {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.45s var(--spring);
  z-index: 2;
}
.notch[data-state="home"] .tabbar-notch,
.notch[data-state="music-expanded"] .tabbar-notch,
.notch[data-state="transfers"] .tabbar-notch {
  opacity: 1;
  transform: translateX(-50%);
  transition-delay: 0.22s;
}
.notch[data-state="home"] .tb-home,
.notch[data-state="music-expanded"] .tb-music,
.notch[data-state="transfers"] .tb-transfers { background: rgba(255, 255, 255, 0.2); color: #fff; padding: 0 12px; }
.notch[data-state="home"] .tb-home b,
.notch[data-state="music-expanded"] .tb-music b,
.notch[data-state="transfers"] .tb-transfers b { max-width: 80px; opacity: 1; }

/* Shared bits */
.art {
  background:
    radial-gradient(circle at 30% 30%, #ffd36e, transparent 55%),
    radial-gradient(circle at 75% 70%, #ff3d77, transparent 60%),
    linear-gradient(135deg, #5b2bff, #ff6a3d);
  position: relative;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.art-sm { width: 28px; height: 28px; border-radius: 6px; }
.art-lg { width: 54px; height: 54px; border-radius: 13px; flex: none; }
.app-badge {
  position: absolute;
  right: -4px; bottom: -4px;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: linear-gradient(#fc5c7d, #e91e63);
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.app-badge::after {
  content: "♪";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #fff;
}

/* --- hello --- */
.pane-hello { display: grid; place-items: center; }
.hello-art { grid-area: 1 / 1; width: 300px; height: 150px; transition: opacity 0.4s; }
.hello-art.is-hidden { opacity: 0; }

/* --- music compact --- */
.pane-music-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 8px;
}
.mini-mascot { width: 34px; height: 34px; }

/* --- idle pill: clock left of the camera, Notchy right of it --- */
.pane-idle-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.idle-clock {
  width: 56px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.pane-idle-home .mini-mascot { width: 30px; height: 30px; margin-right: 13px; }

/* --- Home page --- */
.pane-home { padding: 40px 18px 62px; }
.home-row { display: flex; align-items: center; gap: 16px; height: 118px; text-align: left; }
.home-mascot, .buddy-mascot {
  position: relative;
  flex: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.home-mascot { width: 112px; height: 112px; pointer-events: none; }
.notch[data-state="home"] .home-mascot { pointer-events: auto; }
.buddy-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 58%);
}
.buddy-art { position: absolute; inset: 0; transition: transform 0.25s var(--spring); }
.home-mascot:active .buddy-art, .buddy-mascot:active .buddy-art { transform: scale(0.94); }
.home-clock { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-time span {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-time small { margin-left: 4px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, 0.6); }
.home-clock strong { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.home-clock > span { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }

/* --- Transfers page --- */
.pane-transfers {
  padding: 40px 18px 62px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.tr-head { display: flex; align-items: center; gap: 10px; height: 40px; margin-bottom: 4px; }
.tr-mascot { width: 44px; height: 44px; flex: none; }
.tr-title { display: flex; flex-direction: column; }
.tr-title strong { font-size: 14px; font-weight: 800; color: #fff; }
.tr-title span { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.tr-row {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}
.tr-icon { width: 30px; height: 34px; flex: none; border-radius: 5px; position: relative; }
.tr-icon-dmg { background: linear-gradient(#f2f2f5, #c9c9d1); }
.tr-icon-dmg::after { content: ""; position: absolute; inset: 9px 7px; border-radius: 3px; background: linear-gradient(135deg, #4da3ff, #7861ff); }
.tr-icon-folder { height: 26px; border-radius: 4px; background: linear-gradient(#6ec3ff, #3d8bfd); }
.tr-icon-folder::before { content: ""; position: absolute; left: 0; top: -4px; width: 13px; height: 6px; border-radius: 3px 3px 0 0; background: #6ec3ff; }
.tr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tr-info strong { font-size: 12px; font-weight: 700; color: #fff; }
.tr-info em { font-style: normal; font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.tr-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--indigo)); transition: width 0.5s linear; }
.tr-btn {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}
.tr-btn svg { width: 11px; height: 11px; }

/* --- music expanded --- */
.pane-music-expanded {
  padding: 40px 14px 66px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.np-row { display: flex; align-items: center; gap: 14px; }
.np-text { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; }
.np-text strong { font-size: 17px; font-weight: 800; color: #fff; }
.np-text span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.np-mascot { width: 60px; height: 60px; flex: none; transform: scale(1.2); }
.np-controls { display: flex; justify-content: center; align-items: center; gap: 12px; padding-right: 8px; }
.glass-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.glass-btn svg { width: 15px; height: 15px; }
.glass-btn-lg { width: 46px; height: 46px; }
.glass-btn-lg svg { width: 19px; height: 19px; }

/* --- agent compact --- */
.pane-agent-compact { display: flex; flex-direction: column; }
.ac-top {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 10px;
}
.ac-top .mini-mascot { width: 30px; height: 30px; }
.ac-count { font-weight: 800; font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.ticker {
  height: 22px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.ticker b { color: rgba(255, 255, 255, 0.9); }
.ticker i { font-style: normal; color: rgba(255, 255, 255, 0.35); }
.ticker span { color: rgba(255, 255, 255, 0.7); overflow: hidden; text-overflow: ellipsis; }
.ticker em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.4);
}

/* --- permission --- */
.pane-permission {
  padding: 40px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.pm-head { display: flex; align-items: center; gap: 8px; height: 52px; }
.pm-mascot { width: 52px; height: 52px; flex: none; transform: scale(1.3); }
.pm-title { display: flex; flex-direction: column; }
.pm-title strong { font-size: 13px; font-weight: 700; color: #fff; }
.pm-title span { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.pm-detail {
  display: block;
  height: 44px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}
.pm-actions { display: flex; align-items: center; gap: 8px; height: 28px; }
.grow { flex: 1; }
.icon-pill {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}
.icon-pill svg { width: 13px; height: 13px; }
.pill {
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  white-space: nowrap;
}
.pill-deny { color: #ff736b; }
.pill-primary { background: #fff; color: #000; }
.notch[data-state="permission"] .pill-primary { animation: nudge 2.4s ease-in-out 1s infinite; }
@keyframes nudge {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  80% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18); }
}

/* --- done peek --- */
.pane-done { padding: 40px 20px 14px; }
.done-row { display: flex; align-items: center; gap: 11px; height: 48px; text-align: left; }
.done-mascot { width: 48px; height: 48px; flex: none; transform: scale(1.3); }
.done-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.done-text strong { font-size: 13px; font-weight: 700; color: #fff; }
.done-text span { font-size: 11.5px; font-weight: 500; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-open { width: 14px; height: 14px; color: rgba(255, 255, 255, 0.45); flex: none; }

/* --- airdrop drop zone --- */
.pane-airdrop { padding: 40px 14px 14px; }
.drop-zone {
  height: 100%;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  text-align: left;
  position: relative;
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.12), rgba(120, 97, 255, 0.12)), rgba(255, 255, 255, 0.04);
}
.drop-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--sky), var(--indigo));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}
.drop-hero {
  position: relative;
  width: 86px; height: 86px;
  flex: none;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.45), transparent 62%);
  border-radius: 50%;
}
.ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--sky);
  border-radius: 50%;
  opacity: 0;
  animation: ring 2.4s ease-out infinite;
}
.ring:nth-child(2) { animation-delay: 0.8s; }
.ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring {
  from { transform: scale(0.45); opacity: 0.55; }
  to { transform: scale(1.2); opacity: 0; }
}
.drop-mascot { width: 72px; height: 72px; position: relative; }
.drop-text { display: flex; flex-direction: column; gap: 3px; }
.drop-text strong { font-size: 18px; font-weight: 800; color: #fff; }
.drop-text span { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }

/* A file being dragged up into the notch. */
.drag-file {
  position: absolute;
  right: 34px; bottom: -70px;
  width: 38px; height: 48px;
  border-radius: 6px;
  background: linear-gradient(#fff, #e9e9ee);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: end center;
  padding-bottom: 6px;
  opacity: 0;
}
.drag-file span { font: 700 9px var(--font); color: #e5484d; }
.notch[data-state="airdrop"] .drag-file { animation: drag-in 3.2s var(--ease-out) 0.4s infinite; }
@keyframes drag-in {
  0% { opacity: 0; transform: translate(60px, 60px) rotate(12deg); }
  20% { opacity: 1; }
  55% { opacity: 1; transform: translate(0, -40px) rotate(-4deg) scale(0.9); }
  70%, 100% { opacity: 0; transform: translate(-6px, -60px) scale(0.4); }
}

/* ==========================================================================
   Scroll story
   ========================================================================== */

.story { height: 700vh; position: relative; }
.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px var(--gutter) 32px;
  overflow: hidden;
}
.story-head { text-align: center; }
.device-story { --screen-w: min(860px, 100%, calc((100vh - 300px) * 16 / 9.6)); margin-top: 8px; }

.story-captions {
  position: relative;
  width: min(620px, 100%);
  height: 120px;
  margin-top: 34px;
  text-align: center;
}
.story-caption {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.7s var(--ease-out);
}
.story-caption.is-active { opacity: 1; transform: none; }
.story-caption h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
.story-caption p { margin-top: 10px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }

.story-progress {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.story-progress span {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: height 0.4s var(--spring), background 0.3s;
}
.story-progress span.is-on { height: 22px; background: var(--fg); }
@media (max-width: 640px) { .story-progress { display: none; } }

/* ==========================================================================
   Features
   ========================================================================== */

.feature {
  max-width: 1080px;
  margin: 0 auto;
  padding: 140px var(--gutter) 40px;
}
.feature-copy { max-width: 640px; }
.feature h2, .section-head h2 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.feature-copy > p:last-child {
  margin-top: 22px;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--muted);
  line-height: 1.45;
}
.scene-card {
  margin-top: 56px;
  border-radius: 32px;
  padding: clamp(16px, 4vw, 48px);
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(255, 95, 126, 0.18), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.scene-card-airdrop { background: radial-gradient(80% 90% at 50% 0%, rgba(77, 163, 255, 0.2), transparent 70%), var(--card); }
.scene-card-downloads { background: radial-gradient(80% 90% at 50% 0%, rgba(61, 220, 151, 0.18), transparent 70%), var(--card); }
.scene-card-settings { background: radial-gradient(80% 90% at 50% 0%, rgba(160, 160, 180, 0.18), transparent 70%), var(--card); }
.scene-card-claude { background: radial-gradient(80% 90% at 50% 0%, rgba(217, 120, 90, 0.2), transparent 70%), var(--card); }
.scene {
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}
.feature-points {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-points li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.feature-points strong { font-size: 19px; }
.feature-points span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .feature-points { grid-template-columns: 1fr; gap: 0; } .feature-points li { padding: 16px 0; } }

/* ==========================================================================
   Mascots
   ========================================================================== */

.details {
  max-width: 1080px;
  margin: 0 auto;
  padding: 160px var(--gutter) 40px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.mascot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mascot {
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s var(--spring), border-color 0.3s;
}
.mascot:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(255, 255, 255, 0.2); }
.mascot:active { transform: scale(0.97); }
.mascot-art { display: block; width: 100%; max-width: 150px; aspect-ratio: 1; }
.mascot-label { margin-top: 6px; font-size: 14px; font-weight: 600; color: rgba(245, 245, 247, 0.8); }
@media (max-width: 760px) { .mascot-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Meet Notchy
   ========================================================================== */

.buddy {
  max-width: 1080px;
  margin: 0 auto;
  padding: 160px var(--gutter) 40px;
}
.section-sub {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.45;
  color: var(--muted);
}
.buddy-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 30% 50%, rgba(255, 201, 92, 0.16), transparent 70%),
    var(--card);
}
.buddy-mascot { width: clamp(150px, 26vw, 240px); aspect-ratio: 1; }
.buddy-clock { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-round); }
.buddy-time span {
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0.65));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.buddy-time small { margin-left: 6px; font-size: clamp(16px, 2vw, 22px); font-weight: 800; color: rgba(255, 255, 255, 0.55); }
.buddy-greeting { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; }
.buddy-date { font-size: clamp(14px, 1.4vw, 17px); font-weight: 600; color: var(--muted); }
.buddy-hint { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.5); font-family: var(--font); }
@media (max-width: 640px) {
  .buddy-stage { flex-direction: column; text-align: center; }
  .buddy-clock { align-items: center; }
}

.mood-head {
  margin: 72px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mood-head h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font: 600 13px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle .off, .sound-toggle[aria-pressed="false"] .on { display: none; }
.sound-toggle[aria-pressed="false"] .off { display: block; }

/* ==========================================================================
   Details (bento)
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; }
.tile h3 { font-size: 24px; font-weight: 700; margin-top: auto; }
.tile p { color: var(--muted); font-size: 15px; }
.tile-icon { font-size: 30px; line-height: 1; }
.tile-visual { height: 96px; position: relative; }
.tile-glass {
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 20% 100%, #ff7a59, transparent 60%),
    radial-gradient(60% 120% at 80% 100%, #7861ff, transparent 60%),
    #1a1033;
}
.tile-glass span {
  position: absolute;
  left: 50%; top: 0;
  width: 60%; height: 78%;
  transform: translateX(-50%);
  border-radius: 0 0 22px 22px;
  background: linear-gradient(#000 0, #000 22%, rgba(0, 0, 0, 0.3) 52%);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}
.tile-tabs { display: flex; align-items: center; justify-content: center; }
.tabbar-demo { transform: scale(1.35); }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tabbar-demo { transform: scale(1.05); }
}

/* ==========================================================================
   Download
   ========================================================================== */

.download {
  position: relative;
  margin-top: 120px;
  padding: 120px var(--gutter) 160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Clip sideways only, so the glow can bleed upward without a hard edge. */
  overflow-x: clip;
}
.download-glow {
  position: absolute;
  left: 50%; top: 40%;
  width: min(900px, 140vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(120, 97, 255, 0.22), rgba(217, 120, 90, 0.12) 40%, transparent 65%);
  pointer-events: none;
}
.download-hello { width: min(420px, 80vw); aspect-ratio: 428 / 123; position: relative; }
.download h2 {
  position: relative;
  margin-top: 28px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.download > p:not(.fineprint) { position: relative; margin-top: 16px; color: var(--muted); font-size: 19px; max-width: 520px; }
.download .btn { position: relative; margin-top: 36px; }
.download .fineprint { position: relative; margin-top: 16px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter) 40px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact { font-size: 14px; color: rgba(245, 245, 247, 0.8); margin-bottom: 4px; }
.footer a { color: var(--sky); }
.footer a:hover { text-decoration: underline; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .wallpaper, .ring, .drag-file, .pill-primary { animation: none !important; }
  .notch, .pane { transition-duration: 0.01s !important; }
}

/* ==========================================================================
   Phones: tighter rhythm, shorter scroll story
   ========================================================================== */

@media (max-width: 640px) {
  .hero { padding-top: 96px; padding-bottom: 56px; min-height: auto; }
  .device { margin-top: 44px; }
  .story { height: 490vh; }
  .story-sticky { padding-top: 56px; }
  .story-captions { height: 150px; margin-top: 26px; }
  .feature { padding-top: 88px; }
  .scene-card { margin-top: 32px; border-radius: 24px; }
  .feature-points { margin-top: 24px; }
  .buddy, .details { padding-top: 96px; }
  .mood-head { margin-top: 48px; }
  .section-head { margin-bottom: 32px; }
  .mascot-grid { gap: 10px; }
  .mascot { border-radius: 20px; padding: 10px 8px 12px; }
  .mascot-art { max-width: 96px; }
  .mascot-label { font-size: 12px; }
  .hover-hint { font-size: 11px; padding: 4px 10px; bottom: 10px; }
  .tile { min-height: 0; padding: 22px; border-radius: 22px; }
  .download { margin-top: 40px; padding: 80px var(--gutter) 100px; }
}
