/* Rüyam / DreamBuddy — uygulamayla aynı "gökyüzü" teması (lib/app/theme/tokens.dart). */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #070b1a;
  --night-low: #0e1530;
  --surface: #0e1530;
  --raised: #141d40;
  --deep: #1b2656;
  --line: #1d2850;
  --line-strong: #2a3566;
  --moonlight: #e6ecff;
  --text-2: #a3aecf;
  --text-3: #7782a8;
  --ice: #8fb2ff;
  --gold: #e8c878;
  --on-gold: #0b1028;
  --moon: #fff3d1;
  --mint: #7fe0b0;
  --rose: #f09ac4;
  --radius: 24px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Süs öğeleri (ay, kıvılcım) kenardan taşsa da sayfa yana kaymasın. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--moonlight);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* Yıldızlı gökyüzü */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(230, 236, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 26% 42%, rgba(143, 178, 255, 0.8), transparent 60%),
    radial-gradient(2px 2px at 41% 12%, rgba(232, 200, 120, 0.9), transparent 60%),
    radial-gradient(1px 1px at 58% 30%, rgba(230, 236, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 8%, rgba(143, 178, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 84% 36%, rgba(230, 236, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 92% 20%, rgba(232, 200, 120, 0.7), transparent 60%),
    radial-gradient(1px 1px at 8% 64%, rgba(163, 174, 207, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 66% 58%, rgba(230, 236, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 36% 82%, rgba(143, 178, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 76%, rgba(232, 200, 120, 0.6), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0a1024 55%, var(--night-low) 100%);
}

a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--moonlight); }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }
.gold { color: var(--gold); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* Üst menü */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 26, 0.74);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--moonlight); text-decoration: none; font-family: "Fraunces", serif; font-weight: 600; font-size: 22px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.top nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--moonlight); background: rgba(143, 178, 255, 0.1); }
/* Dil menüsü */
.langs { position: relative; background: none; border: 0; padding: 0; margin: 0; }
.langs summary { list-style: none; cursor: pointer; color: var(--text-2); font-weight: 700; font-size: 15px; padding: 7px 11px; border-radius: 12px; border: 1px solid var(--line-strong); white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after, .langs[open] summary::after { content: none; }
.langs summary:hover, .langs[open] summary { color: var(--moonlight); background: rgba(143, 178, 255, 0.1); }
.langs-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 190px; display: flex; flex-direction: column; padding: 6px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); z-index: 20; }
.top nav .langs-menu a { padding: 9px 12px; border-radius: 10px; }
.top nav .langs-menu a[aria-current="true"] { color: var(--gold); }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 16px;
  font-weight: 800; font-size: 17px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 24px rgba(232,200,120,.22); }
.btn-primary:hover { color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 32px rgba(232,200,120,.36); }
.btn-ghost { background: rgba(143, 178, 255, 0.08); color: var(--moonlight); border: 1px solid rgba(143, 178, 255, 0.3); }
.btn-ghost:hover { color: var(--moonlight); background: rgba(143, 178, 255, 0.16); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Kahraman alanı */
.hero { padding: 56px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero h1 { text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 20px; color: var(--text-2); max-width: 36ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-sky { position: relative; justify-self: center; width: min(100%, 320px); }
.hero-sky::before {
  /* Telefonun arkasındaki ay ışığı */
  content: "";
  position: absolute;
  inset: -12% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(143, 178, 255, 0.22), rgba(232, 200, 120, 0.06) 60%, transparent);
}
.hero-sky .moon { position: absolute; width: 72px; right: -36px; top: -24px; animation: float 7s ease-in-out infinite; }
.hero-sky .spark { position: absolute; width: 28px; animation: twinkle 3.2s ease-in-out infinite; }
.hero-sky .spark.a { left: -34px; top: 34%; }
.hero-sky .spark.b { right: -26px; bottom: 18%; width: 20px; animation-delay: 1.4s; }

/* Telefon çerçevesi */
.phone {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 20;
  border-radius: 34px;
  border: 6px solid var(--raised);
  outline: 1px solid var(--line-strong);
  background: var(--night);
  box-shadow: 0 30px 60px rgba(2, 4, 12, 0.7);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Bölümler */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--raised); margin-bottom: 16px; font-size: 24px; }
.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-inline-end: 10px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-family: "Nunito", sans-serif; font-weight: 800; font-size: 16px; vertical-align: 3px; }

/* Beş yorumcu */
.personas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.persona { text-align: center; padding: 24px 16px; }
.persona img { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px; display: block; box-shadow: 0 0 0 4px var(--raised), 0 0 32px rgba(143, 178, 255, 0.18); }
.persona h3 { font-size: 20px; margin-bottom: 2px; }
.persona .topic { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.persona p:last-child { margin: 0; color: var(--text-2); font-size: 15px; }

/* Ekran görüntüleri */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; text-align: center; }
.shots figcaption { margin-top: 12px; color: var(--text-2); font-size: 15px; font-weight: 700; }

.premium { background: linear-gradient(135deg, rgba(232, 200, 120, 0.13), var(--surface) 60%); border-color: rgba(232, 200, 120, 0.35); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.premium .stardust { width: 120px; height: 120px; animation: twinkle 4s ease-in-out infinite; }
.premium ul { margin: 0; padding-inline-start: 20px; color: var(--text-2); }
.eyebrow { color: var(--gold); letter-spacing: 0.18em; font-weight: 800; font-size: 13px; text-transform: uppercase; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 20px; margin-bottom: 12px; }
details summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: inline-end; color: var(--gold); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 18px; color: var(--text-2); }

/* Belge sayfaları (gizlilik, koşullar...) */
.doc { padding: 48px 0 64px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 26px; margin-top: 1.6em; }
.doc h3 { font-size: 19px; margin-top: 1.3em; font-family: "Nunito", sans-serif; font-weight: 800; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin-bottom: 0.4em; }
.doc strong { color: var(--moonlight); }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
/* Almancadaki gibi uzun bileşik kelimeler dar ekranda bölünsün. */
.doc { overflow-wrap: break-word; hyphens: auto; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--moonlight); }
.doc .meta { color: var(--text-3); font-size: 15px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 24px; margin: 24px 0; }
.toc ol { margin: 0; padding-inline-start: 20px; columns: 2; column-gap: 32px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--moonlight); }
.note { background: rgba(143, 178, 255, 0.08); border: 1px solid rgba(143, 178, 255, 0.3); border-radius: 16px; padding: 14px 18px; color: var(--text-2); }

/* Alt bilgi */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text-2); text-decoration: none; font-size: 15px; }
footer a:hover { color: var(--moonlight); }

@media (max-width: 960px) {
  .personas { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-sky { width: min(72%, 280px); margin-top: 16px; }
  .cta { justify-content: center; }
  .grid3 { grid-template-columns: 1fr; }
  .premium { grid-template-columns: 1fr; text-align: center; }
  .premium .stardust { margin: 0 auto; }
  .premium ul { text-align: start; }
  .toc ol { columns: 1; }
  .top nav a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .top nav { gap: 2px; flex-wrap: nowrap; }
  .top nav a { padding: 8px 9px; font-size: 14px; }
  .brand { font-size: 20px; }
  .personas { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .persona:last-child { grid-column: 1 / -1; }
  .shots { gap: 12px; }
  .phone { border-radius: 24px; border-width: 4px; }
}
@media (max-width: 400px) {
  html:not([lang="tr"]) .brand-name { display: none; }
}
