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

:root {
  --primary:        #4294CC;
  --primary-light:  #6BAED6;
  --primary-dark:   #2E6FA3;
  --primary-tint:   rgba(66, 148, 204, 0.08);
  --primary-border: rgba(66, 148, 204, 0.22);
  --bg:             #F5F7FA;
  --bg-white:       #FFFFFF;
  --bg-section:     #EEF3F8;
  --text:           #1A1A2E;
  --text-mid:       #374151;
  --text-muted:     #6B7280;
  --border:         #E5E7EB;
  --success:        #10B981;
  --radius:         14px;
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section        { padding: 96px 0; }
.section-alt    { padding: 96px 0; background: var(--bg-white); }
.section-tinted { padding: 96px 0; background: var(--bg-section); }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo-img {
  height: 180px;
  width: auto;
  display: block;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-icon-btn:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-store-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36npx;
  height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-store-wrap:hover { opacity: 0.65; }

.nav-store-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.nav-store-wrap:hover .nav-store-tooltip { opacity: 1; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(66,148,204,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(66,148,204,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
}
.btn-outline:hover {
  background: var(--primary-tint);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
}
.btn-ghost:hover { color: var(--text); }

/* ── Badge ── */
.badge {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

/* decorative circles */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 600px; height: 600px;
  top: -200px; right: -160px;
  background: radial-gradient(circle, rgba(66,148,204,0.1) 0%, transparent 70%);
}
.hero::after {
  width: 400px; height: 400px;
  bottom: -100px; left: -120px;
  background: radial-gradient(circle, rgba(107,174,214,0.08) 0%, transparent 70%);
}

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

/* outer: JS controls transform + opacity entirely */
.hero-logo-scroll {
  display: inline-block;
  will-change: transform, opacity;
  opacity: 0;
}

/* inner: clips the PNG's built-in whitespace */
.hero-logo-clip {
  display: inline-block;
  overflow: hidden;
}

.hero-logo-img {
  height: 480px;
  width: auto;
  display: block;
  margin-top: -205px;
  margin-bottom: -140px;
}

/* ── Store buttons ── */
.btn-store {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  gap: 10px;
  padding: 8px 18px;
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-store svg { flex-shrink: 0; color: var(--text-muted); }

.btn-store span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  font-size: 15px;
  font-weight: 700;
}

.btn-store small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--primary); }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stack {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.stack-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ── Section headings ── */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 52px;
  max-width: 520px;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Screenshots ── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: end;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.screenshot-item img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-item img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.screenshot-item span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* alternating heights for rhythm */
.screenshot-item:nth-child(even) { padding-top: 24px; }

/* ── Steps ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step:last-child { border-bottom: none; }

.step-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  border-radius: 8px;
  padding: 6px 12px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

/* ── Tech ── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tech-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.tech-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.tech-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.tech-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.tech-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.tech-card li strong { color: var(--text-mid); font-weight: 600; }

/* ── Footer ── */
.footer {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  text-align: center;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 auto 20px;
}

.footer-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.footer-sub strong { color: var(--text-mid); }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
  .screenshot-item:nth-child(even) { padding-top: 0; }
  .tech-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section, .section-alt, .section-tinted { padding: 72px 0; }
  .hero { padding: 100px 0 64px; }
  .hero-sub { font-size: 16px; }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .step { gap: 20px; }
}
