/* ===== Design Tokens ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 58, 237, 0.4);

  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9e;
  --text-muted: #5a5a6e;

  --accent-start: #7c3aed;
  --accent-mid: #a855f7;
  --accent-end: #ec4899;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-mid), var(--accent-end));

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 60px -12px rgba(124, 58, 237, 0.35);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1180px;
  --section-pad: 48px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gradient), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.navbar.scrolled {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(18, 18, 26, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}

.navbar.scrolled::before {
  opacity: 1;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.nav-logo.animate-in {
  animation: logoSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.logo-text {
  display: inline-block;
  word-spacing: 0.15em;
}

.logo-text .char {
  display: inline-block;
  opacity: 0;
  animation: charBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav-logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: inline-block;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.8), inset 0 0 6px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  animation: dotGlow 3s ease-in-out infinite;
}

@keyframes dotGlow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.8), inset 0 0 6px rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 1), inset 0 0 8px rgba(255, 255, 255, 0.5);
  }
}

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(18, 18, 26, 0.95) 100%);
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--accent-gradient), transparent) 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 60px 20px 40px;
  gap: 20px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  list-style: none;
  display: flex;
  z-index: 999;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(124, 58, 237, 0.15);
}

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

.nav-links li {
  opacity: 0;
  animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav-links li:nth-child(1) {
  animation-delay: 0.1s;
}

.nav-links li:nth-child(2) {
  animation-delay: 0.2s;
}

.nav-links li:nth-child(3) {
  animation-delay: 0.3s;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  position: relative;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: width var(--transition-base);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  transition: transform var(--transition-fast);
}

.nav-hamburger:hover {
  transform: scale(1.1);
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

.nav-hamburger:hover span {
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-gradient);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-gradient);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 16px 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: clamp(0.65rem, 2vw, 0.82rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}

/* ===== Buttons ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: clamp(0.85rem, 2vw, 0.92rem);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
  font-family: inherit;
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto var(--section-pad);
}

.section-label {
  display: inline-block;
  font-size: clamp(0.65rem, 2vw, 0.78rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 3vw, 1.05rem);
}

/* ===== Features ===== */
.features {
  padding: var(--section-pad) 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
  text-align: center;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: clamp(2rem, 5vw, 1.3rem);
}

.feature-card h3 {
  font-size: clamp(0.95rem, 3vw, 1.12rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 2vw, 0.92rem);
  line-height: 1.6;
}

/* ===== Apps / Download ===== */
.apps {
  padding: var(--section-pad) 0;
  position: relative;
}

.apps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

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

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-direction: column;
  margin-top: 32px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.store-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.store-btn .store-label {
  font-size: clamp(0.6rem, 2vw, 0.72rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-btn .store-name {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  margin-top: 32px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 16px;
}

.footer-logo {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: inline-block;
  flex-shrink: 0;
}

.footer-copy {
  color: var(--text-muted);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  order: 3;
}

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  order: 2;
}

.footer-links a {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* ===== Animations ===== */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navLinkSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-22px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes charBounce {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  50% {
    opacity: 1;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger>.fade-in:nth-child(1) {
  transition-delay: 0s;
}

.stagger>.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger>.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger>.fade-in:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger>.fade-in:nth-child(5) {
  transition-delay: 0.4s;
}

.stagger>.fade-in:nth-child(6) {
  transition-delay: 0.5s;
}

/* ===== Responsive - Medium Phones (430px) ===== */
@media (min-width: 481px) {
  :root {
    --section-pad: 56px;
  }

  .container {
    padding: 0 20px;
  }

  .navbar {
    padding: 14px 0;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .hero {
    padding: 110px 20px 70px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-buttons {
    gap: 14px;
  }

  .btn {
    padding: 13px 24px;
    width: auto;
  }

  .feature-card {
    padding: 24px 18px;
  }

  .feature-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
  }

  .store-buttons {
    gap: 14px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .store-btn {
    flex: 1;
    min-width: 180px;
    padding: 14px 18px;
  }
}

/* ===== Responsive - Tablets (768px) ===== */
@media (min-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .container {
    padding: 0 32px;
  }

  .navbar {
    padding: 18px 0;
  }

  .navbar.scrolled {
    padding: 12px 0;
  }

  .nav-logo {
    font-size: 1.35rem;
  }

  .nav-hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    transform: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 36px;
    flex-direction: row;
    z-index: auto;
    overflow: visible;
  }

  .nav-links li {
    opacity: 0;
    animation: navLinkSlideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .nav-links li:nth-child(1) {
    animation-delay: 0.2s;
  }

  .nav-links li:nth-child(2) {
    animation-delay: 0.35s;
  }

  .nav-links li:nth-child(3) {
    animation-delay: 0.5s;
  }

  .hero {
    min-height: 100vh;
    padding: 140px 32px 80px;
  }

  .hero::before {
    max-width: 600px;
  }

  .hero::after {
    height: 200px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 22px;
  }

  .hero p {
    font-size: 1.15rem;
    margin-bottom: 40px;
  }

  .hero-buttons {
    gap: 16px;
    flex-direction: row;
  }

  .btn {
    width: auto;
    padding: 14px 28px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .feature-card {
    padding: 36px 28px;
    text-align: left;
  }

  .feature-icon {
    margin: 0 0 22px 0;
    font-size: 1.3rem;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-copy {
    order: 0;
  }

  .footer-links {
    order: 0;
  }

  .store-buttons {
    gap: 20px;
    flex-direction: row;
  }

  .store-btn {
    width: auto;
    padding: 16px 32px;
    justify-content: flex-start;
  }
}

/* ===== Responsive - Large Tablets & Desktop (1024px) ===== */
@media (min-width: 1024px) {
  :root {
    --section-pad: 100px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}