/* EnneAgraM — site styles. Palette taken from the instrument's own interface (navy panels, sky-blue controls, violet / magenta accents). */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #070b14;
  --bg-2: #0b1222;
  --panel: #101a2f;
  --panel-2: #14203a;
  --line: rgba(140, 175, 255, 0.16);
  --text: #e9edf8;
  --muted: #9aa7c4;
  --accent: #7cc0ff;
  --accent-strong: #4fa3ff;
  --violet: #c89bff;
  --magenta: #ff5bd9;
  --teal: #2bd6a3;
  --radius: 14px;
  --wrap: 1120px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--panel); padding: 8px 12px; border-radius: 8px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { filter: drop-shadow(0 0 8px rgba(124, 192, 255, 0.55)); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--body); color: #06101f;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  box-shadow: 0 8px 28px rgba(124, 160, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 34px rgba(124, 160, 255, 0.38); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 56px;
  background:
    radial-gradient(900px 420px at 50% -60px, rgba(79, 163, 255, 0.22), transparent 70%),
    radial-gradient(700px 380px at 85% 30%, rgba(200, 155, 255, 0.14), transparent 70%),
    radial-gradient(600px 360px at 10% 40%, rgba(43, 214, 163, 0.08), transparent 70%);
}
.hero__figure {
  position: absolute; width: 760px; height: 760px; left: 50%; top: -150px; transform: translateX(-50%);
  fill: none; stroke: rgba(160, 190, 255, 0.16); stroke-width: 0.6; pointer-events: none;
}
.hero__in { position: relative; text-align: center; }
.emblem {
  display: block; width: 132px; height: 132px; margin: 0 auto 22px; overflow: visible;
  filter: drop-shadow(0 0 14px rgba(124, 192, 255, 0.65)) drop-shadow(0 0 40px rgba(200, 155, 255, 0.35));
}
.emblem__ring { fill: rgba(10, 18, 36, 0.55); stroke: #eaf3ff; stroke-width: 3.2; }
.emblem__line { fill: none; stroke: #eaf3ff; stroke-width: 2.6; stroke-linejoin: round; }
.emblem__dots circle { fill: #ffffff; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(52px, 9vw, 104px); line-height: 1; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #b9d6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tag { margin: 18px auto 0; max-width: 720px; font-size: clamp(19px, 2.4vw, 24px); color: var(--text); }
.hero__sub { margin: 12px auto 0; max-width: 680px; color: var(--muted); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero__note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.shot--hero { margin-top: 48px; }
.shot--hero img { box-shadow: 0 40px 120px rgba(40, 90, 200, 0.28), 0 30px 80px rgba(0, 0, 0, 0.6); }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
.shot figcaption strong { color: var(--text); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.section__lead { margin: 12px 0 0; color: var(--muted); max-width: 680px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card {
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
}
.card h3 { margin: 0 0 8px; font-size: 18px; color: #f3f6ff; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- oscillators ---------- */
.osc { display: grid; grid-template-columns: 1fr 1.35fr; gap: 28px; margin-top: 40px; align-items: start; }
.osc__modes { display: grid; gap: 14px; }
.card--mode h3 { color: var(--accent); }
.osc__list { padding: 24px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.osc__list h3 { margin: 0; font-size: 18px; }
.osc__list .ticks { margin: 14px 0 0; }
.osc__list li { color: var(--muted); font-size: 15px; }
.osc__list li strong, .editor__text li strong { color: var(--text); }

/* ---------- wavetable editor ---------- */
.editor { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; margin-top: 40px; align-items: start; }
.editor__text h3 { margin: 0 0 6px; font-size: 20px; }
.editor__text h3 + p { margin-top: 0; color: var(--muted); }
.editor__text .ticks { margin: 12px 0 26px; }
.editor__text li { color: var(--muted); font-size: 15px; }
.editor__wide { margin-top: 44px; }

/* ---------- sampler + resonance ---------- */
.credits { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 900px; }
.credits strong { color: var(--text); }
.reso { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; margin-top: 40px; align-items: start; }
.reso__list { margin: 0; }
.reso__list li { color: var(--muted); font-size: 15px; }
.reso__list li strong { color: var(--text); }
.sub { margin: 56px 0 0; font-size: 20px; }
.small { font-size: 14px; margin: 6px 0 0; }
#tracks-432 { margin-top: 20px; }

/* ---------- sounds ---------- */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; }
.track {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.track__play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #06101f;
  display: grid; place-items: center;
}
.track__play:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.track__play svg { width: 18px; height: 18px; fill: currentColor; }
.track__body { flex: 1; min-width: 0; }
.track__name { margin: 0; font-weight: 600; }
.track__kind { margin: 0; color: var(--muted); font-size: 14px; }
.track__bar { position: relative; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
.track__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--magenta)); }
.track__time { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 28px; margin-top: 36px; }

/* ---------- demo / download ---------- */
.demo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.demo__text p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0; }
.ticks li { position: relative; padding-left: 28px; margin: 9px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.dl {
  padding: 28px; border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(124, 192, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.dl h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.dl__meta { margin: 6px 0 20px; color: var(--muted); font-size: 14px; }
.dl__small { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.dl__details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.dl__details summary { cursor: pointer; font-weight: 600; }
.dl__details ul, .dl__details p { color: var(--muted); font-size: 14px; }
.dl__details ul { padding-left: 18px; }
.hash { display: grid; gap: 4px; }
.hash span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.hash code { font-size: 12px; word-break: break-all; color: var(--text); background: rgba(0, 0, 0, 0.3); padding: 8px; border-radius: 8px; }

/* ---------- notify form ---------- */
.notify { margin-top: 28px; display: grid; gap: 14px; padding: 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; font-weight: 600; }
.field input {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #0a1120; color: var(--text); font: 16px var(--body);
}
.field input:focus { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--accent-strong); }
.notify .btn { justify-self: start; }
.form__note { margin: 0; color: var(--muted); font-size: 13px; }
.form__status { margin: 0; min-height: 1.2em; font-size: 15px; }
.form__status.is-ok { color: var(--teal); }
.form__status.is-err { color: #ff8a8a; }
.feedback { margin-top: 28px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq:first-of-type { margin-top: 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- footer ---------- */
.footer { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 88px; }
.legal h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery, .tracks, .osc, .editor, .reso { grid-template-columns: 1fr; }
  .emblem { width: 96px; height: 96px; margin-bottom: 16px; }
  .demo { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topbar__in { justify-content: space-between; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .section { padding: 64px 0; }
  .hero__figure { width: 520px; height: 520px; top: -90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* 08.10 — sosyal baglantilar (alt bilgi + takip satiri) */
.footer .social { display: flex; gap: 16px; }
.footer .social a { display: inline-flex; align-items: center; gap: 6px; }
.footer .social a:hover { color: var(--text, inherit); }
.follow { margin-top: 10px; color: var(--muted); }

/* 08.10 — bilgisayar klavyesi haritasi (demo bolumu) */
.kbdmap .sub { margin-top: 48px; }
.kbdmap p { max-width: 760px; }
.kbdmap__fig { margin-top: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kbdmap__svg { display: block; width: 100%; min-width: 540px; max-width: 760px; height: auto; }
.kbdmap__svg .kw { fill: #e4eaf7; stroke: #070b14; stroke-width: 1; }
.kbdmap__svg .kb { fill: #0b1222; stroke: rgba(140, 175, 255, 0.45); stroke-width: 1; }
.kbdmap__svg .kc text { font: 700 15px var(--body); text-anchor: middle; fill: #070b14; }
.kbdmap__svg .kc--lo rect { fill: #2bd6a3; }
.kbdmap__svg .kc--hi rect { fill: #c89bff; }
.kbdmap__svg .kc--onblack text { font-size: 13px; }
.kbdmap__svg .kn { font: 600 13px var(--body); fill: #9aa7c4; }
.kbdmap__tag { padding: 1px 7px; border-radius: 5px; color: #070b14; font-weight: 600; }
.kbdmap__tag--lo { background: #2bd6a3; }
.kbdmap__tag--hi { background: #c89bff; }

/* 08.10 — 'No DAW · No mastering' rozetleri (ses bolumleri) */
.rawnote { margin: 14px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.rawnote__chip { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--teal);
  color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
