/* ─── Theme Variables ─── */
:root {
  --background: #09090B;
  --surface: #18181B;
  --card: #27272A;
  --primary: #818CF8;
  --primary-hover: #A5B4FC;
  --secondary: #2DD4BF;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --border: #3F3F46;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; }

/* ─── Noise Texture Overlay ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  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.9' 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;
}

/* ─── Layout ─── */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Section Divider ─── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--primary) 50%, var(--border) 80%, transparent);
  opacity: 0.5;
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.nav-scrolled {
  border-color: rgba(129, 140, 248, 0.15);
  box-shadow: 0 1px 20px rgba(129, 140, 248, 0.07);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--text-tertiary); color: var(--text-primary); }
.lang-btn-label { display: none; }
.lang-btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}
.lang-btn.is-open svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 11rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.25rem 0;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.lang-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover { background: var(--card); }
.lang-option.is-active { color: var(--primary); }

/* Nav CTA */
.nav-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 1.5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
}
.hero-orb-1 {
  left: 50%; top: 33%;
  width: 500px; height: 500px;
  transform: translate(-50%, -50%);
  background: rgba(129, 140, 248, 0.15);
  filter: blur(120px);
  animation: orb-drift 25s ease-in-out infinite;
}
.hero-orb-2 {
  left: 25%; top: 66%;
  width: 400px; height: 400px;
  transform: translate(-50%, -50%);
  background: rgba(45, 212, 191, 0.1);
  filter: blur(100px);
  animation: orb-drift-reverse 20s ease-in-out infinite;
}
.hero-orb-3 {
  right: 25%; top: 25%;
  width: 350px; height: 350px;
  transform: translate(-50%, -50%);
  background: rgba(129, 140, 248, 0.08);
  filter: blur(100px);
  animation: orb-drift 30s ease-in-out infinite;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--background) 80%);
}
.hero-content {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  animation: reveal-scale 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(4px);
  font-size: 0.875rem;
  color: var(--text-secondary);
  animation: float 4s ease-in-out infinite;
}
.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
}
.pulse-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.pulse-dot::after {
  content: "";
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--secondary);
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  background: linear-gradient(180deg, var(--text-primary) 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  background: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.3);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
}
.btn-primary:hover::after {
  animation: shimmer 0.8s ease-in-out;
}
.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--text-tertiary);
  background: var(--surface);
}

/* ─── Features ─── */
.features { padding: 6rem 1.5rem; }
.features-header { text-align: center; }
.features-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.features-subtitle {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
}
.features-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}
.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 50%, transparent);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.feature-card:hover {
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.08);
}
.feature-icon {
  display: inline-flex;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: rgba(129, 140, 248, 0.1);
  color: var(--primary);
  transition: box-shadow 0.4s;
}
.feature-card:hover .feature-icon {
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.4);
}
.feature-icon svg { width: 2rem; height: 2rem; }
.feature-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.feature-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ─── Platforms ─── */
.platforms { padding: 6rem 1.5rem; }
.platforms-header { text-align: center; }
.platforms-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.platforms-subtitle {
  max-width: 42rem;
  margin: 1rem auto 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
}
.platforms-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 30%, transparent);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.platform-card-live {
  border-color: rgba(129, 140, 248, 0.2);
  background: color-mix(in srgb, var(--card) 50%, transparent);
}
.platform-card-live:hover {
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.1);
}
.platform-icon { color: var(--text-tertiary); }
.platform-card-live .platform-icon {
  position: relative;
  color: var(--primary);
  transition: transform 0.3s;
}
.platform-card-live:hover .platform-icon { transform: scale(1.1); }
.platform-icon svg { width: 2.5rem; height: 2.5rem; }
.platform-glow {
  position: absolute;
  top: -0.5rem;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.1);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s;
}
.platform-card-live:hover .platform-glow { opacity: 1; }
.platform-name {
  font-size: 1.125rem;
  font-weight: 600;
}
.platform-card-live .platform-name { color: var(--text-primary); }
.platform-card:not(.platform-card-live) .platform-name { color: var(--text-secondary); }
.platform-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(45, 212, 191, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
}
.platform-badge-soon {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px dashed var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

/* ─── Footer ─── */
.footer { padding: 2rem 1.5rem; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-left {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}
.footer-brand {
  font-weight: 600;
  background: linear-gradient(to right, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-sep { margin: 0 0.5rem; color: var(--border); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text-secondary); }
.footer-credit {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(63, 63, 70, 0.3);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
.footer-dedaldev {
  color: var(--primary);
  transition: color 0.2s;
}
.footer-dedaldev:hover { color: var(--primary-hover); }

/* ─── Scroll Reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Keyframes ─── */
@keyframes reveal-scale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes orb-drift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(calc(-50% + 30px), calc(-50% - 20px)) scale(1.05); }
  66% { transform: translate(calc(-50% - 20px), calc(-50% + 15px)) scale(0.95); }
}
@keyframes orb-drift-reverse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(calc(-50% - 25px), calc(-50% + 20px)) scale(0.95); }
  66% { transform: translate(calc(-50% + 20px), calc(-50% - 15px)) scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ─── Responsive ─── */
@media (min-width: 640px) {
  .lang-btn-label { display: inline; }
  .hero { padding: 10rem 1.5rem; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .hero-actions { flex-direction: row; }
  .btn-primary, .btn-secondary { width: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .features-title, .platforms-title { font-size: 2.25rem; }
  .footer-inner { flex-direction: row; }
}
@media (min-width: 1024px) {
  .hero { padding: 12rem 1.5rem; }
  .hero-title { font-size: 4.5rem; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Accessibility: Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary::after { animation: none !important; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
