/* ========================= */
/*  DESIGN TOKENS            */
/* ========================= */

:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Grace & Force Brand Colors */
  --color-bg:         #0a0a1a;
  --color-surface:    #12122a;
  --color-surface-2:  #1a1a3a;
  --color-border:     rgba(200, 50, 180, 0.15);
  --color-text:       #e8e4f0;
  --color-text-muted: #9590a8;
  --color-text-faint: #5c5872;
  --color-primary:    #c832b4;
  --color-primary-hover: #e040d0;
  --color-primary-glow: rgba(200, 50, 180, 0.4);
  --color-accent:     #8b5cf6;
  --color-accent-2:   #06b6d4;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(200, 50, 180, 0.2);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ========================= */
/*  GLOBAL STYLES            */
/* ========================= */

body {
  background: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* ========================= */
/*  ANIMATED BG              */
/* ========================= */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(200, 50, 180, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
}

.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 50, 180, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 50, 180, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
}

/* ========================= */
/*  NAVIGATION               */
/* ========================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 50, 180, 0.1);
  transition: background 300ms, box-shadow 300ms;
}

.nav--scrolled {
  background: rgba(10, 10, 26, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.nav__logo {
  width: 36px;
  height: 36px;
}

.nav__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav__links a:hover {
  color: var(--color-text);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 300ms;
}

/* ========================= */
/*  HERO                     */
/* ========================= */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-32) var(--space-6) var(--space-16);
  text-align: center;
}

.hero__content {
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(200, 50, 180, 0.1);
  border: 1px solid rgba(200, 50, 180, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary-hover);
  margin-bottom: var(--space-8);
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: linear-gradient(135deg, var(--color-primary), #a020a0);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-hover), #c040c0);
  opacity: 0;
  transition: opacity 300ms;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 50, 180, 0.35);
  color: #fff;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: transparent;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
}

.hero__stat {
  text-align: center;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
}
.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ========================= */
/*  SECTIONS COMMON          */
/* ========================= */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ========================= */
/*  FEATURES                 */
/* ========================= */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.feature-card {
  padding: var(--space-8);
  background: rgba(18, 18, 42, 0.6);
  border: 1px solid rgba(200, 50, 180, 0.1);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(8px);
  transition: border-color 300ms, transform 300ms, box-shadow 300ms;
}
.feature-card:hover {
  border-color: rgba(200, 50, 180, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(200,50,180,0.08);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
}
.feature-card__icon--purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.feature-card__icon--pink {
  background: rgba(200, 50, 180, 0.15);
  color: var(--color-primary-hover);
}
.feature-card__icon--cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========================= */
/*  HOW IT WORKS             */
/* ========================= */

.steps {
  max-width: var(--content-default);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-accent-2));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  position: relative;
  z-index: 2;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ========================= */
/*  SHOWCASE / APP PREVIEW   */
/* ========================= */

.showcase {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.showcase__visual {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(200, 50, 180, 0.12);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase__mockup {
  width: 180px;
  height: 360px;
  background: var(--color-surface-2);
  border: 2px solid rgba(200, 50, 180, 0.2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(200,50,180,0.1);
}

.showcase__mockup-header {
  padding: var(--space-4) var(--space-3) var(--space-2);
  text-align: center;
}
.showcase__mockup-header .dot {
  width: 8px;
  height: 8px;
  background: var(--color-text-faint);
  border-radius: 50%;
  margin: 0 auto var(--space-2);
}
.showcase__mockup-header p {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}
.showcase__mockup-header span {
  font-size: 8px;
  color: var(--color-text-muted);
}

.showcase__mockup-body {
  padding: 0 var(--space-3);
}

.mockup-bar {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 6px;
  opacity: 0.6;
}

.showcase__info {
  padding: var(--space-4) 0;
}

.showcase__info-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.showcase__info-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.showcase__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.showcase__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.showcase__list-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200, 50, 180, 0.15);
  color: var(--color-primary-hover);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
}

/* ========================= */
/*  TESTIMONIALS             */
/* ========================= */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}

.testimonial-card {
  padding: var(--space-8);
  background: rgba(18, 18, 42, 0.5);
  border: 1px solid rgba(200, 50, 180, 0.08);
  border-radius: var(--radius-2xl);
}

.testimonial-card__stars {
  color: #fbbf24;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial-card__quote {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: #fff;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: #fff;
}
.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ========================= */
/*  FAQ                      */
/* ========================= */

.faq__list {
  max-width: var(--content-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: rgba(18, 18, 42, 0.5);
  border: 1px solid rgba(200, 50, 180, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item__trigger {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-item__trigger svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-item__trigger svg {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.16, 1, 0.3, 1), padding 300ms;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========================= */
/*  CTA SECTION              */
/* ========================= */

.cta-section {
  text-align: center;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
  position: relative;
  z-index: 1;
}

.cta-section__box {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-8);
  background: rgba(18, 18, 42, 0.6);
  border: 1px solid rgba(200, 50, 180, 0.15);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}

.cta-section__box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(200, 50, 180, 0.06), transparent 50%);
  pointer-events: none;
}

.cta-section__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  position: relative;
}

.cta-section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  position: relative;
}

/* ========================= */
/*  FOOTER                   */
/* ========================= */

.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-12) var(--space-6) var(--space-8);
  border-top: 1px solid rgba(200, 50, 180, 0.08);
}

.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--color-text-muted);
}

/* ========================= */
/*  ANIMATIONS               */
/* ========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

/* Pulse animation for hero badge */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 50, 180, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(200, 50, 180, 0); }
}
.hero__badge {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ========================= */
/*  MOBILE                   */
/* ========================= */

@media (max-width: 768px) {
  .nav {
    padding: var(--space-3) var(--space-4);
  }
  .nav__links {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__mobile-toggle {
    display: flex;
  }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(16px);
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid rgba(200, 50, 180, 0.1);
  }

  .hero {
    padding: var(--space-24) var(--space-4) var(--space-12);
    min-height: auto;
  }

  .hero__title {
    font-size: var(--text-2xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__stats {
    gap: var(--space-6);
    flex-wrap: wrap;
  }
  .hero__stat-value {
    font-size: var(--text-lg);
  }

  .features__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .steps::before {
    display: none;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .showcase__visual {
    order: -1;
    aspect-ratio: 16/10;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-secondary {
    justify-content: center;
  }
}
