/* DÉJÀ VU — one screen, one idea, one interaction. The extension's own card CSS comes from card.css. */
@import url("/card.css");

:root {
  --steel: #8b8f96; --echo: #c9cdd3; --paper: #f2f3f5; --dim: #5d6168;
  --line: rgba(255,255,255,.08);
  --sans: "Satoshi", Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --gutter: clamp(18px, 4.5vw, 72px);
}
* { box-sizing: border-box; }
html { background: #000; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: #000; color: var(--echo); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- atmosphere ---------- */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; background: radial-gradient(70% 60% at 30% 40%, #14171d 0%, #07080a 55%, #000 100%); }
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0,0);} 25% { transform: translate(-3%,2%);} 50% { transform: translate(2%,-3%);} 75% { transform: translate(-1%,-1%);} 100% { transform: translate(0,0);} }
.nav, .stage, .foot { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .28em; color: var(--paper); }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.nav nav a, .nav nav button { all: unset; cursor: pointer; letter-spacing: inherit; transition: color .2s; }
.nav nav a:hover, .nav nav button:hover { color: var(--paper); }
.nav nav .get { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; }

/* ---------- stage ---------- */
.stage { min-height: calc(100svh - 44px); max-width: 1520px; margin: 0 auto; padding: 100px var(--gutter) 40px; display: grid; grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }

/* left */
.copy { position: relative; }
.hero-mark { position: relative; width: 72px; height: 72px; margin-bottom: 26px; animation: rise 1.4s var(--ease) both; }
.hero-mark svg { position: absolute; inset: 0; display: block; }
/* the same cat already walked past: it arrives from the left, settles, fades */
.hero-mark .ghost { opacity: 0; animation: passed 9s cubic-bezier(.33,0,.2,1) infinite; }
.hero-mark .solid { animation: noticed 9s cubic-bezier(.33,0,.2,1) infinite; transform-origin: 50% 90%; }
@keyframes passed {
  0% { transform: translateX(-34px); opacity: 0; }
  14% { transform: translateX(-15px); opacity: .34; }
  58% { transform: translateX(-15px); opacity: .34; }
  78% { transform: translateX(-15px); opacity: 0; }
  100% { transform: translateX(-34px); opacity: 0; }
}
@keyframes noticed { 0%,10%,30%,100% { transform: scale(1); } 18% { transform: scale(1.035); } }
.h-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 84px); line-height: .96; letter-spacing: -.02em; color: var(--paper); }
.h-title span { display: block; animation: rise 1.1s var(--ease) both; }
.h-title span:nth-child(2) { animation-delay: .07s; padding-left: .9em; }
.h-sub { margin: 24px 0 0; max-width: 420px; font-size: clamp(15px, 1.25vw, 17px); font-weight: 300; line-height: 1.55; color: var(--steel); animation: rise 1.1s var(--ease) .16s both; }
.h-sub br { display: none; } @media (min-width: 1100px) { .h-sub br { display: inline; } }

.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; animation: rise 1.1s var(--ease) .24s both; }
.btn-primary { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 15px; color: #0b0c0f;
  background: linear-gradient(180deg, #fff 0%, #dfe2e6 100%); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 34px rgba(0,0,0,.5);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 16px 40px rgba(0,0,0,.6); }
.btn-primary:active { transform: scale(.985); }

.browsers { margin: -4px 0 0; font-size: 12px; letter-spacing: .01em; color: var(--dim); }
.browsers a { color: var(--steel); border-bottom: 1px solid rgba(255,255,255,.18); transition: color .2s; }
.browsers a:hover { color: var(--paper); }

.plans { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.025); backdrop-filter: blur(10px); }
.plan { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 11px; min-width: 150px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-name { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.plan-what { font-size: 13px; color: var(--echo); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-x .plan-name { color: var(--echo); }
.plan-x .plan-what { color: var(--paper); }

.trust { margin: 26px 0 0; display: flex; gap: 10px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); animation: rise 1.1s var(--ease) .32s both; }
.trust a { transition: color .2s; } .trust a:hover { color: var(--paper); }
.install { margin: 14px 0 0; max-width: 400px; font-size: 11.5px; line-height: 1.6; color: #45494f; animation: rise 1.1s var(--ease) .4s both; }
.install code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--dim); }
@keyframes rise { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }

/* right: the product */
.scene { position: relative; perspective: 1800px; animation: rise 1.4s var(--ease) .2s both; }
.scene-switch { position: absolute; top: -34px; right: 6px; z-index: 3; display: flex; gap: 18px; }
.scene-switch button { all: unset; cursor: pointer; padding: 4px 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.scene-switch button.on { color: var(--paper); border-color: rgba(255,255,255,.3); }
.frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, #15171c, #0b0c0f); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 50px 120px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.6);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg)); transform-style: preserve-3d; will-change: transform; transition: transform .9s var(--ease); }
.frame-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: rgba(255,255,255,.035); border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2a2e36; }
.url { margin-left: 12px; flex: 1; max-width: 380px; height: 22px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-radius: 6px; background: rgba(0,0,0,.35); font-size: 11.5px; color: var(--steel); white-space: nowrap; overflow: hidden; }
.lock { flex: none; width: 8px; height: 9px; border: 1.2px solid var(--dim); border-radius: 2px; border-top-left-radius: 4px; border-top-right-radius: 4px; }
.frame-body { position: relative; height: clamp(520px, 66vh, 640px); overflow: hidden; background: #0a0b0d; }
.frame-body[hidden] { display: none; }

.mock { position: absolute; inset: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.mock-head { display: flex; align-items: center; gap: 12px; }
.mock-avatar { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a3f48, #14161a); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.mock-sym { font-weight: 700; color: var(--paper); font-size: 14.5px; }
.mock-meta { font-size: 11.5px; color: var(--steel); }
.mock-mc { margin-left: auto; font-size: 12px; color: var(--steel); } .mock-mc b { color: var(--paper); font-weight: 500; margin-left: 4px; }
.chart { flex: 1; width: 100%; min-height: 0; opacity: .9; }
.mock-foot { display: flex; gap: 8px; } .mock-foot span { height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); width: 90px; } .mock-foot span:nth-child(2) { width: 140px; } .mock-foot span:nth-child(4) { width: 60px; }

/* the extension surfaces are position:fixed in card.css — pinned inside the frame here */
.frame-body .dv-card, .frame-body .dv-btn { position: absolute; }
.frame-body .dv-card { right: 20px; bottom: 70px; max-height: none; transform-origin: 100% 100%; --s: 1; }
.frame-body .dv-card:not(.dv-open) { transform: translateY(10px) scale(calc(.97 * var(--s))); }
.frame-body .dv-card.dv-open { transform: scale(var(--s)); }
.frame-body .dv-btn { right: 20px; bottom: 20px; }
.frame-body .dv-input { display: flex; align-items: center; color: #5d6168; overflow: hidden; white-space: nowrap; }
.frame-body .dv-input .typed { color: var(--paper); }
.frame-body .dv-input.typing .ph { display: none; }
.frame-body .dv-input.typing .typed::after { content: ""; display: inline-block; width: 1px; height: 14px; background: var(--paper); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.frame-body .dv-save { display: grid; place-items: center; }
.frame-body .dv-link { border-bottom: 0; }
.cursor { position: absolute; left: 40%; top: 40%; z-index: 5; opacity: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); transition: left 1.1s var(--ease), top 1.1s var(--ease), opacity .4s, transform .12s; pointer-events: none; }
.cursor.show { opacity: 1; } .cursor.press { transform: scale(.88); }

/* memory scene */
.memory { background: radial-gradient(80% 60% at 50% -20%, #14161b, transparent 70%), #030304; }
.memory canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.mem-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; pointer-events: none; }
.mem-brand { display: flex; align-items: center; gap: 9px; font-size: 10.5px; letter-spacing: .24em; color: var(--steel); }
.mem-brand i { width: 1px; height: 11px; background: rgba(255,255,255,.14); }
.mem-count { font-size: 11px; color: var(--steel); letter-spacing: .06em; }
.mem-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); pointer-events: none; transition: opacity .5s; }
.mem-hint.gone { opacity: 0; }
.mem-panel { position: absolute; top: 52px; right: 16px; bottom: 16px; width: 280px; border-radius: 16px; overflow: auto; padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(22,24,30,.88), rgba(10,11,14,.94));
  border: 1px solid rgba(255,255,255,.09); box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 30px 80px rgba(0,0,0,.7); backdrop-filter: blur(18px);
  opacity: 0; transform: translateX(16px); pointer-events: none; transition: opacity .28s ease, transform .45s var(--ease); font-size: 12.5px; scrollbar-width: thin; }
.mem-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.mem-panel .k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.mem-panel .sym { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--paper); }
.mem-panel .row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--steel); }
.mem-panel .row b { font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.mem-panel .move { margin: 10px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #9be9de; }
.mem-panel .move.down { color: #e9a3a3; }
.mem-panel .move small { font-size: 11px; font-weight: 400; color: var(--steel); margin-left: 6px; letter-spacing: 0; }
.mem-panel .note { padding: 9px 0 10px; border-top: 1px solid rgba(255,255,255,.06); }
.mem-panel .note-meta { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.mem-panel .note-text { color: #dde0e5; margin-top: 4px; line-height: 1.45; }
.mem-panel .x { all: unset; cursor: pointer; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--steel); }
.mem-panel .x:hover { background: rgba(255,255,255,.06); color: var(--paper); }

/* ---------- footer ---------- */
.foot { max-width: 1520px; margin: 0 auto; height: 44px; padding: 0 var(--gutter); align-items: center; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; letter-spacing: .08em; color: #45494f; }
.foot nav { display: flex; gap: 20px; }
.foot nav a:hover { color: var(--echo); }

/* ---------- doc pages ---------- */
.doc { position: relative; z-index: 2; max-width: 660px; margin: 0 auto; padding: 140px var(--gutter) 80px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; color: var(--paper); margin: 0 0 8px; letter-spacing: -.01em; }
.doc .updated { color: var(--dim); font-size: 13px; margin-bottom: 40px; }
.doc h2 { font-size: 16px; font-weight: 500; color: var(--paper); margin: 34px 0 8px; }
.doc p, .doc li { font-size: 15px; color: var(--echo); line-height: 1.65; }
.doc ul { padding-left: 18px; }
.doc code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--steel); }
.doc a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.2); }

/* ---------- mobile: its own composition ---------- */
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; gap: 34px; padding: 96px var(--gutter) 40px; align-items: start; }
  .copy { display: contents; }
  .hero-mark { order: 1; width: 56px; height: 56px; margin: 0 0 16px; }
  .h-title { order: 2; font-size: clamp(42px, 11.5vw, 64px); }
  .h-title span:nth-child(2) { padding-left: .6em; }
  .h-sub { order: 3; margin-top: 14px; font-size: 15px; }
  .scene { order: 4; }
  .scene-switch { top: -30px; }
  .frame { transform: none; }
  .frame-body { height: 560px; }
  .frame-body .dv-card { right: 12px; left: 12px; width: auto; bottom: 68px; }
  .mock { padding: 16px; }
  .cta { order: 5; margin-top: 4px; width: 100%; }
  .btn-primary { width: 100%; justify-content: center; }
  .plans { width: 100%; }
  .plan { flex: 1; min-width: 0; padding: 10px 14px; }
  .plan-what { white-space: normal; font-size: 12.5px; }
  .trust { order: 6; margin-top: 4px; flex-wrap: wrap; row-gap: 6px; }
  .install { order: 7; margin-top: 8px; }
  .mem-panel { left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; max-height: 60%; }
  .nav nav { gap: 16px; font-size: 10.5px; }
  .nav nav button { display: none; }
  .foot { flex-direction: column; gap: 10px; height: auto; padding: 10px var(--gutter) 24px; align-items: flex-start; }
}
@media (max-width: 400px) { .plans { flex-direction: column; } .plan + .plan { border-left: 0; border-top: 1px solid var(--line); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .frame { transform: none; }
}
