/* =========================================================
   Anadolu Nöromüsküler Akademisi — Hazırlık aşaması
   Cinematic neuroscience theme · mobile-first · responsive
   ========================================================= */

:root {
  --bg-void:    #04070f;
  --bg-deep:    #060c1c;
  --bg-panel:   rgba(10, 18, 38, 0.55);

  --blue:       #2f7bf6;
  --blue-soft:  #4f93ff;
  --cyan:       #38d6f3;
  --amber:      #ff9d3a;
  --red:        #ff5460;

  --ink:        #eaf2ff;
  --ink-muted:  #9bb0d4;
  --line:       rgba(120, 165, 235, 0.18);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-script:  "Instrument Serif", Georgia, serif;

  --shadow-glow: 0 30px 80px -20px rgba(20, 90, 220, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 78% -10%, rgba(47, 123, 246, 0.22), transparent 60%),
    radial-gradient(900px 700px at 8% 110%, rgba(56, 214, 243, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-void) 70%);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Atmospheric layers ---------- */
#neural {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; filter: blur(70px); }
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob--blue  { width: 46vw; height: 46vw; top: -12vw; right: -8vw; background: radial-gradient(circle, var(--blue), transparent 65%); }
.blob--cyan  { width: 38vw; height: 38vw; bottom: -14vw; left: -10vw; background: radial-gradient(circle, var(--cyan), transparent 65%); animation-delay: -6s; }
.blob--amber { width: 26vw; height: 26vw; top: 40%; left: 38%; background: radial-gradient(circle, var(--amber), transparent 60%); opacity: 0.28; animation-delay: -11s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -3vw, 0) scale(1.12); }
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3.5rem);
}

.panel {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-panel);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 40px 120px -40px rgba(0, 10, 40, 0.9), inset 0 1px 0 rgba(255,255,255,0.04);
}

@media (min-width: 880px) {
  .panel { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Intro / copy ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(47, 123, 246, 0.12);
  border: 1px solid rgba(79, 147, 255, 0.35);
  border-radius: 999px;
  text-transform: none;
}
.badge__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(56, 214, 243, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 214, 243, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(56, 214, 243, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 214, 243, 0); }
}

.title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 1.4rem 0 0.4rem;
  display: flex;
  flex-direction: column;
}
.title__line {
  font-size: clamp(2.3rem, 7.5vw, 4.4rem);
  color: var(--ink);
}
.title__line--accent {
  background: linear-gradient(100deg, var(--blue-soft), var(--cyan) 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title__script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  color: var(--ink-muted);
  margin-top: 0.1rem;
  letter-spacing: 0.01em;
}

/* ---------- Facts ---------- */
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0;
}
.fact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 16, 34, 0.5);
  flex: 1 1 auto;
  min-width: 0;
}
.fact svg {
  width: 26px; height: 26px; flex-shrink: 0;
  fill: none; stroke: var(--cyan); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.fact__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.fact strong { font-size: 0.98rem; font-weight: 600; }

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1.6rem 0 2rem;
  max-width: 420px;
}
.cd {
  text-align: center;
  padding: 0.85rem 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(47,123,246,0.12), rgba(8,16,34,0.5));
}
.cd__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cd__unit {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- CTA ---------- */
.mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #04101f;
  text-decoration: none;
  background: linear-gradient(100deg, var(--cyan), var(--blue-soft));
  box-shadow: 0 14px 34px -12px rgba(56, 214, 243, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  max-width: 100%;
}
.mail svg { width: 20px; height: 20px; fill: none; stroke: #04101f; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(56, 214, 243, 0.85); filter: brightness(1.05); }
.cta__note { margin-top: 0.85rem; color: var(--ink-muted); font-size: 0.85rem; }

/* ---------- Poster ---------- */
.poster {
  position: relative;
  border-radius: 20px;
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.poster__glow {
  position: absolute; inset: -8% -8% -12%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, rgba(47,123,246,0.55), transparent 70%);
  filter: blur(34px);
  opacity: 0.85;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.55; transform: scale(1.04); } }
.poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(120, 175, 255, 0.25);
  box-shadow: var(--shadow-glow);
}
.poster figcaption {
  position: absolute;
  bottom: 0.9rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(4, 8, 18, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
@media (hover: hover) and (min-width: 880px) {
  .poster:hover { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-4px); }
}

/* ---------- Footer ---------- */
.credit {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.credit a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.credit a:hover { text-decoration: underline; }
.credit .heart { color: var(--red); animation: beat 1.6s ease-in-out infinite; display: inline-block; }
@keyframes beat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.2); } }

/* ---------- Reveal-on-load ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.intro [data-reveal]:nth-child(1) { animation-delay: 0.15s; }
.intro [data-reveal]:nth-child(2) { animation-delay: 0.28s; }
.intro [data-reveal]:nth-child(3) { animation-delay: 0.41s; }
.intro [data-reveal]:nth-child(4) { animation-delay: 0.54s; }
.intro [data-reveal]:nth-child(5) { animation-delay: 0.67s; }
.poster[data-reveal] { animation-delay: 0.3s; animation-duration: 1.1s; }

@keyframes reveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 879px) {
  .panel { padding: 1.4rem; }
  .poster { order: -1; max-width: 360px; margin: 0 auto; }
  .facts { flex-direction: column; }
  .fact { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .countdown { gap: 0.4rem; }
  .cd { padding: 0.7rem 0.2rem; }
}
