/* ═══════════════════════════════════════════════
   Sections — Per-section specific styles
   ═══════════════════════════════════════════════ */

/* ══════════════════════════
   1. NAVBAR
   ══════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  transition: background-color var(--duration-normal) var(--ease-out-expo), backdrop-filter var(--duration-normal) var(--ease-out-expo), border-color var(--duration-normal) var(--ease-out-expo);
}

.navbar--scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  z-index: var(--z-nav);
}

.navbar__brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__link {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out-expo);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__cta {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-sm);
}

/* Mobile Menu */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: var(--z-nav);
}

.navbar__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.navbar__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: var(--glass-blur-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  z-index: calc(var(--z-nav) - 1);
}

.navbar__mobile-menu--open {
  display: flex;
}

.navbar__mobile-menu .navbar__link {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }
}

/* ══════════════════════════
   2. HERO
   ══════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: var(--z-particles);
}

.hero__particles canvas {
  width: 100%;
  height: 100%;
}

.hero__glow {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 86, 238, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero__text {
  max-width: 600px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(105, 86, 238, 0.1);
  border: 1px solid rgba(105, 86, 238, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--brand-primary);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-lg);
}

.hero__title {
  margin-bottom: var(--space-lg);
  line-height: var(--lh-tight);
}

.hero__title .line {
  display: block;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero__stats {
  display: flex;
  gap: var(--space-2xl);
}

.hero__mockup {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__mockup {
    display: none;
  }

  .hero__glow {
    top: 20%;
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__stats {
    gap: var(--space-lg);
  }
}

/* ══════════════════════════
   3. FEATURES
   ══════════════════════════ */
.features {
  background: var(--bg-secondary);
}

/* ══════════════════════════
   4. SMART TOOLS
   ══════════════════════════ */
.tools__item {
  background: var(--bg-glass);
  border: var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  overflow: hidden;
  position: relative;
}

.tools__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.tools__item-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.tools__item--reverse .tools__item-content {
  direction: rtl;
}

.tools__item--reverse .tools__item-content > * {
  direction: ltr;
}

.tools__item-text h3 {
  margin-bottom: var(--space-md);
}

.tools__item-text p {
  margin-bottom: var(--space-xl);
}

.tools__item-visual {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .tools__item-content,
  .tools__item--reverse .tools__item-content {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .tools__item {
    padding: var(--space-xl);
  }
}

/* ══════════════════════════
   5. SECURITY
   ══════════════════════════ */
.security {
  position: relative;
}

.security__matrix {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.03;
  pointer-events: none;
}

.security__matrix-col {
  position: absolute;
  top: -100%;
  font-family: monospace;
  font-size: 14px;
  color: var(--accent-green);
  line-height: 1.5;
  animation: matrixFall linear infinite;
  white-space: nowrap;
}

@keyframes matrixFall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200vh); }
}

.security__badge {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: var(--fs-md);
  color: var(--text-secondary);
  font-style: italic;
}

.security__marquee {
  margin-top: var(--space-3xl);
}

.security__marquee .marquee-track {
  animation-duration: 20s;
}

.security__marquee-item {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  white-space: nowrap;
}

/* ══════════════════════════
   6. CURRENCIES
   ══════════════════════════ */
.currencies {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(105, 86, 238, 0.03) 50%, var(--bg-primary) 100%);
}

.currencies__ticker {
  margin-bottom: var(--space-3xl);
}

.currencies__ticker .marquee-track {
  animation-duration: 40s;
}

.currencies__highlight {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* ══════════════════════════
   7. AI ASSISTANT
   ══════════════════════════ */
.ai {
  background: var(--bg-secondary);
}

.ai__chat {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--bg-tertiary);
  border-radius: var(--radius-2xl);
  border: var(--glass-border);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.ai__chat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(105, 86, 238, 0.05), transparent 70%);
  pointer-events: none;
}

.ai__chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.ai__chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

.ai__chat-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.ai__chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
  position: relative;
  z-index: 1;
}

.ai__providers {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

/* ══════════════════════════
   8. SHOWCASE / SCREENSHOTS
   ══════════════════════════ */
.showcase__carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  perspective: 1200px;
  overflow: visible;
}

.showcase__phone {
  flex-shrink: 0;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.showcase__phone--side {
  transform: scale(0.85) rotateY(15deg);
  opacity: 0.5;
  filter: blur(1px);
}

.showcase__phone--side-right {
  transform: scale(0.85) rotateY(-15deg);
}

.showcase__phone--center {
  transform: scale(1);
  z-index: 2;
}

.showcase__controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  border: none;
  transition: all var(--duration-normal) var(--ease-out-expo);
  cursor: pointer;
}

.showcase__dot--active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
}

@media (max-width: 768px) {
  .showcase__carousel {
    gap: var(--space-md);
  }

  .showcase__phone--side {
    display: none;
  }

  .phone-mockup {
    width: 240px;
    height: 490px;
    border-radius: 32px;
  }
}

/* ══════════════════════════
   9. TESTIMONIALS
   ══════════════════════════ */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════
   10. CTA + FOOTER
   ══════════════════════════ */
.cta {
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, rgba(105, 86, 238, 0.12) 0%, transparent 70%);
}

.cta__title {
  margin-bottom: var(--space-md);
}

.cta__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__heart {
  color: var(--accent-red);
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
