/* ============================================================
   dublaj.online — Sinematik Bakım Sayfası
   Stil Dosyası
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colour tokens */
  --black: #0a0a0c;
  --anthracite: #16161a;
  --anthracite-light: #1e1e24;
  --white: #f0f0f0;
  --white-dim: #b0b0b8;
  --purple: #9b59ff;
  --purple-glow: #7c3aed;
  --purple-deep: #5b21b6;
  --purple-soft: rgba(155, 89, 255, 0.12);

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Film Grain Overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Ambient Light Beams ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-bg .beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  animation: beamPulse 12s ease-in-out infinite;
}

.ambient-bg .beam--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-deep) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.ambient-bg .beam--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  bottom: -20%;
  right: -8%;
  animation-delay: 4s;
}

.ambient-bg .beam--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(155, 89, 255, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 8s;
}

@keyframes beamPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(1.15); }
}

/* ---------- Main Layout ---------- */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* ---------- Header / Logo ---------- */
.site-header {
  width: 100%;
  padding: 2rem 1.5rem 0;
  display: flex;
  justify-content: center;
  animation: fadeSlideDown 1s ease-out both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand__text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.brand__text span {
  color: var(--purple);
}

/* ---------- Content Section ---------- */
.content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

/* Tag line */
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--purple);
  opacity: 0;
  animation: fadeIn 1s 0.3s ease-out forwards;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(155, 89, 255, 0.25);
  border-radius: 999px;
  background: var(--purple-soft);
}

/* Heading */
.headline {
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--white);
  opacity: 0;
  animation: fadeSlideUp 1s 0.5s ease-out forwards;
}

/* Description */
.description {
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 520px;
  opacity: 0;
  animation: fadeSlideUp 1s 0.7s ease-out forwards;
}

/* ---------- Status Indicator ---------- */
.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  background: var(--anthracite-light);
  border: 1px solid rgba(155, 89, 255, 0.15);
  border-radius: 999px;
  opacity: 0;
  animation: fadeIn 1s 0.9s ease-out forwards;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple-glow);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 6px var(--purple-glow); }
  50%      { opacity: 1;   box-shadow: 0 0 14px var(--purple); }
}

.status__label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-dim);
  font-weight: 500;
}

/* ---------- Sound Wave Canvas ---------- */
.wave-container {
  width: 100%;
  max-width: 480px;
  height: 72px;
  opacity: 0;
  animation: fadeIn 1.2s 1.1s ease-out forwards;
}

.wave-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- CTA text ---------- */
.cta-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeSlideUp 1s 1.3s ease-out forwards;
  position: relative;
}

.cta-text::after {
  content: '';
  display: block;
  margin: 0.6rem auto 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(176, 176, 184, 0.5);
  letter-spacing: 0.02em;
  animation: fadeIn 1.5s 1.5s ease-out both;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

  .ambient-bg .beam {
    opacity: 0.2 !important;
    animation: none !important;
  }

  .status__dot {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .ambient-bg .beam {
    filter: blur(80px);
  }

  .ambient-bg .beam--1 { width: 350px; height: 350px; }
  .ambient-bg .beam--2 { width: 300px; height: 300px; }
  .ambient-bg .beam--3 { width: 200px; height: 200px; }

  .wave-container {
    max-width: 320px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .site-header { padding-top: 1.5rem; }

  main { padding: 1.5rem 1.2rem; }

  .content { gap: 1.3rem; }

  .brand__icon { width: 32px; height: 32px; }
  .brand__text { font-size: 1.15rem; }

  .tag { font-size: 0.62rem; letter-spacing: 0.25em; }

  .description { font-size: 0.88rem; }

  .wave-container {
    max-width: 260px;
    height: 48px;
  }
}
