@import 'reset.css';
@import 'variables.css';
@import 'glass.css';

/* ── Layout ─────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-py) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

/* ── Navbar ─────────────────────────────────────────── */

#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.nav-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 4px;
}

.lang-btn {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

/* ── Hero ───────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,115,255,0.2) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 50%, rgba(0,85,204,0.15) 0%, transparent 60%),
              var(--bg);
  z-index: 0;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 115, 255, 0.15);
  border: 1px solid rgba(0, 115, 255, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 24px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-store {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  transition: all 0.2s;
  position: relative;
}

.badge-store:not(.btn-disabled):hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

.badge-store-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.badge-store-text {
  display: flex;
  flex-direction: column;
}

.badge-store-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1;
}

.badge-store-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.soon-label {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}

/* iPhone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-mockup {
  width: 260px;
  height: 530px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 44px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6),
              0 0 0 1px rgba(255,255,255,0.06) inset,
              0 60px 120px rgba(0,115,255,0.15);
  overflow: hidden;
}

.iphone-notch {
  width: 100px;
  height: 28px;
  background: rgba(0,0,0,0.8);
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
}

.iphone-screen {
  padding: 12px;
  height: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iphone-screen-row {
  height: 70px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.iphone-screen-row.tall {
  height: 120px;
}

.iphone-screen-row.accent {
  background: linear-gradient(135deg, rgba(0,115,255,0.3), rgba(0,55,130,0.3));
  border-color: rgba(0,115,255,0.2);
}

/* Frameshot hero */
.hero-frameshot {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0, 115, 255, 0.3));
}

/* ── Features ───────────────────────────────────────── */

#features {
  background: var(--bg-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 32px 28px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 115, 255, 0.15);
  border: 1px solid rgba(0, 115, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Screenshots ────────────────────────────────────── */

#screenshots {
  overflow: hidden;
}

.screenshots-header {
  margin-bottom: 48px;
}

.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0 40px;
  scrollbar-width: none;
}

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

.screenshot-frame {
  flex-shrink: 0;
  width: 640px;
  height: 420px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.8rem;
  transition: transform 0.3s var(--ease-spring);
}

.screenshot-frame:hover {
  transform: scale(1.02);
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder-icon {
  font-size: 2rem;
  opacity: 0.3;
}

/* ── Apple badges ───────────────────────────────────── */

.apple-badge-link {
  display: inline-block;
  position: relative;
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
}

.apple-badge-link:not(.btn-disabled):hover {
  transform: scale(1.04);
}

.apple-badge-img {
  height: 52px;
  width: auto;
  display: block;
}

/* ── Video ──────────────────────────────────────────── */

#video {
  background: var(--bg-2);
}

.video-wrapper {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 860px;
  border: 1px solid var(--glass-border);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Creators ───────────────────────────────────────── */

.creators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.creators-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.creators-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.creators-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 115, 255, 0.15);
  border: 1px solid rgba(0, 115, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-light);
}

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

.creators-card {
  padding: 32px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.creators-card-header {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.creators-card-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.creators-card-sub {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

@media (max-width: 768px) {
  .creators-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Testimonials ───────────────────────────────────── */

#testimonials {
  background: var(--bg-2);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.testimonial-card {
  padding: 28px;
}

.testimonial-stars {
  color: #FFCC00;
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── CTA Download ───────────────────────────────────── */

#download {
  text-align: center;
}

.download-inner {
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0,115,255,0.12) 0%, transparent 70%);
  border: 1px solid rgba(0,115,255,0.15);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
}

.download-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.download-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.download-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────── */

footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ── Scroll reveal ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth),
              transform 0.6s var(--ease-smooth);
}

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

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .iphone-mockup {
    width: 200px;
    height: 408px;
  }

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

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

  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
