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

:root {
  --bg: #ffffff;
  --bg-surface: #f7f7f8;
  --bg-raised: #ffffff;
  --border: #e8e8ed;
  --text-primary: #1a1a2e;
  --text-secondary: #5a5a72;
  --text-muted: #9999aa;
  --violet: #7c3aff;
  --violet-soft: #f0ebff;
  --violet-bright: #9d5fff;
  --lime: #b5f23d;
  --lime-dark: #5a8f00;
  --blue: #4f8cff;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ─── Grain overlay ─── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.nav-logo:hover { opacity: 1; }
.nav-logo img { display: block; }

.btn-nav-store {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn-nav-store:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}
.btn-nav-store img { display: block; }

/* ─── Hero section ─── */
.hero-section {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(124,58,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(181,242,61,0.09) 0%, transparent 60%),
    white;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--lime);
  color: var(--lime-dark);
  border-radius: 50px;
  padding: 5px 14px 5px 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a7a00;
  flex-shrink: 0;
}

/* App icon */
.app-icon {
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(124,58,255,0.22);
  width: 72px;
  height: 72px;
}

/* Wordmark */
.wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 80px;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline */
.tagline {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

/* Description */
.description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
}

/* App Store CTA */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-appstore:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}
.btn-appstore img { display: block; }

/* Micro copy */
.micro {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ─── Hero right: iPhone frame ─── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-wrap {
  animation: float 6s ease-in-out infinite;
}

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

.iphone-body {
  width: 290px;
  background: #1c1c1e;
  border-radius: 46px;
  padding: 12px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 0 0 1px rgba(0,0,0,0.06),
    0 40px 80px rgba(0,0,0,0.2),
    0 8px 24px rgba(0,0,0,0.12);
}

/* Power button (right) */
.iphone-body::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 110px;
  width: 3px;
  height: 72px;
  background: #2c2c2e;
  border-radius: 0 2px 2px 0;
}

/* Volume buttons (left) */
.iphone-body::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 90px;
  width: 3px;
  height: 40px;
  background: #2c2c2e;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 52px 0 #2c2c2e, 0 8px 0 #2c2c2e;
}

.iphone-screen {
  border-radius: 38px;
  overflow: hidden;
  aspect-ratio: 1242 / 2688;
  background: #000;
  position: relative;
}

.gif-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gif-toggle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
}
.gif-toggle:hover {
  background: rgba(0,0,0,0.72);
  transform: scale(1.08);
}

/* ─── Page load animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-in {
  opacity: 0;
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Eyebrow / section labels ─── */
.eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

/* ─── Concept section ─── */
.concept-section {
  background: var(--bg-surface);
  padding: 120px 40px;
}

.concept-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 44px;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

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

.concept-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.concept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  display: block;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.concept-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.concept-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ─── Screenshots section ─── */
.screenshots-section {
  background: white;
  padding: 100px 0;
}

.screenshots-header {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 56px;
}

.screenshots-outer {
  position: relative;
  overflow: hidden;
}

.screenshots-outer::before,
.screenshots-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.screenshots-outer::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.screenshots-outer::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.screenshots-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 40px 40px;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.screenshot-item .iphone-mini-body {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.screenshot-item:hover .iphone-mini-body {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 0 0 1px rgba(0,0,0,0.07),
    0 28px 56px rgba(0,0,0,0.22);
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.lightbox.open {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: all;
}
.lightbox-frame {
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}
.lightbox.open .lightbox-frame {
  transform: scale(1);
  opacity: 1;
}
.lightbox-phone {
  width: 320px;
  background: #1c1c1e;
  border-radius: 50px;
  padding: 14px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 0 0 1px rgba(0,0,0,0.08),
    0 48px 96px rgba(0,0,0,0.6);
}
.lightbox-phone::after {
  content: '';
  position: absolute;
  right: -3px; top: 120px;
  width: 3px; height: 80px;
  background: #2c2c2e;
  border-radius: 0 2px 2px 0;
}
.lightbox-phone::before {
  content: '';
  position: absolute;
  left: -3px; top: 100px;
  width: 3px; height: 44px;
  background: #2c2c2e;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 52px 0 #2c2c2e, 0 8px 0 #2c2c2e;
}
.lightbox-screen {
  border-radius: 38px;
  overflow: hidden;
  aspect-ratio: 1242 / 2688;
  background: #000;
}
.lightbox-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }
.lightbox-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* ─── Mini iPhone frames (screenshots) ─── */
.iphone-mini-body {
  width: 175px;
  background: #1c1c1e;
  border-radius: 28px;
  padding: 8px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 1px rgba(0,0,0,0.05),
    0 20px 48px rgba(0,0,0,0.14);
}

.iphone-mini-body::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 68px;
  width: 2px;
  height: 42px;
  background: #2c2c2e;
  border-radius: 0 2px 2px 0;
}

.iphone-mini-screen {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1242 / 2688;
  background: #000;
}

.iphone-mini-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ─── CTA section ─── */
.cta-section {
  padding: 120px 40px;
  text-align: center;
  position: relative;
  background-color: rgba(124,58,255,0.025);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 36px;
}

.cta-micro {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-links .sep {
  color: var(--border);
  font-size: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
    gap: 48px;
  }
  .hero-left { align-items: center; }
  .description { max-width: 480px; text-align: center; }
  .hero-right { order: -1; }
  .concept-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .wordmark { font-size: 60px; }
  .tagline { font-size: 36px; }
  .nav-inner { padding: 0 20px; }
  .concept-section { padding: 80px 24px; }
  .section-header h2 { font-size: 36px; }
  .screenshots-section { padding: 80px 0; }
  .screenshots-header { padding: 0 24px; }
  .screenshots-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 32px 40px;
  }
  .screenshots-strip::-webkit-scrollbar { display: none; }
  .cta-headline { font-size: 40px; }
  .cta-section { padding: 80px 24px; }
  .footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .wordmark { font-size: 44px; }
  .tagline { font-size: 28px; }
  .description { font-size: 16px; }
  .hero-grid { padding: 110px 24px 60px; }
  .iphone-body { width: 230px; border-radius: 38px; padding: 10px; }
  .iphone-screen { border-radius: 30px; }
  .cta-headline { font-size: 32px; }
  .lightbox-phone { width: 260px; border-radius: 40px; padding: 10px; }
  .lightbox-screen { border-radius: 32px; }
}
