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

:root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 5.5%;
  --primary: 199 89% 48%;
  --primary-hover: 199 89% 42%;
  --primary-foreground: 0 0% 100%;
  --muted: 240 4% 16%;
  --muted-foreground: 240 5% 64.9%;
  --border: 240 4% 16%;
  --success: 142 76% 45%;
  --violet: 262 83% 58%;
  --radius: 0.625rem;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
}

::selection {
  background: hsl(var(--primary) / 0.25);
  color: hsl(var(--foreground));
}

/* ---------- Arka plan katmanları ---------- */

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% -10%,
    hsl(var(--primary) / 0.15),
    transparent 70%
  );
}

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.45;
  z-index: 0;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: hsl(var(--primary) / 0.18);
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.orb-2 {
  width: 360px;
  height: 360px;
  bottom: -60px;
  left: -60px;
  background: hsl(var(--violet) / 0.12);
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, hsl(var(--primary) / 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
}

@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- Yerleşim ---------- */

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  text-align: center;
}

/* ---------- Giriş animasyonu ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}

body.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orb {
    animation: none;
  }
}

/* ---------- Marka ---------- */

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
}

.status-dot {
  position: relative;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--success));
  box-shadow: 0 0 8px hsl(var(--success) / 0.6);
}

.status-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: hsl(var(--success));
  animation: status-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ---------- Başlık ---------- */

.title {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.title-accent {
  background: linear-gradient(
    135deg,
    hsl(var(--foreground)) 0%,
    hsl(var(--primary)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto 2rem;
}

/* ---------- Geri sayım ---------- */

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 4.25rem;
  padding: 0.875rem 0.5rem;
  border-radius: var(--radius);
  background: hsl(var(--card) / 0.75);
  border: 1px solid hsl(var(--border));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

.count-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.count-label {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}

.count-sep {
  align-self: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary) / 0.5);
  padding-bottom: 1rem;
}

/* ---------- Durum kartı ---------- */

.card {
  text-align: left;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: hsl(var(--card) / 0.75);
  border: 1px solid hsl(var(--border));
  box-shadow:
    0 24px 48px rgb(0 0 0 / 0.35),
    0 0 0 1px hsl(var(--primary) / 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.card-status .status-dot {
  width: 0.4375rem;
  height: 0.4375rem;
}

.card-meta {
  font-size: 0.6875rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  color: hsl(var(--muted-foreground));
}

/* ---------- Pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  position: relative;
}

.pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.875rem;
  left: calc(50% + 0.875rem);
  width: calc(100% - 0.5rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    hsl(142 76% 36% / 0.4),
    hsl(var(--primary) / 0.3)
  );
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
}

.step-icon.is-done {
  background: hsl(142 76% 36% / 0.15);
  border: 1px solid hsl(142 76% 36% / 0.3);
  color: hsl(142 70% 58%);
}

.step-icon.is-current {
  background: hsl(var(--primary) / 0.12);
  border: 1px solid hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
}

.step-icon.is-current .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  animation: pulse-dot 2s ease-in-out infinite;
}

.step-icon.is-pending {
  background: hsl(var(--border) / 0.25);
  border: 1px solid hsl(var(--border));
}

.step-icon.is-pending .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: hsl(var(--muted-foreground) / 0.5);
}

.step-label {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
}

/* ---------- İlerleme çubuğu ---------- */

.progress {
  height: 0.375rem;
  border-radius: 9999px;
  overflow: hidden;
  background: hsl(var(--muted) / 0.35);
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, hsl(142 76% 42%), hsl(var(--primary)));
  box-shadow: 0 0 12px hsl(var(--primary) / 0.4);
  transition: width 1.2s cubic-bezier(0.32, 0.72, 0, 1) 0.6s;
}

body.is-loaded .progress-fill {
  width: var(--progress, 0%);
}

.progress-text {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.progress-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--primary));
}

/* ---------- Metrikler ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.metric {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--muted) / 0.25);
  border: 1px solid hsl(var(--border) / 0.6);
}

.metric-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--foreground));
}

.metric-label {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}

/* ---------- Bildirim formu ---------- */

.notify {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.notify-block {
  width: 100%;
  max-width: 28rem;
  text-align: center;
}

.notify-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.notify-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.notify-input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--background) / 0.55);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.notify-input:focus {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: hsl(var(--primary-hover));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px hsl(var(--primary) / 0.25);
}

.btn-primary svg {
  transition: transform 0.2s;
}

.btn-primary:hover svg {
  transform: translateX(2px);
}

.notify-hint {
  margin-top: 0.625rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ---------- Sosyal ---------- */

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--muted-foreground));
  background: hsl(var(--card) / 0.6);
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}

.social-link:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.08);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ---------- Alt bilgi ---------- */

.footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.footer a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Animasyonlar ---------- */

@keyframes status-ping {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

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

@keyframes orb-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-40px, 30px);
  }
}

/* ---------- Duyarlı ---------- */

@media (max-width: 540px) {
  .countdown {
    gap: 0.375rem;
  }

  .count-box {
    min-width: 0;
    flex: 1;
    padding: 0.625rem 0.25rem;
  }

  .count-value {
    font-size: 1.125rem;
  }

  .count-sep {
    display: none;
  }

  .pipeline {
    gap: 0.25rem;
  }

  .step-label {
    font-size: 0.5625rem;
  }

  .notify-form {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }
}
