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

:root {
  --bg: #192231;
  --bg-card: #18181b;
  --bg-hover: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --border-hi: #3f3f46;
  --green: #10b981;
  --green-muted: rgba(16, 185, 129, 0.1);
  --blue: #3b82f6;
  --blue-muted: rgba(59, 130, 246, 0.1);
  --orange: #f59e0b;
  --orange-muted: rgba(245, 158, 11, 0.1);
  --font: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Nav ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  color: var(--green);
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}

.nav-cta:hover {
  color: var(--text);
  border-color: var(--green);
}

/* ===== Hero ===== */
.hero {
  padding-bottom: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 3rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 600px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ===== Phone Frame ===== */
.hero-phone {
  margin: 3rem 0 2.5rem;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #192231;
  border-radius: 40px;
  border: 4px solid #3f3f46;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(16, 185, 129, 0.08);
}


.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Placeholder when no screenshot */
.phone-screenshot[src="screenshot.png"]:not([src$=".png"]),
.phone-frame:not(:has(.phone-screenshot[src])) {
  background: var(--bg-card);
}

/* ===== Store Buttons ===== */
.cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge-link {
  display: inline-block;
  transition: transform 0.15s;
}

.store-badge-link:hover {
  transform: translateY(-1px);
}

.store-badge-link.disabled {
  pointer-events: none;
  opacity: 0.35;
}

.coming-soon-wrapper {
  position: relative;
}

.coming-soon-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 2rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.store-badge {
  height: 54px;
  width: auto;
}

.store-badge.google-badge {
  height: 78px;
  margin: -12px 0;
}

/* ===== WebApp Link ===== */
.webapp-link {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 0.65rem 1.5rem;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px dashed var(--border-hi);
  border-radius: 10px;
  transition: all 0.15s;
}

.webapp-link:hover {
  border-color: var(--green);
  background: var(--green-muted);
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.feature {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s;
}

.feature:hover {
  border-color: var(--border-hi);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.feature-icon.green { background: var(--green-muted); color: var(--green); }
.feature-icon.blue { background: var(--blue-muted); color: var(--blue); }
.feature-icon.orange { background: var(--orange-muted); color: var(--orange); }

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--green);
}

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

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .cta-group {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

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