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

:root {
  --scarlet: #C8102E;
  --scarlet-glow: rgba(200, 16, 46, 0.15);
  --black: #000000;
  --surface: #1C1C1E;
  --surface-hover: #2C2C2E;
  --separator: #38383A;
  --white: #FFFFFF;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-35: rgba(255, 255, 255, 0.35);
  --white-08: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Ambient Glow ── */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--scarlet-glow);
  top: -200px;
  right: -100px;
  opacity: 0.6;
  animation: drift 20s ease-in-out infinite alternate;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(33, 150, 243, 0.06);
  bottom: 10%;
  left: -100px;
  opacity: 0.5;
  animation: drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40px, -30px); }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--white-08);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--scarlet);
  color: var(--white);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--scarlet);
  color: var(--white);
}

.btn-primary:hover {
  background: #d91a37;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 16, 46, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white-60);
  border: 1px solid var(--separator);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: var(--white-08);
}

.btn-disabled {
  background: var(--surface);
  color: var(--white-35);
  cursor: not-allowed;
  border: 1px solid var(--separator);
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white-60);
  background: var(--white-08);
  border: 1px solid var(--white-08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--scarlet), #ff4060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Phone Mockup ── */
.hero-visual {
  flex-shrink: 0;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border-radius: 40px;
  border: 2px solid var(--separator);
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(200, 16, 46, 0.08);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--black);
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--black);
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
  margin-top: -28px;
  padding-top: 28px;
}

.mock-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}

.mock-header {
  padding: 10px 16px 14px;
}

.mock-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-logo {
  height: 36px;
  opacity: 0.9;
}

.mock-content {
  padding: 0 16px;
}

.mock-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--scarlet);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.mock-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 10px;
  margin-bottom: 8px;
}

.mock-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--separator);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
}

.mock-checkbox.checked {
  background: #4CAF50;
  border-color: #4CAF50;
  position: relative;
}

.mock-checkbox.checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mock-task-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}

.mock-task-line {
  height: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

.mock-task-line.sub {
  height: 7px;
  background: rgba(255,255,255,0.06);
}

/* ── Features ── */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

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

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--white-35);
  font-size: 16px;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--white-08);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:nth-child(2).visible {
  transition-delay: 0.1s;
}

.feature-card:nth-child(3).visible {
  transition-delay: 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.6;
}

/* ── Download ── */
.download {
  position: relative;
  z-index: 1;
  padding: 100px 24px 80px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 0 auto 48px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--white-08);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.download-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.download-card:nth-child(2).visible {
  transition-delay: 0.1s;
}

.download-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.platform-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.platform-icon.android {
  background: rgba(61, 220, 132, 0.1);
  color: #3DDC84;
}

.platform-icon.ios {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.platform-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.platform-detail {
  font-size: 14px;
  color: var(--white-35);
  margin-bottom: 24px;
}

.btn-download {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px 24px;
  margin-bottom: 14px;
}

.platform-note {
  font-size: 12px;
  color: var(--white-35);
}

/* ── Install Info ── */
.install-info {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--white-08);
  border-radius: 16px;
  padding: 28px 32px;
  opacity: 0;
  transform: translateY(20px);
}

.install-info.visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.install-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--white);
}

.install-title svg {
  color: var(--scarlet);
  flex-shrink: 0;
}

.install-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-steps li {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.5;
}

.install-steps strong {
  color: var(--white);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--white-08);
  padding: 40px 24px;
}

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

.footer-logo {
  height: 28px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  font-size: 13px;
  color: var(--white-35);
}

.footer-contact {
  color: var(--white-60) !important;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    gap: 48px;
  }

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

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

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

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .download-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .phone-frame {
    width: 240px;
    height: 480px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
  }

  .mock-task {
    padding: 8px 10px;
    margin-bottom: 6px;
  }

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

  .footer-meta {
    text-align: center;
  }

  .install-info {
    padding: 24px 20px;
  }
}
