:root {
  /* Color */
  --bg: #070815;
  --bg-soft: #0b0d1f;
  --surface: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eaf2;
  --muted: #c3c5d1;
  --faint: #6b7090;
  --accent: #d8a26a;
  --violet: var(--accent);
  --blue: var(--accent);
  --cyan: var(--accent);
  --live: var(--accent);
  --grad: var(--accent);

  /* Type */
  --display: "Sora", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(48rem 32rem at 72% 0%, rgba(216, 162, 106, 0.18), transparent 64%);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip:focus { top: 1rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.grad-text {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit;
  animation: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 21, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 68px;
  height: auto;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}
.brand,
.brand:link,
.brand:visited,
.brand:hover,
.brand:active {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand svg { display: block; flex: 0 0 auto; }
.brand b { font-family: inherit; font-weight: 700; font-style: normal; }
.brand span { color: var(--muted); font-family: inherit; font-weight: 500; font-style: normal; }
.nav-right { display: flex; align-items: center; gap: clamp(0.8rem, 2.4vw, 1.6rem); margin-left: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.25rem; }
.nav-links > a,
.nav-links summary { white-space: nowrap; }
.nav-links a,
.nav-links a:link,
.nav-links a:visited,
.nav-links a:hover,
.nav-links a:active,
.nav-links a[aria-current="page"],
.nav-links summary {
  color: var(--muted);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.3;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:active,
.nav-links a[aria-current="page"],
.nav-links summary:hover,
.nav-topics[open] > summary,
.nav-topics:has(a[aria-current="page"]) > summary { color: var(--text); }

.nav-topics { position: relative; display: flex; align-items: center; }
.nav-topics summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 4px;
}
.nav-topics summary::-webkit-details-marker { display: none; }
.nav-topics summary::marker { content: ""; }
.nav-topics summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}
.nav-topics[open] > summary::after { transform: translateY(0.12rem) rotate(225deg); }
.nav-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 15.5rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #12141f;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.85);
}
.nav-menu a,
.nav-menu a:link,
.nav-menu a:visited {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { background: rgba(216, 162, 106, 0.14); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(216, 162, 106, 0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 162, 106, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(216, 162, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 162, 106, 0); }
}

.hero { position: relative; z-index: 1; }
.orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(520px, 78vh, 820px);
  padding-block: clamp(3rem, 8vh, 6.5rem);
  max-width: 920px;
}
.hero .eyebrow { margin-bottom: 1.4rem; }
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.35rem, 6.4vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
  max-width: 12ch;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(4.25rem, 10vh, 7.5rem);
  border-top: 1px solid var(--border);
}
.section .eyebrow { margin-bottom: 1.15rem; }
.section h2,
.privacy-block h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.8vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.prose {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.0625rem;
}
.prose p + p,
.prose h3 + p { margin-top: 1.05rem; }
.prose h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 1.8rem;
}
.prose a,
.tool-card a,
.scene a,
.crosslink a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover,
.tool-card a:hover,
.scene a:hover,
.crosslink a:hover { color: var(--text); }

.tool-card {
  position: relative;
  width: min(100%, 56rem);
  max-width: 56rem;
  margin-inline: auto;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  box-shadow: 0 28px 80px -48px rgba(216, 162, 106, 0.45);
  padding: clamp(1.75rem, 4.5vw, 2.75rem);
  overflow: hidden;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.85;
}
.tool-card h2 { max-width: none; }
.tool-card p {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: none;
}
.tool-card p + p { margin-top: 0.95rem; }
.tool-card a { font-size: 1.0625rem; }

#generator .tool-note,
#today .tool-note {
  width: min(100%, 56rem);
  max-width: 56rem;
  margin-inline: auto;
}
.tool-note {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 1.1rem;
}

.scene-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}
.scene-split.is-flip {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.scene-split.is-flip .scene-copy { order: 2; }
.scene-split.is-flip .scene-art { order: 1; }
.scene-copy { min-width: 0; }
.scene-copy .prompt-list { max-width: none; }
.scene-art { margin: 0; min-width: 0; }
.scene-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  filter: saturate(0.8) hue-rotate(-18deg);
}
@media (max-width: 800px) {
  .scene-split,
  .scene-split.is-flip { grid-template-columns: 1fr; }
  .scene-split.is-flip .scene-copy,
  .scene-split.is-flip .scene-art { order: 0; }
  .scene-copy { order: 1; }
  .scene-art { order: 2; }
}

.jp-result { min-height: 5.5rem; }
.tool-card .jp-text {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: none;
  overflow-wrap: anywhere;
}
.jp-tip {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 1rem;
}
.jp-actions,
.jp-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.jp-hint {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: none;
}
.jp-btn {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}
a.jp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.jp-btn:hover { border-color: var(--cyan); }
.jp-btn-primary {
  color: #1a120c;
  border-color: transparent;
  background: var(--accent);
  font-weight: 600;
}
.jp-status {
  min-height: 1.5rem;
  margin-top: 0.85rem;
  color: var(--cyan);
  font-size: 1rem;
}
.jp-saved { margin-top: 0.4rem; }
.jp-saved-panel { margin-top: 0.9rem; }
.jp-saved-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
}
.jp-saved-list li {
  color: var(--muted);
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.page-year h1 { max-width: 14ch; }
.page-year .lede { max-width: 46ch; }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.scene {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.25rem 1.15rem 1.2rem;
}
.scene .tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}
.scene h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.scene p { color: var(--muted); font-size: 1rem; }
.scene .status,
.soon {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.scene a { display: inline-block; margin-top: 0.9rem; font-size: 1rem; }

.prompt-list {
  list-style: none;
  margin-top: 0.4rem;
  border-top: 1px solid var(--border);
  max-width: 760px;
}
.prompt-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.prompt-text {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.prompt-tip {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 1rem;
}

.crosslink {
  margin-top: 2.4rem;
  max-width: 760px;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.page-daily .hero-inner,
.page-topic .hero-inner {
  min-height: 0;
  padding-block: clamp(2.6rem, 7vh, 4.75rem);
}
.page-daily h1 { max-width: 11ch; }
.page-daily .lede,
.page-topic .lede { max-width: 46ch; }
.page-topic h1 { max-width: 16ch; }
.page-topic .section { padding-block: clamp(2.75rem, 7vh, 4.75rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.5rem;
}
.hero-quiet {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-quiet:hover { color: var(--text); }

.benefit-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.benefit-grid article,
.steps li {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.25rem 1.15rem 1.2rem;
}
.benefit-grid h3,
.steps h3,
.faq h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.benefit-grid p,
.steps p,
.faq p,
.related-intro,
.trust-copy {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.45rem;
}
.steps {
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.list-intro {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}
.faq { max-width: 68ch; }
.faq h3 { margin-top: 1.5rem; }
.faq h3:first-of-type { margin-top: 0.2rem; }
.faq a,
.related-list a,
.note a,
.trust-copy a,
.hero-quiet {
  text-underline-offset: 3px;
}
.faq a,
.related-list a,
.note a,
.trust-copy a {
  color: var(--accent);
  text-decoration: underline;
}
.faq a:hover,
.related-list a:hover,
.note a:hover,
.trust-copy a:hover { color: var(--text); }
.related-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  max-width: 36rem;
}
.related-list a { font-size: 1.0625rem; }
.note {
  width: min(100%, 56rem);
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  color: var(--muted);
  font-size: 1rem;
}
.trust-copy { max-width: 68ch; font-size: 1.0625rem; }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding-block: 2.4rem 2.6rem;
}
.privacy-block {
  max-width: 72ch;
  padding-bottom: 1.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.privacy-block h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.privacy-block p { color: var(--muted); font-size: 1rem; }
.privacy-block p + p { margin-top: 0.75rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-inner .brand { font-size: 1rem; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  color: var(--faint);
  font-size: 1rem;
}
.footer-meta .ops {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.footer-meta a { color: var(--muted); transition: color 0.2s ease; }
.footer-meta a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links { gap: 0.25rem 0.85rem; }
  .nav { overflow: visible; }
  .nav-inner:has(.nav-topics[open]) { align-items: flex-start; }
  .nav-right:has(.nav-topics[open]),
  .nav-links:has(.nav-topics[open]) { flex: 1 1 100%; width: 100%; margin-left: 0; }
  .nav-topics[open] {
    flex: 1 0 100%;
    display: block;
  }
  .nav-topics[open] .nav-menu {
    position: static;
    right: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 0.35rem;
    box-shadow: none;
  }
  .hero-actions .jp-btn-primary { width: 100%; }
  h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.15;
  }
  .hero-inner { min-height: 0; padding-block: 2.75rem 2.25rem; }
  .tool-card { border-radius: 18px; }
  .jp-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jp-actions .jp-btn-primary {
    grid-column: 1 / -1;
    width: 100%;
  }
  .eyebrow,
  .scene .tag,
  .soon,
  .footer-meta,
  .footer-meta .ops {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
