:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  
  /* Color Palette */
  --bg-deep: #02060d;
  --bg-space: #050b14;
  --bg-surface: #0a101d;
  
  --panel: rgba(10, 16, 29, 0.65);
  --panel-strong: rgba(14, 22, 38, 0.85);
  --panel-hover: rgba(18, 30, 50, 0.75);
  
  --text-main: #f0f4fc;
  --text-muted: #8b9bb4;
  
  --line-subtle: rgba(77, 126, 255, 0.12);
  --line-strong: rgba(77, 126, 255, 0.25);
  
  --brand-primary: #00f0ff;
  --brand-secondary: #0077ff;
  --brand-glow: rgba(0, 240, 255, 0.4);
  
  --accent-purple: #8a2be2;
  --accent-cyan: #00ffff;
  
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
  --shadow-glow-hover: 0 0 35px rgba(0, 240, 255, 0.3);
  
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 0%, rgba(0, 119, 255, 0.15), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(0, 240, 255, 0.1), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(138, 43, 226, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-space) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6, .brand, .button {
  font-family: "Outfit", "Inter", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  display: block;
  max-width: 100%;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-soft);
}

.page-shell {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 80px;
}

/* Animated Ambient Backgrounds */
.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: pulse-ambient 10s infinite alternate ease-in-out;
}

@keyframes pulse-ambient {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  50% { transform: scale(1.1) translate(20px, -20px); opacity: 0.5; }
  100% { transform: scale(0.95) translate(-10px, 10px); opacity: 0.3; }
}

.ambient-left {
  width: 40vw;
  height: 40vw;
  top: -10vw;
  left: -20vw;
  background: var(--brand-secondary);
}

.ambient-right {
  width: 35vw;
  height: 35vw;
  top: 20vw;
  right: -15vw;
  background: var(--brand-primary);
  animation-delay: -5s;
}

.site-header {
  position: relative;
  z-index: 50;
}

.section-frame,
.site-footer {
  position: relative;
  z-index: 10;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin-bottom: 40px;
  border-radius: 100px;
  transition: all var(--transition-normal);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}

.mobile-menu-btn:hover {
  color: var(--brand-primary);
}

.site-header:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #b0c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 20%;
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.3);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-mark {
  transform: scale(1.05) rotate(-5deg);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
  color: var(--text-muted);
}

.top-nav a {
  position: relative;
  padding: 0.5rem 0;
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.top-nav a:hover {
  color: var(--text-main);
}

.top-nav a:hover::after {
  width: 100%;
  box-shadow: 0 0 10px var(--brand-primary);
}

/* Locale Switcher */
.locale-switcher {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  z-index: 30;
}

.locale-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  border: 1px solid var(--line-subtle);
  border-radius: 100px;
  background: rgba(10, 16, 29, 0.8);
  cursor: pointer;
  list-style: none;
  transition: all var(--transition-fast);
}

.locale-switcher summary::-webkit-details-marker {
  display: none;
}

.locale-switcher summary:hover,
.locale-switcher[open] summary {
  border-color: var(--brand-primary);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05), var(--shadow-glow);
  color: var(--text-main);
}

.locale-switcher-value {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.locale-switcher-value::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition-fast);
}

.locale-switcher[open] .locale-switcher-value::after {
  transform: rotate(-135deg) translateY(-2px);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  padding: 0.5rem;
  background: rgba(10, 16, 29, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: var(--border-radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 119, 255, 0.1);
  backdrop-filter: blur(24px);
  z-index: 40;
  transform-origin: top right;
  animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdown-in {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.locale-option {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.locale-option:hover {
  background: rgba(0, 240, 255, 0.08);
  color: var(--brand-primary);
  transform: translateX(4px);
}

.locale-option[aria-current="true"] {
  background: linear-gradient(90deg, rgba(0, 119, 255, 0.2), rgba(0, 240, 255, 0.1));
  color: var(--text-main);
  font-weight: 700;
  border-left: 3px solid var(--brand-primary);
}

/* Sections */
.section-frame {
  margin-bottom: 60px;
  padding: clamp(40px, 6vw, 80px);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

.section-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.section-frame::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 60px);
  align-items: center;
  min-height: auto;
  padding-top: 40px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.hero::after {
  display: none;
}

.eyebrow,
.section-label,
.feature-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-primary);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.hero .eyebrow {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
}

.hero .eyebrow::before,
.section-label::before,
.feature-accent::before {
  display: none;
}

.hero-copy h1,
.section-intro h2 {
  margin: 0 0 1.5rem 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #a6c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 119, 255, 0.2));
}

.section-intro h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.hero-description,
.section-intro p {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  max-width: 600px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 2.5rem;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.button:hover::before {
  left: 200%;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 119, 255, 0.4);
  border: none;
}

.button-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 119, 255, 0.6), 0 0 20px var(--brand-primary);
}

.button-secondary {
  background: rgba(0, 119, 255, 0.1);
  border-color: rgba(0, 119, 255, 0.4);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(0, 119, 255, 0.2);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 119, 255, 0.2);
}

.button-ghost {
  background: transparent;
  color: var(--text-muted);
}

.button-ghost:hover {
  color: var(--brand-primary);
  background: rgba(0, 240, 255, 0.05);
}

.hero-visual {
  position: relative;
  perspective: 1000px;
  display: grid;
}

.hero-orbit {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 60%);
  filter: blur(40px);
  animation: rotate-orbit 20s linear infinite;
  z-index: -1;
}

@keyframes rotate-orbit {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.hero-visual img {
  grid-area: 1 / 1;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 119, 255, 0.2);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: all var(--transition-slow);
}

.hero-visual:hover img {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 240, 255, 0.3);
  border-color: rgba(0, 240, 255, 0.6);
}

.hero-carousel-img {
  animation: heroCrossfade 25s ease-in-out infinite;
}

.hero-visual .img-1 { animation-delay: 0s; }
.hero-visual .img-2 { opacity: 0; animation-delay: -20s; }
.hero-visual .img-3 { opacity: 0; animation-delay: -15s; }
.hero-visual .img-4 { opacity: 0; animation-delay: -10s; }
.hero-visual .img-5 { opacity: 0; animation-delay: -5s; }

@keyframes heroCrossfade {
  0% { opacity: 1; }
  16% { opacity: 1; }
  20% { opacity: 0; }
  96% { opacity: 0; }
  100% { opacity: 1; }
}

/* Grids & Cards */
.value-grid,
.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 3rem;
}

.value-card,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line-subtle);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.value-card::before,
.faq-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.value-card:hover,
.faq-item:hover {
  background: var(--panel-hover);
  border-color: var(--line-strong);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow-hover);
}

.value-card:hover::before,
.faq-item:hover::before {
  transform: scaleX(1);
}

.value-card h3,
.faq-item h3,
.feature-copy h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text-main);
  line-height: 1.3;
}

.value-card p,
.faq-item p,
.feature-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Features Profile */
.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: 40px 0;
  margin-top: 2rem;
}

.feature-card + .feature-card {
  border-top: 1px dashed rgba(0, 119, 255, 0.2);
}

.feature-card.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.feature-card.reverse .feature-copy {
  order: 2;
}

.feature-card.reverse .feature-media {
  order: 1;
}

.feature-accent {
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(0, 119, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.feature-media img {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-normal);
}

.feature-media:hover img {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.2);
  border-color: var(--brand-primary);
}

/* Ecosystem */
.point-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.point-pill {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 119, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text-main);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.point-pill:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 40px;
  margin-top: 60px;
  border-radius: var(--border-radius-lg);
  background: rgba(5, 11, 20, 0.8);
  border: 1px solid var(--line-subtle);
}

.footer-brand {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.site-footer p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.footer-links span {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero,
  .feature-card,
  .feature-card.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
  
  .hero-visual img {
    transform: none;
  }
  
  .feature-card.reverse .feature-copy,
  .feature-card.reverse .feature-media {
    order: initial;
  }
  
  .cta-row, .point-grid {
    justify-content: center;
  }
  
  .section-intro {
    margin: 0 auto 2rem auto;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 16px 16px 40px;
  }
  
  .site-header {
    flex-direction: column;
    padding: 16px 20px;
    margin: -16px -16px 24px -16px;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    gap: 0;
  }
  
  .header-main {
    width: 100%;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-actions {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-strong);
    padding-bottom: 0.5rem;
    animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-header.menu-open .header-actions {
    display: flex;
  }
  
  .top-nav {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
  }

  .top-nav a {
    font-size: 1.1rem;
  }

  .locale-switcher {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .locale-switcher summary {
    width: auto;
  }
  
  .hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .hero .eyebrow {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    line-height: 1.5;
    white-space: normal;
    display: inline-block;
  }

  .hero-description {
    font-size: 1.05rem;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .button {
    width: 100%;
    max-width: 340px;
    min-height: 52px;
  }

  .button-secondary {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 24, 46, 0.95);
  }
  
  .value-grid, .faq-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    gap: 32px;
    padding: 32px 0;
  }
  
  .section-frame {
    padding: 32px 20px;
  }
  
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}
