/* ============================================
   InsideX Website — Cosmic Dark Theme
   ============================================ */

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0d1b2a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.3);

  --teal: #5dcaa5;
  --teal-glow: rgba(93, 202, 165, 0.15);
  --purple: #7f77dd;
  --purple-glow: rgba(127, 119, 221, 0.15);
  --pink: #ed93b1;
  --pink-glow: rgba(237, 147, 177, 0.15);
  --amber: #ef9f27;
  --amber-glow: rgba(239, 159, 39, 0.15);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1140px;
  --nav-height: 72px;
}

/* ============ RESET ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* ============ CONTAINER ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
  transition: background 0.3s;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}
.lang-btn {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  display: none;
  min-width: 140px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.lang-dropdown.active {
  display: block;
}
.lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: all 0.15s;
}
.lang-option:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.lang-option.active {
  color: var(--teal);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 40%,
    #1b0a2e 100%
  );
}
.stars {
  position: absolute;
  display: none;
  inset: 0;
  background-image:
    radial-gradient(
      1px 1px at 15% 12%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 50%
    ),
    radial-gradient(
      1.5px 1.5px at 45% 8%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 78% 20%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 50%
    ),
    radial-gradient(
      1.5px 1.5px at 30% 35%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 88% 55%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 50%
    ),
    radial-gradient(
      1.5px 1.5px at 12% 70%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 65% 85%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 92% 15%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 50%
    ),
    radial-gradient(
      1.5px 1.5px at 55% 42%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 40% 65%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 50%
    );
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--teal-glow);
  top: -100px;
  right: -100px;
}
.glow-2 {
  width: 300px;
  height: 300px;
  background: var(--purple-glow);
  bottom: -50px;
  left: -80px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(93, 202, 165, 0.1);
  border: 0.5px solid rgba(93, 202, 165, 0.25);
  border-radius: 24px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 22px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.store-icon {
  width: 24px;
  height: 24px;
  color: #000;
}
.store-text small {
  font-size: 10px;
  color: #666;
  display: block;
  line-height: 1;
}
.store-text strong {
  font-size: 15px;
  color: #000;
  line-height: 1.3;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-image-wrapper {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
}
.hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ============ PLACEHOLDER IMAGES ============ */
.placeholder-img {
  background: linear-gradient(
    135deg,
    rgba(93, 202, 165, 0.08),
    rgba(127, 119, 221, 0.08)
  );
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.placeholder-img small {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}
.hero-placeholder {
  height: 420px;
}
.showcase-placeholder {
  height: 480px;
}
.about-placeholder {
  height: 400px;
}

/* ============ SECTIONS COMMON ============ */
section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ============ FEATURES ============ */
.features {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card--teal .feature-icon {
  background: var(--teal-glow);
  color: var(--teal);
}
.feature-card--purple .feature-icon {
  background: var(--purple-glow);
  color: var(--purple);
}
.feature-card--pink .feature-icon {
  background: var(--pink-glow);
  color: var(--pink);
}
.feature-card--amber .feature-icon {
  background: var(--amber-glow);
  color: var(--amber);
}
.feature-card--teal {
  border-color: rgba(93, 202, 165, 0.12);
}
.feature-card--purple {
  border-color: rgba(127, 119, 221, 0.12);
}
.feature-card--pink {
  border-color: rgba(237, 147, 177, 0.12);
}
.feature-card--amber {
  border-color: rgba(239, 159, 39, 0.12);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ SHOWCASE ============ */
.showcase {
  background: var(--bg-primary);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.showcase-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.showcase-item--featured {
  transform: scale(1.05);
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}
.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-number {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.step-number--teal {
  background: linear-gradient(
    135deg,
    rgba(93, 202, 165, 0.2),
    rgba(93, 202, 165, 0.05)
  );
  border: 0.5px solid rgba(93, 202, 165, 0.3);
  color: var(--teal);
}
.step-number--purple {
  background: linear-gradient(
    135deg,
    rgba(127, 119, 221, 0.2),
    rgba(127, 119, 221, 0.05)
  );
  border: 0.5px solid rgba(127, 119, 221, 0.3);
  color: var(--purple);
}
.step-number--pink {
  background: linear-gradient(
    135deg,
    rgba(237, 147, 177, 0.2),
    rgba(237, 147, 177, 0.05)
  );
  border: 0.5px solid rgba(237, 147, 177, 0.3);
  color: var(--pink);
}
.step-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ ABOUT ============ */
.about {
  background: var(--bg-secondary);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content .section-tag {
  text-align: left;
}
.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}
.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-badges {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}
.about-badge {
  display: flex;
  flex-direction: column;
}
.about-badge strong {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-badge span {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============ CONTACT ============ */
.contact {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}
.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}
.contact-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.contact-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  transition: opacity 0.2s;
}
.contact-link:hover {
  opacity: 0.8;
}
.contact-company {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============ CTA ============ */
.cta {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    rgba(93, 202, 165, 0.06) 0%,
    rgba(127, 119, 221, 0.06) 100%
  );
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-inner p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
}
.cta .hero-buttons {
  justify-content: center;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-primary);
  padding: 60px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-tagline {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 12px;
  max-width: 280px;
}
.footer-company {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}
.about-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-placeholder {
    height: 320px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    order: -1;
  }
  .about-content .section-tag,
  .about-content .section-title {
    text-align: center;
  }
  .about-content p {
    text-align: center;
  }
  .about-badges {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 0.5px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .showcase-item--featured {
    transform: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-links {
    gap: 40px;
  }
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 32px) 0 60px;
  }
  .hero-title {
    font-size: 28px;
  }
  section {
    padding: 60px 0;
  }
}
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
  .about-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

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