/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple-deep: #633188;
  --purple-mid: #9c65b9;
  --purple-light: #987aba;
  --lavender: #caa5dd;
  --lavender-light: #ceb5df;
  --off-white: #fefdfe;
  --bg-dark: #0d0515;
  --bg-card: #1a0a2e;
  --bg-card-hover: #241340;
  --text-primary: #fefdfe;
  --text-secondary: #b8a0cc;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--off-white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 2.5rem;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 5, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 49, 136, 0.15);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav__logo {
  width: 32px;
  height: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--off-white);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}

.nav__dropdown:hover .nav__dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid rgba(99, 49, 136, 0.3);
  border-radius: 10px;
  padding: 0.5rem;
  padding-top: 1rem;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.nav__dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.nav__dropdown:hover .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-item {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s;
}

.nav__dropdown-item:hover {
  background: rgba(99, 49, 136, 0.2);
  color: var(--off-white);
}

.nav__dropdown-item--disabled {
  opacity: 0.45;
  cursor: default;
}

.nav__dropdown-item--disabled:hover {
  background: none;
}

.nav__dropdown-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.nav__dropdown-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.lang-toggle {
  background: rgba(99, 49, 136, 0.2);
  border: 1px solid rgba(99, 49, 136, 0.3);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-toggle:hover {
  border-color: var(--purple-mid);
}

.lang-toggle__option {
  transition: color 0.2s;
}

.lang-toggle__option.active {
  color: var(--off-white);
  font-weight: 600;
}

.lang-toggle__sep {
  color: rgba(99, 49, 136, 0.4);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(99, 49, 136, 0.15) 0%, transparent 60%),
    var(--bg-dark);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero__logo {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 40px rgba(99, 49, 136, 0.4));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--lavender) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 500px;
}

.hero__scroll {
  margin-top: 2rem;
  color: var(--purple-light);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== About ===== */
.about {
  padding: 7rem 0;
}

.about__text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 3.5rem;
  line-height: 1.75;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid rgba(99, 49, 136, 0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.pillar:hover {
  border-color: rgba(99, 49, 136, 0.4);
  transform: translateY(-2px);
}

.pillar__icon {
  color: var(--purple-mid);
  margin-bottom: 1rem;
}

.pillar__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pillar__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PRISM ===== */
.prism {
  padding: 7rem 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(99, 49, 136, 0.08) 0%, transparent 50%),
    var(--bg-dark);
}

.prism__header {
  margin-bottom: 1.5rem;
}

.prism__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--purple-mid) 0%, var(--lavender) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prism__full {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.25rem;
}

.prism__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.prism__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.prism__feature {
  background: var(--bg-card);
  border: 1px solid rgba(99, 49, 136, 0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.prism__feature:hover {
  border-color: rgba(99, 49, 136, 0.4);
  transform: translateY(-2px);
}

.prism__feature-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-mid);
  letter-spacing: 0.1em;
}

.prism__feature h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.prism__feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.prism__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 49, 136, 0.2);
  border: 1px solid rgba(99, 49, 136, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: var(--lavender);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.prism__cta:hover {
  background: rgba(99, 49, 136, 0.35);
  border-color: var(--purple-mid);
  color: var(--off-white);
}

.prism__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.prism__cta--demo {
  background: rgba(99, 49, 136, 0.35);
  border-color: var(--purple-mid);
  color: var(--off-white);
}

.prism__cta--demo:hover {
  background: var(--purple-mid);
  color: var(--off-white);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(99, 49, 136, 0.15);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer__logo {
  width: 24px;
  height: 24px;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about {
    padding: 5rem 0;
  }

  .prism {
    padding: 5rem 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .pillars,
  .prism__features {
    grid-template-columns: 1fr;
  }
}
