/* Emulsion - darkroom design language */
:root {
  --bg: #120e0b;
  --bg-lift: #1b1511;
  --safelight: #ff5429;
  --amber: #ffa04d;
  --ink: #f5ede2;
  --ink-dim: #b8a894;
  --line: rgba(255, 160, 77, 0.14);
  --glass: rgba(27, 21, 17, 0.55);
  --radius: 20px;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Safelight wash */
.wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(255, 84, 41, 0.16), transparent 60%),
    radial-gradient(40rem 30rem at 95% 105%, rgba(255, 160, 77, 0.07), transparent 60%);
  animation: breathe 9s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

main, header.site, footer.site { position: relative; z-index: 1; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(18, 14, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand svg { display: block; }

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

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--safelight); }

/* Film strip divider */
.film-divider {
  display: flex;
  gap: 9px;
  justify-content: center;
  padding: 6px 0;
  overflow: hidden;
}

.film-divider span {
  width: 11px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 84, 41, 0.35);
  animation: sprocket 2.6s ease-in-out infinite;
}

.film-divider span:nth-child(2n) { animation-delay: 0.2s; }
.film-divider span:nth-child(3n) { animation-delay: 0.4s; }

@keyframes sprocket {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* Hero */
.hero {
  padding: 96px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--safelight), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  margin: 20px auto 0;
  max-width: 34rem;
  color: var(--ink-dim);
  font-size: 1.12rem;
}

.cta-row {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--safelight), #ff7a3d);
  color: #16100b;
  box-shadow: 0 10px 30px rgba(255, 84, 41, 0.35);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--glass);
}

/* Glass panels */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(255, 84, 41, 0.05) inset;
}

/* Sections */
section.block { padding: 64px 0; }

.kicker {
  color: var(--safelight);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 800;
}

h2.title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-top: 8px;
}

p.sub { color: var(--ink-dim); margin-top: 10px; max-width: 38rem; }

/* Feature grid */
.grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  padding: 26px;
}

.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 84, 41, 0.12);
  border: 1px solid rgba(255, 84, 41, 0.3);
  margin-bottom: 16px;
}

.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--ink-dim); font-size: 0.94rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Phone frames */
.phones {
  margin-top: 44px;
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone {
  width: 250px;
  height: 520px;
  border-radius: 40px;
  border: 1px solid rgba(255, 160, 77, 0.25);
  background: #0c0906;
  padding: 12px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 84, 41, 0.08);
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 14px;
  background: #000;
  z-index: 2;
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a130e, #120e0b);
  display: flex;
  flex-direction: column;
  padding: 56px 16px 16px;
  gap: 10px;
}

.screen .bar {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
}

.mock-row {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  font-size: 0.78rem;
}

.mock-row strong { display: block; color: var(--ink); font-size: 0.85rem; }
.mock-row span { color: var(--ink-dim); }
.mock-row .warn { color: var(--amber); font-weight: 700; }

.mock-disc {
  margin: 18px auto 6px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(255, 84, 41, 0.55);
  background: radial-gradient(circle at 50% 35%, rgba(255, 84, 41, 0.14), rgba(255, 255, 255, 0.03) 70%);
  display: grid;
  place-items: center;
  text-align: center;
  animation: discPulse 3.2s ease-in-out infinite;
}

@keyframes discPulse {
  0%, 100% { box-shadow: 0 0 26px rgba(255, 84, 41, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 44px rgba(255, 84, 41, 0.4); transform: scale(1.025); }
}

.mock-disc b {
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mock-disc i {
  font-style: normal;
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--safelight);
  margin-top: 6px;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mock-bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--amber), var(--safelight));
  transform-origin: bottom;
  animation: barGrow 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mock-bars i:nth-child(1) { height: 30%; animation-delay: 0.05s; }
.mock-bars i:nth-child(2) { height: 45%; animation-delay: 0.1s; }
.mock-bars i:nth-child(3) { height: 25%; animation-delay: 0.15s; }
.mock-bars i:nth-child(4) { height: 65%; animation-delay: 0.2s; }
.mock-bars i:nth-child(5) { height: 50%; animation-delay: 0.25s; }
.mock-bars i:nth-child(6) { height: 85%; animation-delay: 0.3s; }
.mock-bars i:nth-child(7) { height: 70%; animation-delay: 0.35s; }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Prose pages (privacy, terms, support) */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 0 40px;
}

.prose h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
.prose .updated { color: var(--ink-dim); font-size: 0.88rem; margin-top: 8px; }
.prose h2 { margin: 34px 0 10px; font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-dim); }
.prose ul { padding-left: 22px; margin-top: 8px; }
.prose a { color: var(--safelight); }
.prose .callout {
  margin-top: 28px;
  padding: 22px 26px;
  font-size: 1.02rem;
  color: var(--ink);
}

/* Footer */
footer.site {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 36px 0 46px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-dim); text-decoration: none; }
.foot a:hover { color: var(--safelight); }

@media (max-width: 620px) {
  .nav-links { gap: 14px; font-size: 0.85rem; }
  .hero { padding-top: 64px; }
  section.block { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wash, .film-divider span, .mock-disc, .mock-bars i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
