/* ==========================================================================
   Wavelog Mobile — tanıtım sayfası
   Uygulamanın kendi tema paletine sadık: Sky-500 seed + Slate nötrler
   (bkz. lib/core/theme/app_theme.dart)
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0f172a;
  --bg-soft: #0b1220;
  --surface: #1e293b;
  --surface-alt: #182234;
  --surface-high: #263447;
  --border-subtle: #1e2d42;
  --border-mid: #2d3f55;
  --border: #475569;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-mute: #64748b;
  --seed: #0ea5e9;
  --seed-strong: #0284c7;
  --accent: #22d3ee;
  --onair: #f59e0b;
  --confirmed: #34d399;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-head: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --shadow-glow: 0 0 0 1px rgba(14, 165, 233, 0.12), 0 24px 60px -20px rgba(2, 8, 23, 0.75);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Grid/flex children default to a content-based min-width and can force
   their track wider than the viewport ("grid blowout"); reset it everywhere
   a row can hold long text or images next to each other. */
.hero-grid > *,
.nav-inner > *,
.origin > *,
.stats-grid > *,
.feature-grid > *,
.showcase-scroller > *,
.origin-list .item > * {
  min-width: 0;
}

/* Ambient background glow, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 480px at 12% -6%, rgba(14, 165, 233, 0.22), transparent 60%),
    radial-gradient(620px 480px at 92% 8%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(14, 165, 233, 0.1), transparent 60%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--onair);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
}

.nav-links a {
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--seed), var(--seed-strong));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(14, 165, 233, 0.65);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(14, 165, 233, 0.8);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border-mid);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: var(--border);
  transform: translateY(-2px);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  margin: 18px 0 20px;
}

.hero h1 .accent-text {
  background: linear-gradient(120deg, var(--seed), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.32); }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge .lbl { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .lbl span:first-child { font-size: 10.5px; color: #b7c0cc; }
.store-badge .lbl span:last-child { font-size: 15.5px; font-weight: 600; }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 13.5px;
}
.hero-meta strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  display: block;
}

/* Phone mockup */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.wave-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.wave-rings span {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1.5px solid rgba(14, 165, 233, 0.35);
  animation: ring-expand 3.6s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.wave-rings span:nth-child(2) { animation-delay: 1.2s; }
.wave-rings span:nth-child(3) { animation-delay: 2.4s; }

@keyframes ring-expand {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(4.2); opacity: 0; }
}

.phone-frame {
  position: relative;
  width: 260px;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(155deg, #202c3f, #0d1522);
  border: 1px solid var(--border-mid);
  box-shadow: var(--shadow-glow);
  animation: float-phone 5s ease-in-out infinite;
  z-index: 2;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
}
.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  /* Matches the real screenshot pixel ratio (560×996, ~9:16) — the previous
     9:19.5 (modern-notch-phone) ratio was narrower than the actual images,
     so object-fit:cover scaled them up and cropped both side edges. */
  aspect-ratio: 560 / 996;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float-phone {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

.phone-frame.satellite {
  position: absolute;
  width: 160px;
  opacity: 0.9;
  animation-duration: 6.5s;
}
.phone-frame.satellite.left {
  left: -6%;
  bottom: 6%;
  transform: rotate(-9deg);
  animation-name: float-phone-left;
}
.phone-frame.satellite.right {
  right: -4%;
  top: 4%;
  transform: rotate(9deg);
  animation-name: float-phone-right;
}
@keyframes float-phone-left {
  0%, 100% { transform: translateY(0) rotate(-9deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}
@keyframes float-phone-right {
  0%, 100% { transform: translateY(0) rotate(9deg); }
  50% { transform: translateY(10px) rotate(6deg); }
}

/* ---------- Section shared ---------- */
section { position: relative; padding: 108px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 16px 0 14px;
}
.section-head p { color: var(--text-dim); font-size: 16.5px; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger .reveal:nth-child(6) { transition-delay: 0.4s; }
.stagger .reveal:nth-child(7) { transition-delay: 0.48s; }
.stagger .reveal:nth-child(8) { transition-delay: 0.56s; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 20px 40px -22px rgba(14, 165, 233, 0.5);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 16px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
}
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Showcase (screenshots) ---------- */
.showcase-wrap {
  position: relative;
}

/* Edge fades hint that the row scrolls — otherwise a partially-cut last
   card reads as a layout bug rather than "swipe/scroll for more". */
.showcase-wrap::before,
.showcase-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 28px;
  width: 64px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.showcase-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
  opacity: 0;
}
.showcase-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.showcase-wrap.at-start::before { opacity: 0; }
.showcase-wrap.at-end::after { opacity: 0; }

.showcase-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.showcase-nav:hover { transform: translateY(-50%) scale(1.08); border-color: rgba(14, 165, 233, 0.5); }
.showcase-nav.prev { left: -6px; }
.showcase-nav.next { right: -6px; }
.showcase-nav:disabled { opacity: 0; pointer-events: none; }

.showcase-scroller {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 12px 4px 28px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.showcase-scroller::-webkit-scrollbar { display: none; }

.showcase-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 230px;
}
.showcase-item .phone-frame {
  width: 100%;
  animation: none;
  margin-bottom: 18px;
}
.showcase-item .phone-frame:hover { transform: translateY(-6px); transition: transform 0.3s ease; }
.showcase-item h4 {
  font-family: var(--font-head);
  font-size: 15.5px;
  margin-bottom: 6px;
}
.showcase-item p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  padding: 64px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  background: linear-gradient(120deg, var(--seed), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  color: var(--text-mute);
  font-size: 13.5px;
  margin-top: 6px;
}

/* ---------- Origin / story ---------- */
.origin {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.origin-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.origin-card blockquote {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}
.origin-card cite {
  font-style: normal;
  color: var(--text-mute);
  font-size: 13.5px;
}
.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.pill {
  font-size: 12.5px;
  font-family: var(--font-mono);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
}

.origin-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.origin-list .item {
  display: flex;
  gap: 16px;
}
.origin-list .num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
  width: 30px;
  flex-shrink: 0;
}
.origin-list h4 { font-size: 16px; margin-bottom: 4px; }
.origin-list p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(14, 165, 233, 0.35);
  background: var(--surface);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-item[open] .faq-caret {
  transform: rotate(45deg);
  background: rgba(34, 211, 238, 0.12);
}
.faq-item p {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  animation: faq-in 0.25s ease;
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Final CTA ---------- */
.cta-banner {
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.25), transparent 55%);
  animation: drift 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3%, 3%) rotate(6deg); }
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.cta-banner p { color: var(--text-dim); margin-bottom: 32px; font-size: 16.5px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
}
.footer-brand img { width: 24px; height: 24px; }
.footer-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--text); }
.footer-fine {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-mute);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stage { order: -1; min-height: 440px; overflow: hidden; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .origin { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  /* Touch devices swipe directly; the round buttons mostly just cover content. */
  .showcase-nav { display: none; }
}

@media (max-width: 480px) {
  .phone-frame.satellite { width: 120px; }
  .phone-frame.satellite.left { left: 2%; }
  .phone-frame.satellite.right { right: 2%; }
}

@media (max-width: 560px) {
  .hero { padding: 140px 0 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 76px 0; }
  .cta-banner { padding: 48px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 16px 22px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-inner { gap: 12px; }
  .brand { font-size: 16.5px; }
  .btn-primary { padding: 10px 18px; font-size: 13.5px; }
}

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