/* ===== Layout ===== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--white);
}

.nav-cta {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s;
  backdrop-filter: blur(8px);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.25);
}

.navbar.scrolled {
  background: rgba(var(--primary-dark-rgb), 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

.navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.scrolled .nav-link:hover {
  color: var(--white);
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary-dark) 30%, var(--primary-mid) 60%, var(--primary) 100%);
  background-size: 300% 300%;
  animation: gradient-shift 20s ease infinite;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(var(--indigo-border-rgb), 0.2);
  top: -150px;
  right: -100px;
  animation: float-1 25s ease-in-out infinite;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(var(--primary-rgb), 0.15);
  bottom: -100px;
  left: -80px;
  animation: float-2 20s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(var(--accent-rgb), 0.12);
  top: 40%;
  left: 35%;
  animation: float-3 15s ease-in-out infinite;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--indigo-border);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.5);
}

.btn-primary svg {
  width: 22px;
  height: 22px;
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.7;
}

.hero-trust span {
  white-space: nowrap;
}

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

/* ===== Hero Phone Frame ===== */

.phone-frame {
  width: 280px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 10px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: phone-float 6s ease-in-out infinite;
}

.hero-screenshot {
  width: 100%;
  display: block;
  border-radius: 26px;
}

/* ===== Screenshots Section ===== */

.screenshots {
  padding: 100px 0;
  background: var(--surface);
  overflow: hidden;
}

.screenshots-carousel {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 32px;
  scrollbar-width: none;
}

.screenshots-carousel::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
  text-align: center;
}

.screenshot-frame {
  background: #1a1a2e;
  border-radius: 28px;
  padding: 8px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.screenshot-frame:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 64px rgba(var(--primary-rgb), 0.2),
    0 0 0 1px rgba(var(--primary-rgb), 0.1);
}

.screenshot-frame img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.screenshot-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== Wave Separator ===== */

.wave-separator {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}

/* ===== Section Common ===== */

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Problem Section ===== */

.problem {
  padding: 100px 0;
  background: var(--surface);
}

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

.problem-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.problem-icon {
  width: 56px;
  height: 56px;
  background: var(--indigo-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Features Section ===== */

.features {
  padding: 100px 0;
  background: var(--bg);
}

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

.feature-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(var(--primary-rgb), 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--indigo-light) 0%, var(--indigo-border) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Stats Section ===== */

.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.15);
}

.stat-suffix {
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.75;
  font-weight: 500;
}

/* ===== How It Works ===== */

.how-it-works {
  padding: 100px 0;
  background: var(--surface);
}

.steps-container {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps-container::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(to bottom, var(--indigo-border), var(--primary), var(--indigo-border));
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
  position: relative;
  z-index: 1;
}

.step-content {
  padding-top: 8px;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Comparison Section ===== */

.comparison {
  padding: 100px 0;
  background: var(--bg);
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  min-width: 640px;
}

.comparison-table thead th {
  padding: 20px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  text-align: left;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  background: var(--bg);
}

.comparison-table thead th:nth-child(2) {
  color: var(--primary);
  background: var(--indigo-light);
}

.comparison-table tbody td {
  padding: 16px 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}

.comparison-table tbody td:nth-child(2) {
  background: rgba(79, 70, 229, 0.03);
  font-weight: 600;
  color: var(--text);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.table-check {
  color: var(--primary);
  font-weight: 700;
}

.table-cross {
  color: var(--text-tertiary);
}

.table-highlight {
  color: var(--primary);
  font-weight: 700;
}

/* ===== Pricing Section ===== */

.pricing {
  padding: 100px 0;
  background: var(--surface);
}

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

.pricing-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px 32px;
  border: 2px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              border-color 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(var(--primary-rgb), 0.12);
  border-color: var(--indigo-border);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.15);
}

.pricing-card.featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(var(--primary-rgb), 0.22);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.pricing-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

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

.pricing-features .check {
  width: 22px;
  height: 22px;
  background: var(--indigo-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features .cross {
  width: 22px;
  height: 22px;
  background: var(--cross-bg);
  color: var(--text-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              background 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: none;
  cursor: pointer;
}

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

.pricing-btn-outline {
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.pricing-btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
}

/* ===== CTA Section ===== */

.cta {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--indigo-border-rgb), 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

.cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 40px;
}

.cta .btn-primary {
  font-size: 1.1rem;
  padding: 16px 36px;
}

/* ===== Footer ===== */

footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--indigo-border);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.copyright {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}
