/* ============================================
   FOCUS-ON — Marketing Website
   Design: Glassmorphism + Neo-Geo + Kinetic
   ============================================ */

/* --- Design Tokens --- */
:root {
  --bg-primary: #0F0F1A;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --accent-primary: #8B5CF6;
  --accent-secondary: #A855F7;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --glass-fill: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-hero: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F97316 100%);
  --surface-success: #34D399;
  --surface-amber: #FBBF24;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --nav-height: 64px;
  --section-gap: 120px;
  --container-max: 1200px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }

/* --- Utility --- */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-fill);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: breathe 3s ease-in-out infinite;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.btn--ghost {
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  background: var(--glass-fill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.08);
}

.btn--sm { padding: 8px 20px; font-size: 0.85rem; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
  50% { box-shadow: 0 4px 30px rgba(139, 92, 246, 0.6); }
}

/* --- Particles Canvas --- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* --- Neo-Geo Background --- */
.geo-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.geo-circle--1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  animation: geoRotate 60s linear infinite;
}

.geo-circle--2 {
  width: 350px; height: 350px;
  bottom: 20%; left: -80px;
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.06);
  animation: geoRotate 80s linear infinite reverse;
}

.geo-circle--3 {
  width: 200px; height: 200px;
  top: 40%; right: 10%;
  border-color: rgba(168, 85, 247, 0.1);
  animation: geoRotate 45s linear infinite;
}

.geo-arc {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.geo-arc--1 {
  border-top-color: rgba(139, 92, 246, 0.1);
  border-right-color: rgba(139, 92, 246, 0.06);
  top: 60%; left: 20%;
  animation: geoRotate 50s linear infinite;
}

.geo-arc--2 {
  width: 400px; height: 400px;
  border-bottom-color: rgba(236, 72, 153, 0.06);
  border-left-color: rgba(236, 72, 153, 0.04);
  top: 10%; left: 50%;
  animation: geoRotate 70s linear infinite reverse;
}

@keyframes geoRotate {
  to { transform: rotate(360deg); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav--scrolled {
  background: rgba(15, 15, 26, 0.92);
  border-bottom-color: var(--glass-border);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav__icon { border-radius: 8px; }

.nav__links {
  display: flex;
  gap: 32px;
  margin-right: auto;
  margin-left: 48px;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

.nav__cta { flex-shrink: 0; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  right: 0;
  width: 280px;
  height: calc(100vh - var(--nav-height));
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--glass-border);
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: 999;
}

.nav__drawer--open {
  transform: translateX(0);
}

.nav__drawer-link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav__drawer-link:hover {
  background: var(--glass-fill);
  color: var(--text-primary);
}

.nav__drawer-cta {
  margin-top: 16px;
  text-align: center;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  width: 700px;
  height: 700px;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__content {
  flex: 1;
  max-width: 580px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
  border-radius: 10px;
}

.app-store-badge:hover { transform: scale(1.05); }

.hero__proof {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--glass-fill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.proof-pill__stars { color: var(--surface-amber); letter-spacing: 1px; }

.hero__phone {
  flex-shrink: 0;
  position: relative;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-mockup__frame {
  position: relative;
  width: 280px;
  background: #000;
  border-radius: 36px;
  border: 3px solid #2a2a3e;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(139, 92, 246, 0.1);
}

.phone-mockup__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-mockup__screen {
  width: 100%;
  height: auto;
  display: block;
}

.phone-mockup--sm .phone-mockup__frame {
  width: 220px;
  border-radius: 28px;
  border-width: 2px;
}

.phone-mockup--sm .phone-mockup__notch {
  width: 70px;
  height: 18px;
  top: 6px;
  border-radius: 0 0 12px 12px;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Features --- */
.features {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  perspective: 800px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 14px;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-out-expo);
  color: var(--accent-primary);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}

.feature-card:hover .feature-card__icon {
  transform: rotate(15deg);
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps__line {
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 4px;
  z-index: 0;
}

.steps__line svg { width: 100%; height: 4px; }

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

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-hero);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.step__phone {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.step__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 260px;
  margin: 0 auto;
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 24px;
  margin: 0 -24px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials__track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 300px;
  scroll-snap-align: center;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.testimonial-card__laurel { opacity: 0.6; }

.testimonial-card__quote {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-card__stars {
  color: var(--surface-amber);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.testimonial-card__avatar { opacity: 0.5; }

/* --- Pricing --- */
.pricing {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 32px;
  position: relative;
  text-align: center;
}

.pricing-card--premium {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(139, 92, 246, 0.08);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__list {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-card__list li svg { flex-shrink: 0; }

.pricing-card__btn { width: 100%; }

/* --- Final CTA --- */
.final-cta {
  padding: var(--section-gap) 0;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.final-cta__glow {
  position: absolute;
  width: 800px;
  height: 800px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(236, 72, 153, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.final-cta__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.15;
}

.final-cta__action { margin-bottom: 20px; }

.app-store-badge--lg { display: inline-block; }

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

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__icon { border-radius: 6px; }

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal--d1 { transition-delay: 150ms; }
.reveal--d2 { transition-delay: 300ms; }
.reveal--d3 { transition-delay: 450ms; }

.reveal--phone {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--spring);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-gap: 96px; }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: calc(var(--nav-height) + 60px);
  }

  .hero__content { max-width: 600px; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__proof { justify-content: center; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps__line { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-gap: 80px; --nav-height: 56px; }

  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__drawer { display: flex; }

  .hero__glow { width: 400px; height: 400px; right: -80px; }

  .phone-mockup__frame { width: 240px; border-radius: 30px; }
  .phone-mockup__notch { width: 76px; height: 20px; }

  .features__grid { grid-template-columns: 1fr; gap: 16px; }

  .steps { grid-template-columns: 1fr; gap: 48px; }
  .phone-mockup--sm .phone-mockup__frame { width: 200px; }

  .testimonial-card { flex: 0 0 280px; }

  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; }

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

/* Small Mobile */
@media (max-width: 375px) {
  .hero__title { font-size: 2rem; }
  .hero__proof { flex-direction: column; align-items: center; }
  .proof-pill { font-size: 0.75rem; }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .hero { max-width: 1300px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone-mockup { animation: none; }
  .geo-circle, .geo-arc { animation: none; }
}

/* ============================================
   FOCUS STATES (Accessibility)
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .nav, .geo-bg, #particles, .hero__glow, .final-cta__glow { display: none; }
  body { background: #fff; color: #000; }
  .glass-card { background: #f5f5f5; border: 1px solid #ddd; backdrop-filter: none; }
}
