@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;700&display=swap');

:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --accent-cyan: #00f3ff;
  --accent-magenta: #ff00ea;
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-hover: rgba(255, 255, 255, 0.05);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative; /* Needed for ::before */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.05) 0%, transparent 50%);
}

/* FULL PAGE STEM-X APP STYLE LED BARS BACKGROUND */
.led-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: flex;
  justify-content: space-between; /* push groups to left and right edges */
  pointer-events: none;
  overflow: hidden;
  padding: 0 4vw; /* keep them slightly away from the exact edge */
}

.led-group {
  display: flex;
  gap: 2.5vw; /* space between individual bars */
  align-items: center;
}

.led-bar {
  width: 4px; /* Thin distinct glass tube */
  height: 120vh; /* taller than screen */
  top: -10vh;
  position: relative;
  background: #ffffff; /* Solid white core for true fluorescent effect */
  border-radius: 4px;
}

/* FUSE VOID Fluorescent Tube (Sharp Neon Cyan Glow) */
.led-cyan {
  box-shadow: 
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #00ffff,
    0 0 40px #00ffff,
    0 0 80px #00ffff,
    0 0 120px #00ffff;
}

/* Behaviors: Az yanan sabit duran, Hizli yanan, Yavas yanan */
.led-static {
  opacity: 0.2; 
}

.led-fast {
  animation: pulseFast 0.8s ease-in-out infinite alternate; 
}

.led-slow {
  animation: pulseSlow 3s ease-in-out infinite alternate; 
}

.led-slow-2 {
  animation: pulseSlow 5s ease-in-out infinite alternate-reverse; 
}

@keyframes pulseFast {
  0% { opacity: 0.1; }
  100% { opacity: 1; }
}

@keyframes pulseSlow {
  0% { opacity: 0.15; }
  100% { opacity: 0.8; }
}

/* --------------------------------- */
/* SONIC DATA STREAMS (Matrix Vibe)  */
/* --------------------------------- */
.data-stream {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100vh;
  z-index: -2; /* Behind the LED tubes */
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  opacity: 0.2; /* Subtly embedded in the darkness */
  pointer-events: none;
  overflow: hidden;
  line-height: 1.8;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.stream-left {
  left: 12vw; /* Right next to the left LED group */
  text-align: left;
}

.stream-right {
  right: 12vw; /* Right next to the right LED group */
  text-align: right;
}

.stream-wrapper {
  display: flex;
  flex-direction: column;
}

.stream-text {
  padding-bottom: 20px;
}

/* Flowing Down */
.stream-down {
  animation: scrollDown 40s linear infinite;
}

/* Flowing Up */
.stream-up {
  animation: scrollUp 40s linear infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  background: transparent;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.nav-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-apple-link:hover {
  color: var(--accent-cyan) !important;
  filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  margin-top: -2rem; /* visually center better */
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 4rem;
  line-height: 1.6;
}

/* Cards Grid */
.cards-container {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
}

.product-card {
  background: rgba(20, 20, 20, 0.4); /* Made more transparent so the glow shines through */
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 400px;
  text-decoration: none;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate; /* Create stacking context for pseudo-elements */
}

/* Linear glare effect */
/* Glare gradient in Cyan */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(0, 243, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(0, 243, 255, 0.1) 75%,
    transparent 80%
  );
  z-index: 2;
  transition: opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

/* Localized Fluid Droplet (Smoke/Oil) animation */
@keyframes dropletMove {
  0% { top: 90%; left: 10%; transform: scale(1) translate(-50%, -50%); }
  33% { top: 80%; left: 90%; transform: scale(1.5) translate(-50%, -50%); }
  66% { top: 10%; left: 70%; transform: scale(0.8) translate(-50%, -50%); }
  100% { top: 20%; left: -10%; transform: scale(1.2) translate(-50%, -50%); }
}

/* Clean, Slow, Diamond-Clear Liquid element */
.product-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  margin-top: -125px;
  margin-left: -125px;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.9;
  filter: blur(40px); /* Clean, flawless blur without glitchy contrast */
  mix-blend-mode: screen; /* Emissive pure light */
  pointer-events: none;
  transition: all 0.6s ease;
}

/* Bring text above the fluid and lasers */
.product-card > * {
  z-index: 1;
  position: relative;
}

/* --------------------------------- */
/* LASER BARS (STEM-X Vibe Grid)     */
/* --------------------------------- */
.laser-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%; /* Extra width for scrolling */
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1; /* Subtle by default */
  transition: opacity 0.5s ease;
  animation: laserScrollX 20s linear infinite;
  mask-image: linear-gradient(90deg, transparent 0%, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 50%, transparent 100%);
  mix-blend-mode: screen;
}

@keyframes laserScrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.card-stemx .laser-grid {
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 15px,
    rgba(0, 255, 68, 0.4) 15px,
    rgba(0, 255, 68, 0.8) 17px
  );
}

.card-drum .laser-grid {
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 15px,
    rgba(0, 255, 68, 0.4) 15px,
    rgba(0, 255, 68, 0.8) 17px
  );
}

.product-card:hover .laser-grid {
  opacity: 0.6; /* Brightens and activates on hover! */
}


@keyframes slowBlobOrbit {
  0% { transform: rotate(0deg) translateX(40px) scale(1); }
  50% { transform: rotate(180deg) translateX(20px) scale(1.2); }
  100% { transform: rotate(360deg) translateX(40px) scale(1); }
}

/* Unified FUSE VOID Liquid (Vibrant Cyan/Blue) */
.card-stemx::after, .card-drum::after {
  background: 
    radial-gradient(circle at 30% 30%, #00ffff 0%, transparent 70%),
    radial-gradient(circle at 70% 70%, #0055ff 0%, transparent 70%),
    radial-gradient(circle at 50% 80%, #00aaff 0%, transparent 70%);
  animation: slowBlobOrbit 20s ease-in-out infinite alternate; /* Very slow, relaxing rotation */
}

.product-card:hover {
  border-color: rgba(0, 243, 255, 0.8);
  box-shadow: 
    inset 0 0 20px rgba(0, 243, 255, 0.2), 
    0 0 40px rgba(0, 243, 255, 0.4),
    0 20px 40px rgba(0,0,0,0.8);
  transform: translateY(-5px) scale(1.02);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover::after {
  opacity: 1;
  filter: blur(15px); /* Sharpens aggressively on hover */
  transform: scale(1.5); /* The droplet inflates like a bomb */
}

/* specific aggressive neon glows on hover */
.card-stemx:hover {
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.4), inset 0 0 20px rgba(0, 243, 255, 0.2);
  border-color: #00ffff;
}

.card-drum:hover {
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.4), inset 0 0 20px rgba(0, 243, 255, 0.2);
  border-color: #00ffff;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
}

.card-stemx .card-icon {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.card-drum .card-icon {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.product-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.product-card p {
  color: #ffffff; /* Saf beyaz ve net */
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.8); /* Parlak neon üzerinde okunabilirliği artırır */
}

.launch-btn {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-primary);
  border-radius: 30px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
  overflow: hidden;
}

/* The Calculating Burst Glow */
.launch-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

@keyframes calculatingBurst {
  0% { width: 0; height: 0; opacity: 1; box-shadow: 0 0 20px 10px rgba(255,255,255,0.8); }
  100% { width: 200px; height: 200px; opacity: 0; box-shadow: 0 0 50px 20px transparent; }
}

.product-card:hover .launch-btn {
  background: rgba(0, 243, 255, 0.1);
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.card-stemx:hover .launch-btn::after {
  animation: calculatingBurst 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  background: rgba(0, 243, 255, 0.8);
}

.card-drum:hover .launch-btn::after {
  animation: calculatingBurst 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  background: rgba(0, 243, 255, 0.8);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-manifesto {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

/* --------------------------------- */
/* MODAL & JOIN BUTTON               */
/* --------------------------------- */
.join-btn {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.join-btn:hover {
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
  transform: translateY(-2px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(0, 243, 255, 0.3);
  padding: 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-cyan);
}

.modal-icon {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.modal-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.neon-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.neon-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.submit-btn {
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.submit-btn:hover {
  background: rgba(0, 243, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.modal-subtext {
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-top: 1rem;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  /* Hide the matrix data streams on mobile so they don't block the screen */
  .data-stream { display: none; }
  
  /* Navbar */
  nav { 
    flex-direction: column; 
    padding: 1.5rem 1rem; 
    gap: 1.5rem;
  }
  .nav-actions {
    justify-content: center;
    width: 100%;
  }

  /* Hero Section */
  .hero {
    padding: 2rem 1rem;
    margin-top: 1rem;
  }
  .hero h1 { 
    font-size: 2.2rem; 
  }
  .hero p {
    font-size: 0.9rem;
    padding: 0 1rem;
    max-width: 100%;
  }
  
  /* Cards */
  .cards-container { 
    flex-direction: column; 
    align-items: center; 
    gap: 2rem;
  }
  .product-card {
    width: 100%;
    max-width: 350px;
    padding: 2rem 1.5rem;
  }
  .card-icon {
    font-size: 2.5rem;
  }
  .product-card h2 {
    font-size: 1.4rem;
  }
  
  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1rem;
    align-items: center;
  }
  .footer-links a {
    font-size: 1.1rem; /* Make them slightly larger and easier to tap on mobile */
  }
  .footer-links span {
    display: none; /* Hide the | separators on mobile to save space */
  }
  .footer-manifesto {
    font-size: 1rem;
    text-align: center;
  }
}

