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

:root {
  --red: #f50c0c;
  --red-dark: #c00a0a;
  --dark: #404040;
  --darker: #2a2a2a;
  --darkest: #1a1a1a;
  --light: #f5f5f5;
  --muted: #888;
  --card-bg: #2e2e2e;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--darkest);
  color: var(--light);
  line-height: 1.6;
}

/* ===== UTILITIES ===== */
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--light);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:hover { border-color: rgba(255,255,255,0.5); }
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--light);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { display: block; text-align: center; width: 100%; margin-top: 1rem; }

.accent { color: var(--red); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
  gap: 3rem;
}

.hero-inner { flex: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(245,12,12,0.15);
  color: #ff6060;
  border: 1px solid rgba(245,12,12,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

.hero-sub {
  font-size: 1.1rem;
  color: #bbb;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== PHONE MOCKUP ===== */
.hero-visual { flex: 0 0 auto; }

.phone-mockup {
  width: 220px;
  background: var(--darker);
  border-radius: 30px;
  border: 3px solid rgba(255,255,255,0.12);
  padding: 1.5rem 1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-screen { display: flex; flex-direction: column; gap: 0.75rem; }

.mock-bar {
  height: 4px;
  width: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 0.5rem;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #888;
}

.mock-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border-left: 3px solid var(--red);
}

.mock-code {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--red);
  font-family: monospace;
  min-width: 38px;
}

.mock-label { font-size: 0.75rem; color: #ccc; }

/* ===== FEATURES ===== */
.features {
  background: var(--darker);
  padding: 5rem 0;
}

.features h2,
.download h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: #999;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,12,12,0.3);
}

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

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

.feature-card p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.55;
}

/* ===== DOWNLOAD ===== */
.download {
  padding: 5rem 0;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.install-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.install-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.install-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.android-icon { background: rgba(61,220,132,0.15); }
.pwa-icon     { background: rgba(66,133,244,0.15); }

.install-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.install-tag {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}

.install-card > p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.55;
  margin-bottom: 0.25rem;
}

/* ===== INSTALL STEPS ===== */
.install-steps {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.install-steps summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 600;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.install-steps summary::before {
  content: "▶";
  font-size: 0.65rem;
  transition: transform 0.2s;
}
details[open] .install-steps summary::before,
.install-steps[open] summary::before { transform: rotate(90deg); }
details[open] summary::before { transform: rotate(90deg); }

.install-steps ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.install-steps li {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.5;
}

.install-steps code {
  background: rgba(255,255,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ===== PWA TABS ===== */
.pwa-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 1rem 0 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: #aaa;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.footer-sub {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--red);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-link:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 4rem;
    min-height: auto;
    gap: 2rem;
  }
  .hero-visual { align-self: center; }
  .phone-mockup { width: 180px; }
  .hero-actions { flex-direction: column; }
  .btn-block + .btn-block { margin-top: 0.5rem; }
}
