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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #60A5FA;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #0EA5E9;
  --bg: #F2F2F7;
  --bg-card: #FFFFFF;
  --surface: #FEFFFF;
  --text: #111827;
  --text-muted: #6B7280;
  --text-tertiary: #9CA3AF;
  --border: #E5E7EB;
  --divider: #E5E7EB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 { line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(242, 242, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

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

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

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

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #8B5CF6, var(--warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
}

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

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-platforms > span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.platform-badges {
  display: flex;
  gap: 6px;
}

.platform-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

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

.phone-mockup {
  width: 300px;
  height: 620px;
  background: #000;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0B0B0B;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-content {
  flex: 1;
  overflow: hidden;
  padding: 52px 16px 0;
  position: relative;
}

.app-tab {
  display: none;
  animation: tabFadeIn 0.3s ease;
  height: 100%;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.app-tab::-webkit-scrollbar { display: none; }

.app-tab.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== iOS Tab Bar ===== */
.tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 14px;
  background: #1C1C1E;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.tab-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: #636366;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab-bar-item.active {
  color: #3B82F6;
}

.tab-bar-item span {
  font-size: 0.5rem;
  font-weight: 500;
  font-family: 'Inter', -apple-system, sans-serif;
}

.tab-bar-item svg {
  width: 20px;
  height: 20px;
}

.mock-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.mock-greeting {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FEFFFF;
}

.mock-date {
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-top: 2px;
}

.mock-widget-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.mock-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-event {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1C1C1E;
  border-radius: 12px;
  padding: 11px 12px;
}

.mock-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--event-color);
  flex-shrink: 0;
}

.mock-event-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-time {
  font-size: 0.65rem;
  color: #9CA3AF;
  font-weight: 500;
  min-width: 52px;
}

.mock-title {
  font-size: 0.78rem;
  color: #FEFFFF;
  font-weight: 500;
}

.mock-quest {
  background: #1C1C1E;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-quest-label {
  font-size: 0.6rem;
  color: #22C55E;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-quest-points {
  font-size: 0.6rem;
  color: #F59E0B;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: 10px;
}

.mock-quest-title {
  font-size: 0.85rem;
  color: #FEFFFF;
  font-weight: 600;
}

.mock-quest-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-quest-reward {
  font-size: 0.65rem;
  color: #9CA3AF;
}

/* ===== Screen 2: Calendar ===== */
.mock-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mock-cal-nav {
  font-size: 0.9rem;
  color: #3B82F6;
  cursor: default;
  padding: 0 4px;
}

.mock-cal-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FEFFFF;
}

.mock-cal-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.mock-cal-views {
  display: flex;
  gap: 2px;
  background: #2C2C2E;
  border-radius: 8px;
  padding: 2px;
}

.mock-cal-view {
  font-size: 0.55rem;
  font-weight: 600;
  color: #9CA3AF;
  padding: 4px 8px;
  border-radius: 6px;
}

.mock-cal-view.active-view {
  background: #3B82F6;
  color: white;
}

.mock-cal-days {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.mock-cal-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mock-day-name {
  font-size: 0.5rem;
  color: #9CA3AF;
  font-weight: 500;
}

.mock-day-num {
  font-size: 0.7rem;
  color: #FEFFFF;
  font-weight: 600;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mock-day-num.today {
  background: #3B82F6;
  color: white;
}

.mock-cal-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-cal-block {
  background: #1C1C1E;
  border-left: 3px solid var(--block-color);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-cal-block-time {
  font-size: 0.55rem;
  color: #9CA3AF;
  font-weight: 500;
}

.mock-cal-block-title {
  font-size: 0.75rem;
  color: #FEFFFF;
  font-weight: 600;
}

.mock-cal-block-person {
  font-size: 0.55rem;
  color: var(--block-color);
  font-weight: 500;
}

/* ===== Screen 3: Quests ===== */
.mock-quests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mock-quests-add {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #3B82F6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.mock-quests-tabs {
  display: flex;
  gap: 2px;
  background: #2C2C2E;
  border-radius: 8px;
  padding: 2px;
  margin-bottom: 10px;
}

.mock-qt {
  flex: 1;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: #9CA3AF;
  padding: 5px 6px;
  border-radius: 6px;
}

.mock-qt.active-qt {
  background: #3B82F6;
  color: white;
}

.mock-quests-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mock-qf {
  font-size: 0.55rem;
  font-weight: 600;
  color: #636366;
  padding: 4px 12px;
  border-radius: 14px;
  background: #2C2C2E;
}

.mock-qf.active-qf {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.mock-quests-section-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.mock-quests-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FEFFFF;
}


.mock-quests-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-quest-card {
  background: #1C1C1E;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-qc-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-qc-category {
  font-size: 0.5rem;
  color: var(--cat-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-qc-name {
  font-size: 0.78rem;
  color: #FEFFFF;
  font-weight: 600;
}

.mock-qc-meta {
  font-size: 0.55rem;
  color: #9CA3AF;
}

.mock-qc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.mock-qc-points {
  font-size: 0.6rem;
  color: #F59E0B;
  font-weight: 700;
}

.mock-qc-status {
  font-size: 0.5rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
}

.mock-qc-status.accepted {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

.mock-qc-status.posted {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
}

.mock-qc-status.completed {
  background: rgba(156, 163, 175, 0.15);
  color: #9CA3AF;
}

/* ===== Screen 4: Prize Store ===== */
.mock-store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mock-store-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FEFFFF;
}

.mock-store-balance-card {
  background: #1C1C1E;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mock-store-star {
  font-size: 1.6rem;
  color: #F59E0B;
}

.mock-store-bal-col {
  display: flex;
  flex-direction: column;
}

.mock-store-bal-label {
  font-size: 0.5rem;
  color: #9CA3AF;
}

.mock-store-bal-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FEFFFF;
}

.mock-store-stats {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-store-stat {
  flex: 1;
  background: #1C1C1E;
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mock-stat-val {
  font-size: 0.7rem;
  font-weight: 700;
}
.mock-stat-val.earned { color: #4ADE80; }
.mock-stat-val.spent { color: #F87171; }
.mock-stat-val.prizes { color: #3B82F6; }

.mock-stat-label {
  font-size: 0.45rem;
  color: #9CA3AF;
}

.mock-store-section-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.mock-store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.mock-prize {
  background: #1C1C1E;
  border-radius: 10px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.mock-prize-emoji {
  font-size: 1.3rem;
}

.mock-prize-name {
  font-size: 0.55rem;
  color: #FEFFFF;
  font-weight: 600;
}

.mock-prize-cost {
  font-size: 0.5rem;
  color: #F59E0B;
  font-weight: 600;
}

/* ===== Features ===== */
.features {
  padding: 120px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--bg);
  color: var(--fg);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 120px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0.3;
}

.step {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.925rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ===== CTA ===== */
.cta {
  padding: 120px 24px;
  text-align: center;
}

.cta-content {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0B0B0B, #1C1C1E);
  border-radius: 32px;
  padding: 80px 48px;
  color: white;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 1.125rem;
  color: #9CA3AF;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.app-store-badge {
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

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

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

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

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

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

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

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

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

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

  .phone-mockup {
    width: 260px;
    height: 540px;
  }

  .cta-content {
    padding: 48px 24px;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

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

  .nav-links a:not(.btn) {
    display: none;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: #d1d5db;
  padding: 16px 24px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  font-size: 0.9rem;
}
.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-consent p {
  margin: 0;
  flex: 1;
}
.cookie-consent a {
  color: var(--primary-light);
  text-decoration: underline;
}
.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.cookie-btn-decline {
  background: transparent;
  color: #d1d5db;
  border: 1px solid #555;
}
.cookie-btn-decline:hover {
  border-color: #999;
}
.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: var(--primary-dark);
}
@media (max-width: 600px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }
}
