/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fafafa;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Utilities ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; border-radius: 12px; cursor: pointer;
  transition: all .2s ease; border: none; font-family: inherit;
  text-decoration: none;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
  background: #6C5CE7; color: #fff;
  box-shadow: 0 4px 14px rgba(108,92,231,.35);
}
.btn-primary:hover { background: #5a4bd4; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,92,231,.4); }
.btn-outline {
  background: transparent; color: #1a1a2e;
  border: 2px solid #ddd;
}
.btn-outline:hover { border-color: #6C5CE7; color: #6C5CE7; }
.btn-ghost { background: transparent; color: #6C5CE7; border: 2px solid rgba(108,92,231,.3); }
.btn-ghost:hover { background: rgba(108,92,231,.08); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.section-header p { font-size: 18px; color: #666; max-width: 500px; margin: 0 auto; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,250,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: #555; transition: color .15s; }
.nav-links a:hover { color: #6C5CE7; }
.nav-links .btn { color: #6C5CE7; border: 1.5px solid rgba(108,92,231,.3); }
.nav-links .btn:hover { background: rgba(108,92,231,.08); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #333; border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { padding: 140px 0 100px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: rgba(108,92,231,.1); color: #6C5CE7;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #6C5CE7, #e17055); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 18px; color: #555; max-width: 480px; margin-bottom: 32px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Phone Frame */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 280px; height: 570px; border-radius: 40px;
  background: #1a1a2e; padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,.15), 0 0 0 1px rgba(255,255,255,.1) inset;
  position: relative; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 30px;
  background: #f5f5f7; overflow: hidden; position: relative;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.phone-screen img[src=""], .phone-screen img:not([src]) { display: none; }
.hero-glow {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,.2), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
}

/* Placeholder skeletons (hidden once screenshot loads) */
.phone-placeholder {
  position: absolute; inset: 0; padding: 24px 16px; display: flex; flex-direction: column; gap: 12px;
  z-index: 1;
}
.phone-placeholder.hidden { display: none; }
.phone-screen img.loaded { position: relative; z-index: 2; }
.screenshot-phone img.loaded { position: relative; z-index: 2; }
.ph-bar { height: 8px; width: 50%; border-radius: 4px; background: #e0e0e0; margin-bottom: 8px; }
.ph-card { height: 100px; border-radius: 12px; background: linear-gradient(135deg, #6C5CE7, #a29bfe); }
.ph-card.short { height: 60px; background: linear-gradient(135deg, #00b894, #55efc4); }
.ph-card.tall { height: 160px; }
.ph-card.wallet { background: linear-gradient(135deg, #2d3436, #636e72); }
.ph-qr { width: 80px; height: 80px; border-radius: 8px; background: #ddd; align-self: center; margin-top: auto; }
.ph-qr.small { width: 60px; height: 60px; }
.ph-row { height: 48px; border-radius: 10px; background: #eee; }
.ph-field { height: 44px; border-radius: 10px; background: #eee; }
.ph-color { height: 44px; width: 60%; border-radius: 10px; background: linear-gradient(90deg, #e17055, #fdcb6e, #00b894, #0984e3, #6c5ce7); }
.ph-camera { flex: 1; border-radius: 12px; background: #2d3436; display: flex; align-items: center; justify-content: center; }
.ph-camera::after { content: ''; width: 60px; height: 60px; border: 3px solid rgba(255,255,255,.3); border-radius: 12px; }

/* ===== Features ===== */
.features { padding: 100px 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 32px; border-radius: 16px; background: #fafafa;
  border: 1px solid #f0f0f0; transition: all .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.06); border-color: #e8e8e8; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: #666; line-height: 1.6; }

/* ===== Screenshots ===== */
.screenshots { padding: 100px 0; }
.screenshots-scroll {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px 0 40px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item { scroll-snap-align: center; flex-shrink: 0; text-align: center; }
.screenshot-phone {
  width: 220px; height: 450px; border-radius: 32px;
  background: #1a1a2e; padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
  overflow: hidden;
}
.screenshot-phone > img { width: 100%; height: 100%; border-radius: 24px; object-fit: cover; }
.screenshot-phone > img[src=""], .screenshot-phone > img:not([src]) { display: none; }
.screenshot-phone .phone-placeholder { padding: 20px 12px; }
.screenshot-label { display: block; margin-top: 14px; font-size: 14px; font-weight: 600; color: #888; }

/* ===== CTA ===== */
.cta {
  padding: 100px 0; background: linear-gradient(135deg, #1a1a2e, #2d1b69);
  color: #fff; text-align: center;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.cta p { font-size: 18px; color: rgba(255,255,255,.7); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: #1a1a2e; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.cta .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ===== Footer ===== */
.footer { padding: 60px 0 0; background: #fff; border-top: 1px solid #f0f0f0; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.footer-brand p { color: #888; font-size: 14px; margin-top: 12px; }
.footer-links { display: flex; gap: 60px; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #999; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: #555; transition: color .15s; }
.footer-col a:hover { color: #6C5CE7; }
.footer-bottom { padding: 24px 0; margin-top: 40px; border-top: 1px solid #f0f0f0; }
.footer-bottom p { font-size: 13px; color: #aaa; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(250,250,250,.98); backdrop-filter: blur(16px); padding: 20px 24px; gap: 16px; border-bottom: 1px solid #eee; }
  .mobile-menu-btn { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .phone-frame { width: 240px; height: 490px; }
  .screenshot-phone { width: 180px; height: 370px; }
  .footer-links { flex-direction: column; gap: 32px; }
}
