/* ============================================================
   Octopus Player — Shared Styles (Vibrant Aurora Glassmorphism)
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ─── Design Tokens ─── */
:root {
  --bg:               #f5f6fa;
  --bg-surface:       rgba(255, 255, 255, 0.55);
  --bg-surface-hover: rgba(255, 255, 255, 0.85);
  
  --text:             #0f172a; /* Deep Slate */
  --text-silver:      #475569; /* Slate 600 */
  --text-muted:       #64748b; /* Slate 500 */
  
  --border:           rgba(255, 255, 255, 0.6);
  --border-glow:      rgba(99, 102, 241, 0.15);
  
  --accent:           #6366f1; /* Indigo */
  --accent-gradient:  linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --accent-hover:     linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
  
  --radius:           20px;
  --topbar-h:         72px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background-color: var(--bg);
  background-image: linear-gradient(135deg, #f5f3ff 0%, #f0fdfa 50%, #eff6ff 100%);
  color: var(--text);
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg { display: block; max-width: 100%; height: auto; flex-shrink: 0; }

/* ─── Aurora Background Blobs ─── */
.aurora-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.45;
  animation: float-aurora 25s ease-in-out infinite alternate;
}
.aurora-blob--1 {
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(199, 210, 254, 0.8) 0%, rgba(129, 140, 248, 0.4) 100%);
  animation-duration: 22s;
}
.aurora-blob--2 {
  top: 15%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(253, 207, 232, 0.8) 0%, rgba(244, 114, 182, 0.4) 100%);
  animation-duration: 30s;
  animation-delay: -5s;
}
.aurora-blob--3 {
  bottom: 15%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.8) 0%, rgba(251, 146, 236, 0.4) 100%);
  animation-duration: 26s;
  animation-delay: -12s;
}
.aurora-blob--4 {
  bottom: -10%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(153, 246, 228, 0.8) 0%, rgba(45, 212, 191, 0.4) 100%);
  animation-duration: 28s;
  animation-delay: -4s;
}

@keyframes float-aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
  100% { transform: translate(-30px, -50px) scale(0.9); }
}

/* ─── Layout Helper ─── */
.container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px;
  position: relative; z-index: 5;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ─── Typography Utils ─── */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: 999px; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent-gradient);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.3);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5);
}
.btn--secondary {
  background: rgba(255, 255, 255, 0.6);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
}
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ─── Topbar (Floating Glass Pill) ─── */
.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1140px;
  height: 64px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.08);
}
.topbar__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 32px; height: 32px; }
.brand__logo rect { fill: url(#logoGrad); stroke: rgba(255, 255, 255, 0.5); }
.brand__logo path { fill: white; }
.brand__text { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text-silver);
  border-radius: 999px; transition: all 0.2s ease;
}
.nav-desktop a:hover { color: var(--accent); background: rgba(99, 102, 241, 0.05); }

/* ─── Footer (Zengin Gece Laciverti) ─── */
.site-footer {
  padding: 80px 0 40px;
  background: #0d0b21;
  color: #a1a1aa;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 64px;
}
.site-footer__brand p { font-size: 14px; color: #8e90a6; line-height: 1.6; max-width: 300px; margin-top: 16px;}
.site-footer h4 { font-size: 14px; font-weight: 700; color: #FFF; margin: 0 0 20px; letter-spacing: 0.02em; }
.site-footer__links { display: flex; flex-direction: column; gap: 12px; }
.site-footer__links a { font-size: 14px; color: #8e90a6; transition: color 0.2s; }
.site-footer__links a:hover { color: #f472b6; }
.site-footer__bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between;
  font-size: 13px; color: #5c5f7d;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ─── Responsive Navigation and Drawer ─── */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-toggle:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--accent);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer Container */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s;
}
.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-drawer.open .mobile-drawer__backdrop {
  opacity: 1;
}
.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
}
.mobile-drawer.open .mobile-drawer__panel {
  transform: translateX(0);
}
.mobile-drawer__panel a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-silver);
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s;
  text-align: left;
}
.mobile-drawer__panel a:hover, .mobile-drawer__panel a.active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}
.mobile-drawer__panel .btn--primary {
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .topbar {
    top: 8px;
    width: calc(100% - 16px);
    height: 56px;
    border-radius: 16px;
  }
  .topbar__inner {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .topbar__cta .btn {
    display: none;
  }
}

/* ─── Animations ─── */
.reveal-up { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-up.in, .reveal-scale.in, .reveal-left.in, .reveal-right.in { opacity: 1; transform: translate(0) scale(1); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
