/* ============ DreamWave Journal — dark water ============ */

:root {
  --ink: #04060a;
  --mist: #8b96a3;
  --mist-dim: #5a636e;
  --glow: #cfd8e0;
  --line: rgba(160, 175, 190, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  /* water-droplet cursor, hotspot at the tip */
  --droplet: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'><path d='M13 2 C13 2 6.5 11 6.5 16 a6.5 6.5 0 0 0 13 0 C19.5 11 13 2 13 2 Z' fill='rgba(205,215,225,0.92)'/><ellipse cx='10.6' cy='15.4' rx='1.6' ry='2.6' fill='rgba(255,255,255,0.55)' transform='rotate(-18 10.6 15.4)'/></svg>") 13 2, auto;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--mist);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  cursor: var(--droplet);
  overflow-x: hidden;
}

a, button { cursor: var(--droplet); }

::selection { background: rgba(160, 175, 190, 0.25); color: var(--glow); }

/* ---------- water canvas ---------- */
#water {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

/* ---------- gate (intro) ---------- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 1.6s ease, visibility 1.6s;
}
#gate.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.gate-inner { position: relative; padding: 2rem; animation: surface 2.4s ease both; }

/* the falling droplet — the site's opening breath */
#droplet {
  position: fixed;
  left: 50%;
  top: -5vh;
  width: 15px;
  height: 21px;
  margin-left: -7px;
  z-index: 12;
  background: radial-gradient(ellipse 60% 45% at 38% 30%, rgba(235, 242, 248, 0.9), rgba(140, 155, 170, 0.35) 55%, rgba(30, 38, 48, 0.9));
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  box-shadow: inset -2px -3px 5px rgba(0, 0, 0, 0.7), 0 0 10px rgba(180, 200, 220, 0.25);
  animation: fall 1.15s cubic-bezier(0.45, 0, 0.9, 0.6) 0.5s both;
  pointer-events: none;
}
@keyframes fall {
  0%   { transform: translateY(0) scaleY(1); opacity: 0; }
  12%  { opacity: 1; }
  85%  { transform: translateY(55vh) scaleY(1.15); opacity: 1; }
  100% { transform: translateY(57vh) scaleY(0.35); opacity: 0; }
}

@keyframes surface {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* the app's glowing circle logo, hovering above the title */
.gate-logo {
  display: block;
  width: clamp(72px, 12vw, 100px);
  height: auto;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(45, 90, 220, 0.45), 0 0 90px rgba(45, 90, 220, 0.2);
  animation: breathe 5s ease-in-out infinite;
}

.gate-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: var(--glow);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 60px rgba(150, 170, 190, 0.25);
}
.gate-title span {
  display: block;
  font-size: 0.32em;
  letter-spacing: 0.75em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 1rem;
  margin-left: 0.4em;
}

.gate-sub {
  margin-top: 2rem;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #3f4750;
}

@keyframes breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

#enter-btn {
  margin-top: 3rem;
  background: transparent;
  color: var(--glow);
  border: 1px solid rgba(180, 195, 210, 0.35);
  border-radius: 999px;
  padding: 0.9rem 3.4rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-indent: 0.4em; /* optically center the tracked text */
  text-transform: uppercase;
  transition: background 0.6s, box-shadow 0.6s, border-color 0.6s;
}
#enter-btn:hover {
  background: rgba(150, 170, 190, 0.08);
  border-color: rgba(200, 215, 230, 0.7);
  box-shadow: 0 0 40px rgba(140, 160, 180, 0.18), inset 0 0 20px rgba(140, 160, 180, 0.08);
}

/* ---------- main site ---------- */
#site {
  position: relative;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease;
}
#site.awake { opacity: 1; visibility: visible; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 6vw, 5rem);
  background: linear-gradient(rgba(4, 6, 10, 0.85), rgba(4, 6, 10, 0));
  backdrop-filter: blur(2px);
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--glow);
  letter-spacing: 0.08em;
}
.navlinks { display: flex; gap: 2.2rem; align-items: center; }
.navlinks a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.4s;
}
.navlinks a:hover { color: var(--glow); }
.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
}

/* hero */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 clamp(1.5rem, 8vw, 6rem);
}

.kicker {
  font-size: 0.68rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 1.4rem;
}

.hero-logo {
  display: block;
  width: clamp(72px, 12vw, 100px);
  height: auto;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(45, 90, 220, 0.45), 0 0 90px rgba(45, 90, 220, 0.2);
  animation: breathe 5s ease-in-out infinite;
}

.hero h2, .section h3 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--glow);
  line-height: 1.15;
}
.hero h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.hero h2 em, .section h3 em { font-style: italic; }

.lede {
  max-width: 44rem;
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--mist);
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-solid, .btn-ghost {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  transition: all 0.5s;
}
.btn-solid {
  color: var(--ink);
  background: var(--glow);
  font-weight: 500;
}
.btn-solid:hover { box-shadow: 0 0 50px rgba(170, 190, 210, 0.35); }
.btn-ghost {
  color: var(--mist);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--glow); border-color: rgba(200, 215, 230, 0.5); }

/* Store icons inside the hero buttons */
.hero-actions .btn-solid, .hero-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.btn-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}
.btn-soon { cursor: default; opacity: 0.75; }
.btn-soon:hover { color: var(--mist); border-color: var(--line); }

.scroll-hint { margin-top: 5rem; }
.scroll-hint span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--mist-dim), transparent);
  animation: sink 2.6s ease-in-out infinite;
}
@keyframes sink {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}

/* sections */
.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 10rem) clamp(1.5rem, 6vw, 4rem);
}
.section h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 2.4rem; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  font-size: 1rem;
}

/* "Why this exists" — centered, larger title over the three columns */
#sanctuary .kicker { text-align: center; }
#sanctuary h3 {
  text-align: center;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 3rem;
}

/* "Why this exists" — stacked on narrow screens, three even columns on wide.
   Skips the two-across stage that would orphan the third paragraph. */
.reason-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
  font-size: 1rem;
}
@media (min-width: 900px) {
  .reason-cols { grid-template-columns: repeat(3, 1fr); }
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.step-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--mist-dim);
  letter-spacing: 0.2em;
}
.step h4, .card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--glow);
  margin: 0.7rem 0 0.6rem;
}
.step p, .card p { font-size: 0.92rem; color: var(--mist); }

/* feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  background: rgba(10, 14, 20, 0.45);
  backdrop-filter: blur(3px);
  transition: border-color 0.6s, transform 0.6s, box-shadow 0.6s;
}
.card:hover {
  border-color: rgba(190, 205, 220, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(120, 145, 170, 0.06);
}

/* integration turn-line */
.turn-line {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--glow);
}

/* review block, nested at the base of the closing section */
.review-block {
  margin-top: 10rem;
  padding-top: 5rem;
  border-top: 1px solid var(--line);
}
.review-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1rem);
  margin-bottom: 2rem;
}
.review-stars svg {
  width: clamp(2rem, 5vw, 3rem);
  height: clamp(2rem, 5vw, 3rem);
  fill: #2d5adc;
  filter: drop-shadow(0 0 14px rgba(45, 90, 220, 0.55));
}

/* availability banner */
.availability-banner {
  background: rgba(45, 90, 220, 0.08);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.4rem) clamp(1.5rem, 6vw, 4rem);
}
.banner-content {
  max-width: 68rem;
  margin: 0 auto;
  text-align: center;
}
.banner-text {
  font-size: 0.95rem;
  color: var(--mist);
  line-height: 1.6;
}
.banner-text strong {
  color: var(--glow);
  font-weight: 500;
}

/* closing */
.closing { text-align: center; }
.closing h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.closing .lede { margin-left: auto; margin-right: auto; }
.closing footer {
  margin-top: 7rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .navlinks { gap: 1.1rem; }
  .navlinks a { font-size: 0.62rem; letter-spacing: 0.18em; }
}

/* ---------- screenshot carousel ---------- */
.carousel { position: relative; margin-top: 2.5rem; }
.carousel-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.2rem 1.5rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: center;
  margin: 0;
}
.phone {
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  border: 1px solid rgba(170, 185, 200, 0.18);
  background: linear-gradient(160deg, #0c131c, #05080d);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(120, 145, 170, 0.05);
  overflow: hidden;
  position: relative;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* graceful placeholder until a screenshot is dropped in */
.phone img[src$=".png"]:not([src]),
.phone::after {
  content: "screenshot";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist-dim);
  z-index: -1;
}
.shot figcaption {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--mist);
  line-height: 1.55;
}
.shot figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--glow);
  margin-bottom: 0.4rem;
}
.carousel-nav {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.carousel-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.4s, border-color 0.4s;
}
.carousel-nav button:hover { color: var(--glow); border-color: rgba(200, 215, 230, 0.5); }

/* ---------- journal: multi-tab list ---------- */
.tab-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
  max-width: 48rem;
}
@media (min-width: 760px) {
  .tab-list { grid-template-columns: 1fr 1fr; gap: 1.6rem 2.6rem; }
}
.tab-list li {
  border-left: 2px solid rgba(160, 175, 190, 0.28);
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.6;
}
.tab-list li strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: #e8edf2;
  letter-spacing: 0.01em;
  margin-bottom: 0.55rem;
}

/* ---------- journal: ownership ---------- */
.ownership {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.6rem;
}
.ownership h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--glow);
  margin: 0 0 1.8rem;
}
.own-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.own-list li {
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.6;
}
.own-list li strong { color: var(--glow); font-weight: 500; }
.own-list a {
  color: var(--mist);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.4s;
}
.own-list a:hover { color: var(--glow); }

/* ---------- footer legal links (main site) ---------- */
.closing footer a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.4s;
}
.closing footer a:hover { color: var(--glow); }
.footer-links { display: flex; gap: 1.4rem; }

/* ============ legal pages (Privacy / Terms) ============ */
.legal-page {
  background: radial-gradient(130% 90% at 50% -20%, #0a131e 0%, #04060a 55%);
  min-height: 100vh;
  cursor: auto; /* normal cursor: these pages are for reading */
}
.legal-page a { cursor: pointer; }

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.6rem clamp(1.4rem, 6vw, 2rem);
}
.legal-nav .brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--glow);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.legal-nav .back {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.4s;
}
.legal-nav .back:hover { color: var(--glow); }

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem clamp(1.4rem, 6vw, 2rem) 5rem;
}
.legal .kicker {
  font-size: 0.66rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 1.2rem;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--glow);
  line-height: 1.1;
}
.legal .updated {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--mist-dim);
}
.legal .lead {
  margin-top: 1.8rem;
  font-size: 1.02rem;
  color: var(--mist);
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--glow);
  margin: 2.8rem 0 0.9rem;
}
.legal h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--glow);
  margin: 1.6rem 0 0.6rem;
}
.legal p { margin: 0.9rem 0; color: var(--mist); }
.legal ul { margin: 0.7rem 0 0.9rem; padding-left: 1.3rem; }
.legal li { margin: 0.4rem 0; color: var(--mist); }
.legal a { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--glow); font-weight: 500; }
.legal .callout {
  border-left: 2px solid rgba(160, 175, 190, 0.3);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--glow);
}
.legal-foot {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem clamp(1.4rem, 6vw, 2rem) 4rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-dim);
}
.legal-foot a { color: var(--mist); text-decoration: none; }
.legal-foot a:hover { color: var(--glow); }

/* ---------- contact form ---------- */
.contact-form { margin-top: 2.5rem; display: grid; gap: 1.4rem; }
.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist-dim);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--glow);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(190, 205, 220, 0.5);
  box-shadow: 0 0 25px rgba(120, 145, 170, 0.12);
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form button {
  justify-self: start;
  border: none;
  font-family: var(--sans);
  cursor: pointer;
}
.thanks-page { text-align: center; padding-top: 14vh; }
