/* === Reset & Custom Properties === */
:root {
  --violet-50: #F5F3FF;
  --violet-100: #EDE9FE;
  --violet-200: #DDD6FE;
  --violet-300: #C4B5FD;
  --violet-400: #A78BFA;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;
  --violet-800: #5B21B6;
  --violet-900: #4C1D95;

  --green-50: #ECFDF5;
  --green-100: #D1FAE5;
  --green-200: #A7F3D0;
  --green-300: #6EE7B7;
  --green-400: #34D399;
  --green-500: #10B981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065F46;
  --green-900: #064E3B;

  --bg-primary: #0F0B1A;
  --bg-secondary: #1A1128;
  --bg-tertiary: #231738;
  --text-primary: #F3F0FF;
  --text-secondary: #A78BFA;
  --text-muted: #6D5A9E;

  --glass-bg: rgba(124, 58, 237, 0.06);
  --glass-border: rgba(124, 58, 237, 0.18);
  --glass-hover: rgba(124, 58, 237, 0.12);

  --gradient-main: linear-gradient(135deg, var(--violet-600), var(--green-500));
  --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(16, 185, 129, 0.15));

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--green-400);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--green-300);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--violet-800);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--violet-600);
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 11, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(15, 11, 26, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--green-500);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: var(--green-400);
}

/* Language selector */
.nav-lang {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--glass-border);
}

.lang-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0 0.15rem;
}

.lang-link {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.35rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.05em;
}

.lang-link:hover {
  color: var(--text-primary) !important;
}

.lang-active {
  color: var(--green-400) !important;
  font-weight: 600;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* === Hero === */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  animation: heroPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-platforms {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--violet-300);
  position: relative;
  z-index: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  animation: bounce 2s ease-in-out infinite;
  color: var(--text-muted);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Product hero (smaller) */
.hero-product {
  min-height: 45vh;
  padding: 6rem 2rem 3rem;
}

.hero-product .hero-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
}

.hero-product .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-product .hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--gradient-subtle);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* === Sections === */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 3rem;
  font-weight: 300;
}

/* === Glass Card === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--glass-hover);
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.1),
              0 0 20px rgba(16, 185, 129, 0.05);
}

/* === Product Cards Grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.product-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.product-card .card-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.product-card .card-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.product-card .card-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.product-card .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-400);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.product-card .card-link::after {
  content: '\2192';
  transition: transform 0.3s ease;
}

.product-card:hover .card-link::after {
  transform: translateX(4px);
}

/* === Flow Diagram === */
.flow-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin: 3rem auto;
  width: fit-content;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  min-width: 140px;
  text-align: center;
}

.flow-node:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.flow-node img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.flow-node .flow-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.flow-node .flow-role {
  font-size: 0.75rem;
  color: var(--green-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--violet-400);
  font-size: 1.5rem;
  min-width: 80px;
}

.flow-arrow .arrow-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.flow-arrow .arrow-icon {
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.flow-separator {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--violet-600), var(--green-500));
  opacity: 0.3;
  border-radius: 1px;
}

/* === Product Page Content === */
.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-screenshot {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.product-screenshot img {
  display: block;
  width: 100%;
}

.product-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.features-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.features-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Works with section */
.works-with {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.works-with-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.works-with-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.works-with-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.works-with-link:hover {
  border-color: var(--green-500);
  background: var(--glass-hover);
}

.works-with-link img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.works-with-link span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* === Button === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--violet-400);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--violet-400);
  color: var(--violet-300);
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--green-400);
}

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

/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }

/* === Responsive === */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.35s ease;
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .hero {
    min-height: 70vh;
    padding: 3rem 1.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .flow-row {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .products-grid {
    gap: 1.5rem;
  }
}

/* Overlay for mobile nav */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.open {
  display: block;
}
