/* =============================================
   YILDIZLABS — Sleek Dark Mode & Electric Indigo Theme
   Background: #000000
   Brand Accent: #3533cd / #5250ec (Electric Indigo Blue)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #000000;
  --bg-alt: #05060b;
  --bg-card: rgba(12, 14, 22, 0.88);
  --primary: #3533cd;
  --primary-light: #5250ec;
  --primary-glow: rgba(82, 80, 236, 0.45);
  --primary-dim: rgba(53, 51, 205, 0.15);
  --accent-cyan: #38bdf8;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.09);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: rgba(82, 80, 236, 0.45); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ═══════════════════════════════════════
   ANIMATED BACKGROUND CANVAS & ORBS
   ═══════════════════════════════════════ */
#global-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Floating Electric Indigo Aura Orbs */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.orb-1 {
  top: -8vw;
  right: -8vw;
  width: min(60vw, 600px);
  height: auto;
  background: radial-gradient(circle, rgba(53, 51, 205, 0.28) 0%, rgba(53, 51, 205, 0.05) 55%, transparent 75%);
  animation: floatOrb1 16s ease-in-out infinite alternate;
}

.orb-2 {
  bottom: 2vw;
  left: -10vw;
  width: min(55vw, 550px);
  height: auto;
  background: radial-gradient(circle, rgba(82, 80, 236, 0.22) 0%, rgba(82, 80, 236, 0.04) 55%, transparent 75%);
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.orb-3 {
  top: 45vh;
  right: 15vw;
  width: min(45vw, 450px);
  height: auto;
  background: radial-gradient(circle, rgba(53, 51, 205, 0.18) 0%, transparent 70%);
  animation: floatOrb3 18s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-120px, 160px) scale(1.2); }
  100% { transform: translate(-200px, 80px) scale(0.85); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(160px, -140px) scale(1.25); }
  100% { transform: translate(90px, -220px) scale(0.9); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-140px, -100px) scale(1.15); }
  100% { transform: translate(-60px, 100px) scale(1); }
}

/* Eye-Catching Pattern Overlays */
.pattern-dots {
  position: relative;
}

.pattern-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  animation: patternDrift 30s linear infinite;
}

.pattern-grid {
  position: relative;
}

.pattern-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 6s ease-in-out infinite alternate;
}

@keyframes patternDrift {
  0% { background-position: 0 0; }
  100% { background-position: 32px 32px; }
}

@keyframes gridPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ═══════════════════════════════════════
   REVEAL
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ═══════════════════════════════════════
   NAVBAR (SLEEK DARK BACKDROP)
   ═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.35s ease;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  z-index: 101;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 14px var(--primary-glow));
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.logo-img + .logo-text {
  display: none !important;
}

.logo-text {
  font-family: 'Inter', var(--font), system-ui, sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
}

.logo-text .yildiz,
.logo-text .y-part,
.logo-text .ildiz-part {
  font-weight: 800;
  color: #ffffff;
}

.logo-text .labs,
.logo-text .labs-part {
  font-weight: 400;
  color: var(--primary-light);
  margin-left: 0.5px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.active { opacity: 1; pointer-events: all; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  padding: 10px 20px;
}

.mobile-menu a:hover { color: var(--primary-light); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 80px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--primary-light);
  text-shadow: 0 0 35px var(--primary-glow);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-fill {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 25px var(--primary-glow);
}

.btn-fill:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(82, 80, 236, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════ */
section { position: relative; }
section > .container { position: relative; z-index: 1; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about {
  padding: 120px 0;
}

.about-top {
  margin-bottom: 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.about-item {
  padding: 32px 28px;
  background: rgba(8, 9, 15, 0.9);
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.about-item:hover {
  background: rgba(14, 16, 26, 0.95);
  transform: translateY(-2px);
}

.about-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-dim);
  border: 1px solid rgba(53, 51, 205, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary-light);
  font-size: 1.15rem;
  box-shadow: 0 0 18px rgba(53, 51, 205, 0.25);
}

.about-item h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.about-item p {
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   COMING SOON
   ═══════════════════════════════════════ */
.coming-soon {
  padding: 100px 0 120px;
  text-align: center;
}

.coming-soon-card {
  background: rgba(8, 10, 18, 0.85);
  border: 1px solid rgba(82, 80, 236, 0.3);
  border-radius: 24px;
  padding: 68px 32px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(53, 51, 205, 0.15);
  position: relative;
  overflow: hidden;
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(82, 80, 236, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  padding: 6px 18px;
  background: rgba(53, 51, 205, 0.18);
  border: 1px solid rgba(82, 80, 236, 0.35);
  border-radius: 30px;
  margin-bottom: 24px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: indicatorPulse 1.8s infinite ease-in-out;
}

@keyframes indicatorPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.coming-soon-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.animated-dots span {
  display: inline-block;
  opacity: 0.15;
  color: var(--primary-light);
  text-shadow: 0 0 25px var(--primary-glow);
  animation: dotSequential 1.5s infinite ease-in-out;
}

.animated-dots .dot-1 { animation-delay: 0.0s; }
.animated-dots .dot-2 { animation-delay: 0.3s; }
.animated-dots .dot-3 { animation-delay: 0.6s; }

@keyframes dotSequential {
  0%, 100% { opacity: 0.15; transform: translateY(0) scale(0.9); }
  40% { opacity: 1; transform: translateY(-4px) scale(1.3); text-shadow: 0 0 35px var(--primary-glow); }
}

.coming-soon-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.nav-links a.nav-highlight {
  color: var(--primary-light);
  border: 1px solid rgba(82, 80, 236, 0.3);
  background: rgba(53, 51, 205, 0.12);
}
.nav-links a.nav-highlight:hover {
  background: var(--primary);
  color: #fff;
}

/* ═══════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════ */
.how {
  padding: 120px 0;
}

.how-top {
  margin-bottom: 56px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  box-shadow: 0 0 15px var(--primary-glow);
}

.how-step {
  text-align: center;
  padding: 0 16px;
}

.how-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-light);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 22px var(--primary-glow);
}

.how-step-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.how-step-text {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: #000000;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer-brand:hover {
  opacity: 0.9;
}
.footer-brand .logo-img {
  height: 34px;
}
.footer-brand .logo-text {
  font-size: 1.4rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary-light); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-row { grid-template-columns: 1fr; }
  .tech-row-left { border-right: none; border-bottom: 1px solid var(--border); }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .how-steps::before { display: none; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .mobile-menu { display: flex; }

  .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .about-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a1c29; border-radius: 3px; }
