*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-subtle: #f4f4f5;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --border: #e4e4e7;
  --accent: #6366f1;
  --accent-light: #a5b4fc;
  --accent-bg: #eef2ff;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(250, 250, 250, 0.95);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--accent);
}

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

/* ===== Hero ===== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: -200px;
  right: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .01em;
  animation: fade-in-up 0.6s ease-out 0.2s both;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--text);
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
  animation: fade-in-up 0.6s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s ease-out 0.5s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(99,102,241,.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ===== Hero Visual ===== */
.hero-visual {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-up 0.8s ease-out 0.6s both;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-orbit-a {
  inset: 56px 20px 80px 30px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08), transparent 60%);
}

.hero-orbit-b {
  inset: 104px 60px 18px 110px;
  border: 1px solid rgba(99, 102, 241, 0.08);
  background: radial-gradient(circle at 75% 35%, rgba(14, 165, 233, 0.1), transparent 58%);
}

.mockup-card,
.mockup-phone {
  position: absolute;
  overflow: hidden;
  background: rgba(14, 18, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mockup-card {
  left: 18px;
  top: 140px;
  width: 230px;
  padding: 12px;
  border-radius: 28px;
  transform: rotate(-6deg);
  animation: float-card 6s ease-in-out infinite;
  z-index: 2;
}

.mockup-phone {
  right: 18px;
  top: 80px;
  width: 230px;
  padding: 14px 14px 22px;
  border-radius: 40px;
  transform: rotate(6deg);
  animation: float-phone 5.5s ease-in-out infinite;
  z-index: 3;
}

.mockup-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d4f8ff;
  background: rgba(103, 213, 235, 0.12);
  border: 1px solid rgba(103, 213, 235, 0.2);
}

.mockup-label-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56d364;
  box-shadow: 0 0 12px rgba(86, 211, 100, 0.8);
}

.mockup-screenshot-frame {
  position: relative;
  overflow: hidden;
  background: #0b0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-screenshot-frame-secondary {
  border-radius: 22px;
  aspect-ratio: 1224 / 2776;
}

.phone-shell {
  position: relative;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.phone-shell::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 82px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  width: 100%;
  background: #111827;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1224 / 2776;
}

.mockup-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float-card {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-10px); }
}

@keyframes float-phone {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-10px); }
}

/* ===== Grid Background Pattern ===== */
.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== Sections ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
}

/* ===== Features ===== */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 100px;
  position: relative;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 32px rgba(99,102,241,.12);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s, background 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(135deg, var(--accent-bg), #e0e7ff);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Pricing ===== */
.pricing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 100px;
  position: relative;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.pricing-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 32px rgba(99,102,241,.12);
  transform: translateY(-4px);
}

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99,102,241,0.04) 0%, var(--bg-card) 40%);
  box-shadow: 0 8px 40px rgba(99,102,241,.15);
  transform: scale(1.04);
  z-index: 1;
}

.pricing-card-featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 12px 48px rgba(99,102,241,.2);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.pricing-card-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.pricing-card-featured .pricing-amount {
  color: var(--accent);
}

.pricing-period {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.pricing-save {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
  width: fit-content;
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-subtle);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ===== Download ===== */
.download {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.download-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
}

.download-group-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 12px;
  flex-shrink: 0;
}

.download-group-icon.mobile-icon {
  background: #f0fdf4;
  color: #22c55e;
}

.download-group-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.download-group-header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.download-group-header > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-grid {
  display: grid;
  gap: 16px;
}

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

.mobile-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc(66.666% + 8px);
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.download-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(99,102,241,0.06), transparent);
  transition: height 0.3s;
}

.download-card:hover::after {
  height: 100%;
}

.download-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 32px rgba(99,102,241,.12);
  transform: translateY(-4px);
}

.download-card.is-disabled {
  opacity: 0.72;
}

.download-card.is-disabled:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.download-card.is-disabled:hover::after {
  height: 0;
}

.dl-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 16px;
  margin-bottom: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover .dl-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(99,102,241,.2);
}

.download-card.is-disabled:hover .dl-icon {
  transform: none;
  box-shadow: none;
}

.download-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.dl-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-subtle);
  padding: 2px 10px;
  border-radius: 20px;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 48px 24px 28px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .15s, transform .15s;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ===== Particle Canvas ===== */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 120px 24px 60px;
    text-align: center;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-visual {
    height: 480px;
  }

  .mockup-card {
    width: 200px;
    left: 24px;
    top: 130px;
  }

  .mockup-phone {
    width: 200px;
    top: 80px;
    right: 24px;
  }

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

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

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

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

  .mobile-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-visual {
    height: 380px;
  }

  .hero-orbit-a {
    inset: 34px 8px 56px 8px;
  }

  .hero-orbit-b {
    inset: 72px 28px 8px 52px;
  }

  .mockup-card {
    width: 150px;
    left: 16px;
    top: 160px;
    padding: 10px;
    border-radius: 22px;
  }

  .mockup-phone {
    width: 150px;
    top: 100px;
    right: 16px;
    padding: 10px 10px 18px;
    border-radius: 30px;
  }

  .mockup-label {
    margin-bottom: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .phone-shell {
    border-radius: 22px;
    padding: 6px;
  }

  .phone-shell::before {
    width: 62px;
    height: 14px;
    top: 8px;
  }

  .phone-screen {
    border-radius: 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-amount {
    font-size: 36px;
  }

  .desktop-grid {
    grid-template-columns: 1fr;
  }

  .mobile-grid {
    grid-template-columns: 1fr;
  }

  .download-group-header {
    gap: 10px;
  }

  .download-group-header h3 {
    font-size: 16px;
  }

  .download-group-header p {
    font-size: 13px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
  }
}
