:root {
  --night-950: #070a1b;
  --night-900: #0b1028;
  --night-800: #151a3d;
  --indigo-700: #5744bd;
  --violet-500: #9b87f5;
  --violet-300: #c9bdff;
  --gold-400: #f4c879;
  --rose-300: #eba9c6;
  --ink: #f7f5ff;
  --text: #d7d4e5;
  --muted: #aaa7bc;
  --line: rgba(255,255,255,.11);
  --panel: rgba(20,24,58,.82);
  --panel-strong: rgba(13,17,44,.95);
  --shadow: 0 24px 70px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -4%, rgba(88,68,189,.43), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(21,82,124,.28), transparent 27rem),
    linear-gradient(180deg, var(--night-950), var(--night-900) 54%, #070a1d);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .19;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.2px);
  background-size: 79px 79px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
a { color: var(--violet-300); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .75rem 1rem; background: #fff; color: #11142f; border-radius: .6rem; }
.skip-link:focus { top: 1rem; }

.site-nav {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font: 500 1.35rem/1.1 Georgia, serif; }
.brand-moon { width: 1.8rem; height: 1.8rem; border-radius: 50%; box-shadow: -.48rem .28rem 0 0 var(--gold-400); transform: rotate(-18deg); }
.nav-links { display: flex; align-items: center; gap: 1.45rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.nav-links a:hover { color: #fff; }
.nav-cta { padding: .64rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff !important; }

.container { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow { margin: 0 0 .75rem; color: var(--violet-300); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, .display { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.025em; }
h1 { font-size: clamp(2.55rem, 7vw, 5rem); line-height: 1.02; margin: .5rem 0 1rem; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; margin: 0 0 1rem; }
h3 { line-height: 1.25; }
.lead { max-width: 720px; color: #c8c5d7; font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.7; }
.muted { color: var(--muted); }
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 2rem; text-align: center; }
.hero .lead { margin: 0 auto; }
.hero compact { display: block; }
.accent { color: var(--violet-300); font-style: italic; }

.dream-form {
  max-width: 820px;
  margin: 2rem auto 0;
  padding: .55rem;
  border-radius: 1.55rem;
  background: linear-gradient(135deg, rgba(201,189,255,.52), rgba(39,102,155,.19));
  box-shadow: var(--shadow);
  text-align: left;
}
.dream-form-inner { padding: 1rem; border-radius: 1.1rem; background: var(--panel-strong); }
.dream-form textarea { width: 100%; min-height: 118px; padding: .35rem; border: 0; resize: vertical; background: transparent; color: #fff; line-height: 1.65; outline: 0; }
.dream-form textarea::placeholder { color: #85839a; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.privacy-note { color: var(--muted); font-size: .8rem; }
.interpret-status { margin: .65rem 0 0; color: var(--gold-400); font-size: .95rem; }
.reading-result { scroll-margin-top: 1.5rem; }
.reading-result > .lead { font-size: 1.08rem; max-width: none; }
.reading-symbols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.reading-symbol { padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.reading-symbol h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.reading-symbol p { color: var(--text); margin: 0 0 .75rem; }
.reading-emotions, .reading-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.reading-emotions button { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; background: var(--night-900); color: var(--text); cursor: pointer; }
.reading-emotions button[aria-pressed="true"] { border-color: var(--gold-400); background: var(--gold-400); color: var(--night-900); }
.reading-method { color: var(--muted); font-size: .95rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .78rem 1.15rem; border: 0; border-radius: .78rem; background: linear-gradient(135deg, #a88eff, #6650d5); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 10px 28px rgba(91,69,202,.32); transition: transform .18s ease, filter .18s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.055); box-shadow: none; color: var(--text); }
.button:disabled { cursor: wait; opacity: .68; }
.button.gold { background: var(--gold-400); color: #201935; box-shadow: 0 10px 28px rgba(244,200,121,.18); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem; margin: 1.25rem auto 0; color: var(--muted); font-size: .83rem; }
.chip { padding: .42rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); color: #d2cede; text-decoration: none; }
.chip:hover { border-color: rgba(201,189,255,.6); color: #fff; }

.section { padding: clamp(4.5rem, 9vw, 7rem) 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); }
.search-bar { position: relative; max-width: 620px; margin: 1.5rem 0 2rem; }
.search-bar input { width: 100%; min-height: 52px; padding: .8rem 1rem .8rem 2.85rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255,255,255,.055); color: #fff; }
.search-bar::before { content: "⌕"; position: absolute; left: 1rem; top: .45rem; color: var(--violet-300); font-size: 1.55rem; }
.dream-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .9rem; }
.dream-card { display: flex; flex-direction: column; min-height: 195px; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.15rem; background: linear-gradient(145deg, rgba(29,33,74,.83), rgba(14,18,46,.78)); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.dream-card:hover { transform: translateY(-4px); border-color: rgba(201,189,255,.46); }
.dream-icon { font-size: 1.8rem; line-height: 1; }
.dream-card h3 { margin: 1.4rem 0 .45rem; font-size: 1.08rem; }
.dream-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.dream-card .card-link { margin-top: auto; padding-top: 1rem; color: var(--violet-300); font-size: .8rem; font-weight: 700; }
.empty { display: none; padding: 1.2rem; border: 1px dashed var(--line); border-radius: 1rem; color: var(--muted); }

.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.value-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.035); }
.value-card b { display: block; margin-bottom: .45rem; color: var(--gold-400); }
.value-card p { margin: 0; color: var(--muted); }
.color-strip { display: grid; grid-template-columns: 1.4fr 1fr .7fr; height: .55rem; margin: 2rem 0 1.25rem; overflow: hidden; border-radius: 999px; }
.color-strip span:nth-child(1) { background: #101737; }
.color-strip span:nth-child(2) { background: var(--violet-500); }
.color-strip span:nth-child(3) { background: var(--gold-400); }

.breadcrumbs { padding-top: 2rem; color: #8f8ca1; font-size: .83rem; }
.breadcrumbs a { color: #aaa6ba; text-decoration: none; }
.article-header { max-width: 880px; margin: 2.8rem auto 0; text-align: center; }
.article-header h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.5rem; margin-top: 1.2rem; color: #918da3; font-size: .8rem; }
.article { margin-top: 2.8rem; }
.article p, .article li { color: var(--text); font-size: 1.06rem; line-height: 1.82; }
.article h2 { margin-top: 4rem; }
.article h3 { margin: 1.8rem 0 .6rem; }
.answer-box { padding: 1.55rem; border: 1px solid rgba(201,189,255,.28); border-radius: 1.2rem; background: linear-gradient(145deg, rgba(46,44,95,.84), rgba(17,22,54,.92)); }
.answer-box .label { display: block; margin-bottom: .5rem; color: var(--violet-300); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.answer-box p { margin: 0; color: #f0edf9; font-size: 1.12rem; }
.lens-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.lens { padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.lens b { display: block; margin-bottom: .45rem; color: #fff; }
.lens p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.58; }
.emotion-box { margin-top: 1.2rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: 1.1rem; background: rgba(11,15,42,.86); }
.emotion-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.emotion-buttons button { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); color: var(--text); cursor: pointer; }
.emotion-buttons button[aria-pressed="true"] { border-color: var(--violet-300); background: var(--indigo-700); color: #fff; }
.emotion-reading { min-height: 106px; padding: 1rem; border-left: 3px solid var(--violet-500); border-radius: .3rem .85rem .85rem .3rem; background: rgba(155,135,245,.09); }
.emotion-reading p { margin: .35rem 0 0; font-size: .98rem; }
.scenario { padding: 1rem 0; border-top: 1px solid var(--line); }
.scenario strong { color: #fff; }
.reflect { margin: 1.5rem 0; padding: 1.35rem; border: 1px solid rgba(244,200,121,.2); border-radius: 1rem; background: rgba(244,200,121,.065); }
.reflect ol { margin-bottom: 0; padding-left: 1.3rem; }
.science-note { padding-left: 1.2rem; border-left: 2px solid rgba(155,135,245,.64); }
.source-note { color: #9894aa !important; font-size: .9rem !important; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.related-card { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: rgba(255,255,255,.038); color: #e7e3f2; text-decoration: none; }
.related-card span { display: block; margin-top: .25rem; color: var(--muted); font-size: .8rem; }
.article-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.cta-box { margin: 4rem 0 2rem; padding: 2rem; border: 1px solid rgba(201,189,255,.26); border-radius: 1.3rem; background: linear-gradient(135deg, rgba(95,71,195,.29), rgba(31,42,83,.7)); text-align: center; }
.cta-box h2 { margin-top: 0; }
.cta-box p { max-width: 570px; margin: 0 auto 1.25rem; }
.faq details { padding: 1rem 0; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { margin-bottom: 0; font-size: .98rem; }
.disclaimer { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: #9793a8 !important; font-size: .88rem !important; }
.hero-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 2rem; border: 1px solid var(--line); border-radius: 1.4rem; box-shadow: var(--shadow); }

.journal-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 1rem; align-items: start; }
.panel { padding: 1.35rem; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--panel); }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; color: var(--text); font-size: .88rem; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .7rem; background: rgba(5,8,25,.6); color: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.journal-list { display: grid; gap: .75rem; }
.entry { padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255,255,255,.035); }
.entry h3 { margin: 0 0 .3rem; }
.entry-meta { color: var(--violet-300); font-size: .78rem; }
.entry p { margin-bottom: 0; color: var(--muted); white-space: pre-wrap; }
.entry button { margin-top: .75rem; border: 0; background: transparent; color: #dca0b9; cursor: pointer; }
.notice { padding: .9rem 1rem; border: 1px solid rgba(244,200,121,.2); border-radius: .8rem; background: rgba(244,200,121,.06); color: #d8cfbb; font-size: .88rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 20; transform: translate(-50%, 1rem); padding: .75rem 1rem; border-radius: .7rem; background: #fff; color: #15162a; font-weight: 750; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.site-footer { width: min(1100px, calc(100% - 2rem)); margin: 6rem auto 0; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1.25rem; color: #838095; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #aaa6ba; text-decoration: none; }
.footer-button { padding: 0; border: 0; background: transparent; color: #aaa6ba; font: inherit; cursor: pointer; }
.footer-button:hover { color: #fff; }

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 40;
  width: min(920px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  border: 1px solid rgba(201,189,255,.35);
  border-radius: 1rem;
  background: rgba(11,16,40,.98);
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.consent-banner strong { display: block; margin-bottom: .2rem; color: #fff; }
.consent-banner p { max-width: 590px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.consent-banner a { display: inline-block; margin-top: .3rem; font-size: .82rem; }
.consent-actions { display: flex; flex: 0 0 auto; gap: .55rem; }

@media (max-width: 850px) {
  .dream-grid { grid-template-columns: 1fr 1fr; }
  .value-grid, .lens-grid { grid-template-columns: 1fr; }
  .journal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .site-nav { min-height: 66px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .brand { font-size: 1.15rem; }
  .hero { padding-top: 3rem; }
  .form-row { align-items: flex-end; }
  .privacy-note { max-width: 9rem; }
  .dream-grid { grid-template-columns: 1fr; }
  .dream-card { min-height: 170px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .6rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article { margin-top: 2rem; }
  .article p, .article li { font-size: 1rem; }
  .cta-box { padding: 1.5rem 1.1rem; }
  .site-footer { display: block; }
  .footer-links { margin-top: .75rem; }
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
