/* PicSeer landing — design tokens from docs/design/landing-design-guide-v1.md.
   Mac indie native, dark-mode first, quiet and technical. Zero images: the hero
   product scene (folders → search → results) is real HTML/CSS. */

:root {
  --bg: #080A0D;
  --bg-elev: #0D1117;
  --panel: #111722;
  --panel-glass: rgba(17, 23, 34, 0.72);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(77, 141, 255, 0.36);
  --text: #F4F7FB;
  --text-2: #AAB3C2;
  --text-3: #6F7A89;
  --accent: #4D8DFF;
  --accent-down: #2F6FE8;
  --radius-search: 16px;
  --radius-btn: 9px;
  --radius-panel: 16px;
  --radius-thumb: 9px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 820px; }

h1, h2 { letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
s { color: var(--text-3); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------------------------------------------------------- buttons ---- */

.btn {
  display: inline-block;
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 12px 22px;
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 8px 24px rgba(77, 141, 255, 0.22);
}
.btn:hover { background: var(--accent-down); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; box-shadow: none; }

/* Ghost / secondary CTA — quiet, outlined, sits next to the solid primary. */
.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* Pre-launch state — commerce URL not set yet (shared.mjs dark-launch). Reads
   as disabled but keeps the exact launch layout for preview. */
.btn.is-pending {
  background: var(--panel);
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: default;
  pointer-events: none;
}
.btn.is-pending:hover { transform: none; background: var(--panel); }

/* Small print under a pre-launch CTA group. */
.cta-pending { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }

/* CTA button rows (hero already has .hero-actions). */
.hero-actions, .price-actions, .final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.price-actions { margin: 18px 0 0; }
.final-actions { justify-content: center; margin: 0 0 14px; }

.chip {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
}

/* ----------------------------------------------------------- header ---- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 10, 13, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header nav {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text); font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.mark { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--text-2); font-size: 13.5px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.lang-switch { display: inline-flex; gap: 4px; align-items: center; }
.lang, .lang.current {
  font-size: 12.5px; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.02em;
}
.lang { color: var(--text-3); }
.lang:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.05); }
.lang.current { color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% -80px, rgba(77, 141, 255, 0.13), transparent 68%),
    radial-gradient(1.2px 1.2px at 50% 50%, rgba(255, 255, 255, 0.045) 1px, transparent 1.2px) 0 0 / 26px 26px,
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-copy { text-align: center; max-width: 860px; margin: 0 auto 64px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 750;
  letter-spacing: -0.032em;
  margin-bottom: 22px;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
html[lang="ko"] .hero h1 { font-size: clamp(34px, 4.8vw, 62px); }
.subhead {
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 46em; margin: 0 auto 30px;
  animation: rise 700ms 90ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-actions { margin: 0 0 14px; animation: rise 700ms 170ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-note { color: var(--text-3); font-size: 13.5px; animation: rise 700ms 230ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------- hero scene ---- */

.hero-scene {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1.25fr;
  align-items: center;
  gap: 40px;
  animation: rise 800ms 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.light-path {
  position: absolute; left: 4%; right: 4%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 141, 255, 0.34) 30%, rgba(77, 141, 255, 0.5) 55%, rgba(77, 141, 255, 0.3) 78%, transparent);
  filter: drop-shadow(0 0 6px rgba(77, 141, 255, 0.4));
  z-index: 0;
}

/* folders window */
.scene-folders { position: relative; z-index: 1; }
.window {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: rotate(-1.4deg);
}
.titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; opacity: 0.85; }
.dot.r { background: #FF5F57; } .dot.y { background: #FEBC2E; } .dot.g { background: #28C840; }
.win-title { margin-left: 8px; font-size: 11.5px; color: var(--text-3); letter-spacing: 0.01em; }

.folder-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px 8px; padding: 18px 14px 16px;
}
.folder { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.folder-icon {
  position: relative; width: 44px; height: 32px;
  background: linear-gradient(180deg, #6FA5FF 0%, #4D8DFF 55%, #3E7BEB 100%);
  border-radius: 4px 6px 6px 6px;
  opacity: 0.92;
}
.folder-icon::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 18px; height: 7px;
  background: #5E97F7;
  border-radius: 3px 5px 0 0;
}
.folder-name { font-size: 10.5px; color: var(--text-2); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.loose { position: relative; height: 46px; margin-top: -8px; }
.shot {
  position: absolute; width: 74px; height: 50px;
  border-radius: 6px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #1A2233 0%, #131A28 70%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.shot::after {
  content: ""; position: absolute; inset: 8px 10px auto 10px; height: 5px;
  border-radius: 2px; background: rgba(77, 141, 255, 0.4);
}
.shot.s1 { left: 8%; top: 4px; transform: rotate(-7deg); }
.shot.s2 { left: 38%; top: -4px; transform: rotate(3deg); background: linear-gradient(160deg, #202A3D 0%, #141B2A 70%); }
.shot.s3 { left: 66%; top: 6px; transform: rotate(9deg); }

/* search assembly */
.scene-search { position: relative; z-index: 2; text-align: center; }
.searchbar {
  display: flex; align-items: center; gap: 13px;
  height: 60px; padding: 0 18px;
  background: var(--panel-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-search);
  box-shadow: 0 0 0 4px rgba(77, 141, 255, 0.09), 0 24px 70px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.magnifier { width: 19px; height: 19px; color: var(--text-3); flex: none; }
.searchbar .query { font-size: 16.5px; color: var(--text); white-space: nowrap; overflow: hidden; }
.caret {
  display: inline-block; width: 2px; height: 1.15em; margin-left: 2px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.return, .palette-row .return {
  margin-left: auto; flex: none;
  font-size: 12px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 8px; background: rgba(255, 255, 255, 0.03);
}

.query-rotator {
  position: relative; margin: 16px 0 0;
  font-size: 13px; color: var(--text-3);
  display: flex; justify-content: center; gap: 7px;
  min-height: 1.6em; overflow: hidden;
}
.query-rotator .try { flex: none; }
.query-rotator .alts { position: relative; display: inline-block; min-width: 20ch; text-align: left; }
.query-rotator .alt {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; animation: cycle 12s infinite;
  color: var(--text-2);
}
.query-rotator .alt:nth-child(2) { animation-delay: 4s; }
.query-rotator .alt:nth-child(3) { animation-delay: 8s; }
@keyframes cycle {
  0% { opacity: 0; transform: translateY(6px); }
  4%, 29% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-6px); }
}

.scene-meta { margin: 14px 0 0; display: flex; justify-content: center; gap: 8px; }

/* result grid */
.scene-results { position: relative; z-index: 1; }
.result-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(1.2deg);
}
.thumb {
  margin: 0; position: relative;
  animation: pop 500ms calc(620ms + var(--d) * 90ms) cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.thumb-art {
  display: block; overflow: hidden;
  background: #0C1220;
  border: 1px solid var(--border);
  border-radius: var(--radius-thumb);
}
.thumb-art svg { display: block; width: 100%; height: auto; }
.thumb:nth-child(2) .thumb-art svg { aspect-ratio: 72 / 52; }
.thumb:nth-child(4) .thumb-art svg { aspect-ratio: 72 / 40; }
.thumb:nth-child(5) .thumb-art svg { aspect-ratio: 72 / 50; }
.thumb.top .thumb-art {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.16);
}
.thumb-badge {
  position: absolute; top: -9px; left: 8px; z-index: 2;
  font-size: 9.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  padding: 2px 7px; border-radius: 5px;
}
.thumb figcaption {
  margin-top: 5px;
  font-size: 10px; color: var(--text-3);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ------------------------------------------------------------ bands ---- */

.band { padding: 88px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.band.alt { background: var(--bg-elev); }

.statement {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.25;
  margin-bottom: 18px;
}
.statement.sm { font-size: clamp(20px, 2.4vw, 27px); color: var(--text-2); margin-bottom: 0; }
.statement.sm, .for-whom .container { text-align: center; }
.body-lg { color: var(--text-2); font-size: clamp(15.5px, 1.5vw, 17.5px); max-width: 56em; }

/* solution — command palette */
.palette {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.palette-label {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); margin: 6px 0 8px 14px;
}
.palette-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 15.5px; color: var(--text);
  transition: background 120ms ease;
}
.palette-row:hover { background: rgba(77, 141, 255, 0.08); }
.palette-row .magnifier { width: 16px; height: 16px; }

/* how it works */
.how h2 { text-align: center; margin-bottom: 46px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  counter-reset: step;
}
.steps li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 26px 24px 20px;
}
.step-num {
  display: inline-block; margin-bottom: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 7px; padding: 3px 9px;
  background: rgba(77, 141, 255, 0.08);
}
.steps p { margin: 0; color: var(--text-2); font-size: 15px; }

/* privacy */
.privacy-panel {
  display: flex; gap: 30px; align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 40px 42px;
}
.privacy-panel h2 { margin-bottom: 10px; }
.privacy-panel .body-lg { margin: 0; }
.local-ring {
  flex: none; width: 96px; height: 96px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(77, 141, 255, 0.06);
  box-shadow: 0 0 0 10px rgba(77, 141, 255, 0.05), 0 0 0 22px rgba(77, 141, 255, 0.025);
}
.local-ring svg { width: 48px; height: 48px; }

/* pricing */
.pricing .container { display: flex; justify-content: center; }
.price-card {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 40px 56px 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.price-lead { font-size: 17px; color: var(--text-2); margin-bottom: 20px; }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 6px; }
.price-label, .price-suffix { color: var(--text-3); font-size: 14px; }
.price { font-size: 54px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.price-regular { color: var(--text-3); font-size: 13.5px; margin-bottom: 16px; }
.price-badge { margin: 0; }

/* final CTA */
.final-cta .container { text-align: center; }
.final-cta .body-lg { margin: 0 auto 30px; }
.final-cta .hero-note { animation: none; }

/* ----------------------------------------------------------- footer ---- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg);
  padding: 52px 0 60px;
  text-align: center;
}
.site-footer .brand { justify-content: center; display: inline-flex; margin-bottom: 4px; }
.site-footer .tagline { color: var(--text-2); font-size: 14px; }
.site-footer .langs { color: var(--text-3); font-size: 13px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.site-footer .copyright { color: var(--text-3); font-size: 12.5px; margin: 14px 0 0; }

/* ------------------------------------------------------- responsive ---- */

@media (max-width: 1080px) {
  .hero-scene { grid-template-columns: 1fr 1.2fr; }
  .scene-results { grid-column: 1 / -1; }
  .light-path { display: none; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .site-header nav { gap: 12px; }
  .nav-actions { gap: 10px; }
  .brand { font-size: 14px; }
  .btn-sm { padding: 7px 11px; font-size: 12.5px; }
  .hero { padding: 56px 0 64px; }
  .hero-copy { margin-bottom: 44px; }
  /* guide mobile order: copy, search bar, result grid, folder stack */
  .hero-scene { grid-template-columns: 1fr; gap: 30px; }
  .scene-search { order: 1; }
  .scene-results { order: 2; grid-column: auto; }
  .scene-folders { order: 3; max-width: 380px; margin: 0 auto; }
  .window, .result-grid { transform: none; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .privacy-panel { flex-direction: column; text-align: center; padding: 32px 24px; gap: 22px; }
  .price-card { padding: 32px 28px 28px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .query-rotator .alt { position: static; opacity: 1; }
  .query-rotator .alt + .alt { display: none; }
}
