/* ============================================================
   PocketInvoice Landing Page — Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  color-scheme: light dark;
  --primary: #3B82F6;
  --primary-light: #60A5FA;
  --primary-dark: #2563EB;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-200: #BFDBFE;
  --primary-900: #1E3A8A;

  --bg: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --border: #E2E8F0;
  --card-bg: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --hero-gradient: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #E0E7FF 100%);
  --section-gradient: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1120;
    --bg-secondary: #111827;
    --bg-tertiary: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --border: #1E293B;
    --card-bg: #1E293B;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --card-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --hero-gradient: linear-gradient(135deg, #0B1120 0%, #111827 50%, #0F172A 100%);
    --section-gradient: linear-gradient(180deg, #111827 0%, #0B1120 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Base --- */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.section-label.blue {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.section-label.purple {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.section-label.green {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.section-label.orange {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.section-label.cyan {
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.section-label.pink {
  background: linear-gradient(135deg, #EC4899, #DB2777);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

@media (prefers-color-scheme: dark) {
  .navbar.scrolled {
    background: rgba(11, 17, 32, 0.85);
  }
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* --- Two-Tone Brand Name (Pocket = dark, Invoice = blue) --- */
.brand-pocket {
  color: var(--text-primary);
  font-weight: 800;
}

.brand-invoice {
  color: var(--primary);
  font-weight: 800;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

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

.nav-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.store-badge {
  display: inline-block;
  transition: var(--transition);
  border-radius: 12px;
}

.store-badge img {
  height: 60px;
  width: auto;
  display: block;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
  text-align: left;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero Phone */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.phone-mockup {
  position: relative;
  width: 300px;
}

.phone-frame {
  background: var(--text-primary);
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: float 6s ease-in-out infinite;
}

.phone-frame img {
  border-radius: 28px;
  width: 100%;
  display: block;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  background: var(--section-gradient);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.blue {
  background: #DBEAFE;
  color: #2563EB;
}

.feature-icon.green {
  background: #DCFCE7;
  color: #16A34A;
}

.feature-icon.orange {
  background: #FFEDD5;
  color: #EA580C;
}

.feature-icon.purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.feature-icon.cyan {
  background: #CFFAFE;
  color: #0891B2;
}

.feature-icon.pink {
  background: #FCE7F3;
  color: #DB2777;
}

@media (prefers-color-scheme: dark) {
  .feature-icon.blue {
    background: #1E3A5F;
    color: #60A5FA;
  }

  .feature-icon.green {
    background: #14332A;
    color: #4ADE80;
  }

  .feature-icon.orange {
    background: #3D2208;
    color: #FB923C;
  }

  .feature-icon.purple {
    background: #2E1A5E;
    color: #A78BFA;
  }

  .feature-icon.cyan {
    background: #0C3644;
    color: #22D3EE;
  }

  .feature-icon.pink {
    background: #3B1030;
    color: #F472B6;
  }
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   SHOWCASE SECTION (Alternating Image+Text)
   ============================================================ */
.showcase {
  background: var(--bg);
}

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.showcase-item:last-child {
  margin-bottom: 0;
}

.showcase-item.reverse {
  direction: rtl;
}

.showcase-item.reverse>* {
  direction: ltr;
}

.showcase-phone {
  display: flex;
  justify-content: center;
}

.showcase-phone .phone-frame {
  width: 260px;
  animation: none;
}

.showcase-phone .phone-frame:hover {
  transform: translateY(-8px);
  transition: var(--transition);
}

.showcase-content .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.showcase-features {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.showcase-features .check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: #16A34A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0;
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

/* ============================================================
   SCREENSHOTS CAROUSEL
   ============================================================ */
.screenshots {
  background: var(--bg-secondary);
  overflow: hidden;
}

.screenshots-header {
  text-align: center;
  margin-bottom: 56px;
}

.screenshots-header .section-subtitle {
  margin: 0 auto;
}

.screenshots-track {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
  justify-content: center;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: var(--transition);
}

.screenshot-item .phone-frame {
  width: 220px;
  animation: none;
  transition: var(--transition);
}

.screenshot-item:hover .phone-frame {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.screenshot-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.screenshot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  transition: var(--transition);
  cursor: pointer;
}

.screenshot-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

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

.how-header {
  text-align: center;
  margin-bottom: 64px;
}

.how-header .section-subtitle {
  margin: 0 auto;
}

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

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-200), var(--primary), var(--primary-200));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 24px;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

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

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.cta .section-title {
  color: #fff;
}

.cta .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 40px;
}

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



/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-tagline {
  margin-top: -10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64707e;
  max-width: 400px;
  line-height: 1.6;
}

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

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

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



.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-content {
    order: 0;
  }

  .hero-visual {
    order: 1;
    margin-top: 40px;
  }

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

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

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

  .phone-mockup {
    width: 240px;
  }

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

  .showcase-item {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .showcase-item.reverse {
    direction: ltr;
  }

  .showcase-content .section-subtitle {
    margin: 0 auto;
  }

  .showcase-features {
    align-items: center;
  }

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

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--card-shadow-lg);
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .store-badge img {
    height: 54px;
    margin: 0 auto;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .phone-mockup {
    width: 200px;
  }

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

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

  .showcase-item {
    gap: 32px;
    margin-bottom: 64px;
  }

  .showcase-phone .phone-frame {
    width: 220px;
  }

  .screenshot-item .phone-frame {
    width: 180px;
  }

  .screenshots-track {
    justify-content: flex-start;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}