/* coralspeak tanıtım — ortak tasarım dili (theme.css) üzerine kurulu.
   Beyaz zemin, ince dev başlıklar, gökkuşağı saç çizgileri, buzlu cam kutular.
   Arka plandaki canlı ızgara fx.js tarafından #grid-bg tuvaline çizilir. */

html { scroll-behavior: smooth; }
/* Zemin her koşulda açık: tuval çizilmese bile sayfa kararmasın */
body { background: var(--wash); }

/* içerik tuvalin üstünde kalsın */
header.nav, main, footer { position: relative; z-index: 1; }

img, svg { max-width: 100%; }
a { color: inherit; }

/* ------------------------------------------------------------------- üst bar */

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 3.125rem;
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.wordmark {
  font-size: 1.4rem; font-weight: 500; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--c-blue); }
.nav nav { display: flex; gap: 1.75rem; }
.nav nav a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: color .18s ease, transform .18s ease;
}
.nav nav a:hover { color: var(--ink); transform: translateY(-1px); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--ink); }

/* --------------------------------------------------------------------- hero */

.hero { max-width: 78rem; margin: 0 auto; padding: 6rem 3.125rem 4rem; }
.kicker {
  font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.hero h1 {
  font-weight: 200; font-size: max(2.5rem, 5.6vw); line-height: 1.03;
  letter-spacing: -0.03em; margin: 0 0 1.75rem;
}
.hero h1 em { font-style: normal; font-weight: 500; }
.hero .lede { max-width: 40rem; font-size: 1.1rem; line-height: 1.65; color: var(--muted); }

/* ------------------------------------------------------------- demo kutusu */

.demo {
  max-width: 44rem; margin: 3.5rem 0 0; padding: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.demo-title { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; }
.voice-pick { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  padding: 0.35rem 0.95rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(255,255,255,0.6);
  font-family: var(--sans); font-size: 0.82rem; color: var(--muted); cursor: pointer;
  transition: all .16s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.demo textarea {
  width: 100%; margin: 1.1rem 0 0.6rem; border: none; resize: none; background: none;
  font-family: var(--sans); font-size: 1.05rem; line-height: 1.55; color: var(--ink); outline: none;
}
.player-row { display: flex; align-items: center; gap: 1rem; }
.play-btn {
  width: 3rem; height: 3rem; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .16s ease;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn:disabled { opacity: .5; cursor: wait; }
.wave-wrap { flex: 1; height: 2.75rem; }
.wave-wrap canvas { width: 100%; height: 100%; display: block; }
.demo-time { font-size: 0.8rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.demo-foot { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }
.demo-note { font-size: 0.82rem; color: var(--faint); }

/* ------------------------------------------------------------- istatistikler */

.stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line-soft);
}
.stats div { position: relative; padding-left: 1.1rem; }
.stats div::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; bottom: 0.2rem; width: 1px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2) 15%, rgba(0,0,0,0.2) 85%, rgba(0,0,0,0));
}
.stats b { display: block; font-size: max(1.8rem, 2.6vw); font-weight: 200; letter-spacing: -0.03em; line-height: 1; }
.stats span { display: block; margin-top: 0.5rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stats, .hero .lede, .band > h2, .how h2, .cta h2, .cta p {
  /* Canlı ızgara zemininde metin kaybolmasın: arkasına ince beyaz sis */
  text-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 4px rgba(255,255,255,0.9);
}

/* ------------------------------------------------------------------ bölümler */

.band { max-width: 78rem; margin: 0 auto; padding: 7rem 3.125rem; }
.band > h2, .how h2, .cta h2 {
  font-weight: 200; font-size: max(2.1rem, 3.8vw); line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 3rem;
}
.band::before, .how::before {
  content: ""; display: block; height: 1px; background: var(--rainbow);
  margin-bottom: 3rem; opacity: 0.85;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 2.5rem; }
.features article {
  padding: 1.75rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.features h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.features p { font-size: 0.95rem; line-height: 1.65; color: var(--muted); }

/* nasıl çalışır */
.how { max-width: 78rem; margin: 0 auto; padding: 7rem 3.125rem; }
.how ol { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem; }
.how .step {
  display: block; font-size: 0.8rem; letter-spacing: 0.18em; color: var(--c-blue);
  margin-bottom: 1rem; font-weight: 500;
}
.how h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.7rem; }
.how p { font-size: 0.95rem; line-height: 1.65; color: var(--muted); }

/* koyu şerit — beyaz zeminde kontrast noktası */
.band.alt {
  max-width: none; margin-top: 0; background: var(--ink); color: #fff;
  padding-left: max(3.125rem, calc((100vw - 78rem) / 2 + 3.125rem));
  padding-right: max(3.125rem, calc((100vw - 78rem) / 2 + 3.125rem));
}
.band.alt::before { opacity: 1; }
.band.alt h2 { color: #fff; font-size: max(1.6rem, 2.2vw); margin-bottom: 1.2rem; }
.band.alt p { color: rgba(255,255,255,0.72); font-size: 0.98rem; line-height: 1.7; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 4rem; }

/* --------------------------------------------------------------- deneme kutusu */

.trial { max-width: 78rem; margin: 0 auto; padding: 7rem 3.125rem; }
.trial-box {
  max-width: 40rem; margin: 0 auto; padding: 3rem; text-align: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-lg); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.trial-box h2 { font-weight: 200; font-size: max(1.8rem, 2.6vw); letter-spacing: -0.03em; margin-bottom: 1rem; }
.trial-box > p { color: var(--muted); font-size: 0.98rem; line-height: 1.65; margin-bottom: 2rem; }
#trial-form { display: flex; flex-direction: column; gap: 0.7rem; }
#trial-form input {
  padding: 0.85rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255,255,255,0.7); font-family: var(--sans); font-size: 0.95rem; outline: none;
  transition: border-color .16s ease;
}
#trial-form input:focus { border-color: var(--ink); }
#trial-result code {
  display: block; padding: 0.9rem; margin: 0.8rem 0;
  background: rgba(0,0,0,0.04); border-radius: var(--r-sm);
  font-size: 0.8rem; word-break: break-all;
}
#trial-result .ok { color: var(--ok); font-weight: 500; }
.hint-sm { font-size: 0.8rem; color: var(--faint); margin-bottom: 1.2rem; }

/* ------------------------------------------------------------------ kapanış */

.cta { max-width: 78rem; margin: 0 auto; padding: 7rem 3.125rem; text-align: center; }
.cta p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 34rem; margin: 0 auto 2.5rem; }

footer {
  margin: 0 3.125rem 2.5rem; padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  color: var(--muted); font-size: 0.88rem;
}
footer nav { display: flex; gap: 1.5rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ mobil */

@media (max-width: 760px) {
  .nav { padding: 1.2rem 1.4rem; }
  .nav nav { display: none; }
  .hero, .band, .how, .trial, .cta { padding-left: 1.4rem; padding-right: 1.4rem; }
  .hero { padding-top: 3.5rem; }
  .band, .how, .trial, .cta { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .trial-box { padding: 2rem 1.4rem; }
  footer { margin: 0 1.4rem 1.4rem; padding: 1.75rem; }
}
