/**
 * styles.css
 * Base styles, variables, layout, typography, hero, nav, utility classes
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;

  --orange-400: #fb923c;
  --orange-500: #f59e0b;

  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --black: #0a0a0a;

  --hero-bg: #0d1117;
  --hero-card: rgba(255,255,255,0.05);
  --hero-border: rgba(255,255,255,0.1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.16);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

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

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(59,130,246,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-300);
  border: 1.5px solid rgba(255,255,255,0.15);
}

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

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-300);
}

.btn-outline:hover {
  background: var(--blue-50);
}

.btn-white {
  background: var(--white);
  color: var(--blue-600);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

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

.section-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-header h2 {
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.logo-icon.sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.nav-logo-img {
  height: 168px;
  width: auto;
  max-width: 700px;
  display: block;
  object-fit: contain;
}

/* Larger logo for the footer brand statement */
.footer-brand .nav-logo-img {
  height: 176px;
  max-width: 686px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-cta { margin-left: 8px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  background: rgba(13,17,23,0.98);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile a {
  display: block;
  color: var(--gray-300);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition);
}

.nav-mobile a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-mobile .btn { margin-top: 8px; text-align: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--hero-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
  top: -200px;
  left: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
  bottom: -100px;
  right: 100px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--blue-400);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-headline {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-sub {
  color: var(--gray-400);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Google Play badge */
.play-badge {
  display: inline-block;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
  line-height: 0;
}

.play-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.play-badge img {
  height: 56px;
  width: auto;
  display: block;
}

.hero-note {
  color: var(--gray-600);
  font-size: 0.82rem;
}

/* ============================================
   APP MOCKUP
   ============================================ */
.app-mockup {
  background: #1a1f2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* Hero screenshot on the homepage */
.hero-image {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  height: auto;
}

.mockup-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c941; }

.mockup-content { padding: 20px; }

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mockup-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.mockup-prompt {
  color: var(--gray-400);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.mockup-input-area {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.mockup-input {
  color: var(--gray-300);
  font-size: 0.82rem;
  line-height: 1.5;
}

.mockup-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.slider-label {
  color: var(--gray-500);
  font-size: 0.75rem;
  white-space: nowrap;
}

.mockup-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.slider-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.slider-fill {
  height: 100%;
  background: var(--orange-500);
  border-radius: 2px;
}

.slider-val {
  color: var(--orange-500);
  font-size: 0.8rem;
  font-weight: 600;
}

.mockup-tasks { display: flex; flex-direction: column; gap: 8px; }

.mockup-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: all var(--transition);
}

.mockup-task.done { opacity: 0.45; }
.mockup-task.active { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.06); }

.task-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-check.checked {
  background: var(--green-500);
  border-color: var(--green-500);
}

.task-check.checked::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}

.task-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.task-title {
  color: var(--gray-200);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.task-time {
  color: var(--gray-600);
  font-size: 0.7rem;
}

/* ============================================
   PROOF STRIP
   ============================================ */
.proof-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 28px 0;
}

.proof-strip .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.proof-label {
  color: var(--gray-400);
  font-size: 0.82rem;
  font-weight: 500;
}

.proof-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.proof-tag {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.9rem;
}

.proof-divider {
  color: var(--gray-300);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { background: var(--white); }

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

.step {
  text-align: center;
  padding: 40px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  position: relative;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-400);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.step h3 {
  color: var(--gray-900);
  margin-bottom: 12px;
}

.step p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE — Mobile & Tablet
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content { order: 1; }
  .hero-visual { order: 2; }

  .hero-sub, .hero-actions { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badge { display: inline-flex; }

  .app-mockup,
  .hero-image { max-width: 360px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 100px 0 64px; }
  .hero-sub { font-size: 1rem; }

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

  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
