:root {
  --primary: #6750a4;
  --primary-dark: #5a4790;
  --primary-light: #7d6bb8;
  --background: #f7f7f9;
  --surface: #ffffff;
  --text: #121212;
  --text-muted: #625b71;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(103, 80, 164, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 247, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.store-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.store-badge img {
  display: block;
  height: auto;
  max-height: 52px;
}

.store-badge:last-child img {
  max-height: 44px;
}

/* App Store badge - CSS styled (no external image), matches Play Store height (52px) */
.store-badge-apple {
  background: #000;
  color: #fff;
  border-radius: 6px;
  padding: 10px 16px;
  height: 52px;
  min-width: 155px;
}

.store-badge-apple-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.store-badge-apple .apple-logo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.store-badge-line1 {
  font-size: 12px;
}

.store-badge-line2 {
  font-size: 20px;
  font-weight: 600;
}

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

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 
    0 0 0 3px #333,
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 30px;
  overflow: hidden;
}

/* App mockup content */
.app-mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.app-status-bar {
  height: 28px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.app-header {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.app-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.app-content {
  flex: 1;
  padding: 24px 16px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(103, 80, 164, 0.04) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.app-scan-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-radar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 0 0 8px rgba(103, 80, 164, 0.2), 0 0 0 16px rgba(103, 80, 164, 0.1);
  position: relative;
}

.app-radar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
}

.app-scan-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.app-scan-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.app-users-preview {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  opacity: 0.8;
}

.app-avatar:nth-child(2) {
  width: 44px;
  height: 44px;
  opacity: 1;
}

.app-nav {
  display: flex;
  justify-content: space-around;
  padding: 12px 8px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.app-nav-item {
  font-size: 10px;
  color: var(--text-muted);
}

.app-nav-active {
  color: var(--primary);
  font-size: 12px;
}

/* Features */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.features h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(103, 80, 164, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Download section */
.download {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 6rem 1.5rem;
  text-align: center;
}

.download-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.download-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.store-badges-centered {
  justify-content: center;
}

.download .store-badge img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6rem;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
    border-radius: 32px;
  }

  .features h2,
  .download-content h2 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
  }
}
