/* Kartov Landing Page */
:root {
  --primary: #30D5C8;
  --primary-dark: #28B5A9;
  --accent: #FF7F50;
  --accent-dark: #E6694A;
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0A;
    --surface: #161616;
    --text: #F0F0F0;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border: #2A2A2A;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* =============== NAV =============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

@media (prefers-color-scheme: dark) {
  .nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
  }
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-wordmark { font-size: 22px; font-weight: 800; color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-ghost {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-full { width: 100%; justify-content: center; padding: 14px 22px; font-size: 15px; }

/* =============== HERO =============== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-overline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge small { font-size: 10px; color: var(--text-muted); display: block; line-height: 1; }
.store-badge strong { font-size: 15px; display: block; line-height: 1.2; }
.store-badge svg { flex-shrink: 0; }

.store-badge-dark {
  background: #fff;
  color: #1A1A1A;
  border-color: rgba(255,255,255,0.2);
}
.store-badge-dark small { color: #666; }

.hero-web-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-web-link:hover { color: var(--primary); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
}
.hero-blob-1 { width: 400px; height: 400px; background: var(--primary); top: -50px; right: -50px; }
.hero-blob-2 { width: 300px; height: 300px; background: var(--accent); bottom: -30px; left: -30px; }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-muted);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============== PHONE FRAME =============== */
.phone-frame {
  width: 280px;
  border-radius: 40px;
  border: 6px solid #1A1A1A;
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.1);
  background: #000;
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .phone-frame { border-color: #333; }
}

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

.phone-screen {
  width: 100%;
  display: block;
  border-radius: 34px;
}

.phone-sm { width: 220px; }
.phone-sm .phone-screen { border-radius: 28px; }
.phone-sm::before { width: 66px; height: 19px; top: 8px; border-radius: 14px; }

/* =============== SOCIAL PROOF =============== */
.proof {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.proof-pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.proof-divider { color: var(--text-muted); }

/* =============== FEATURES TABS =============== */
.features {
  padding: 100px 24px;
}

.features-inner { max-width: 1200px; margin: 0 auto; }

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

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
}

.features-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.features-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 100px;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
}

.feature-tab:hover { background: var(--border); }

.feature-tab.active {
  background: var(--primary);
  color: #fff;
}

.tab-icon { font-size: 20px; }
.tab-label { font-size: 15px; font-weight: 600; }

.features-panels { position: relative; }

.feature-panel {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.feature-panel.active { display: grid; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-text h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.panel-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-pills span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(48, 213, 200, 0.1);
  color: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
  .panel-pills span { background: rgba(48, 213, 200, 0.15); color: var(--primary); }
}

/* =============== FEATURE GRID =============== */
.grid-section {
  padding: 80px 24px;
  background: var(--surface);
}

.grid-inner { max-width: 1100px; margin: 0 auto; }
.grid-inner .section-title { text-align: center; margin-bottom: 48px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.grid-icon { font-size: 28px; margin-bottom: 12px; }

.grid-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.grid-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =============== PRICING =============== */
.pricing {
  padding: 100px 24px;
}

.pricing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.pricing-inner .section-title { margin-bottom: 8px; }
.pricing-inner .section-sub { margin-bottom: 48px; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.price-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  position: relative;
}

.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }

.price-amount {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-toggle { margin-bottom: 24px; }

.price-annual {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.price-annual span {
  font-weight: 600;
  color: var(--text);
}

.price-annual em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 28px;
}

.price-card li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.price-card li::before {
  content: '✓  ';
  color: var(--primary);
  font-weight: 700;
}

.price-card-pro {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.price-card-family {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.family-badge {
  background: var(--accent);
}

.pro-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* =============== SCREENSHOTS STRIP =============== */
.strip-section {
  padding: 60px 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(48,213,200,0.04) 0%, rgba(255,127,80,0.04) 100%);
}

.strip-track {
  display: flex;
  gap: 24px;
  animation: scrollStrip 40s linear infinite;
  width: max-content;
}

.strip-track:hover { animation-play-state: paused; }

.strip-item { flex-shrink: 0; }

@keyframes scrollStrip {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

/* =============== DOWNLOAD CTA =============== */
.cta-section {
  padding: 100px 24px;
  background: #1A1A1A;
  color: #fff;
  text-align: center;
}

.cta-inner { max-width: 600px; margin: 0 auto; }

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta-inner > p {
  font-size: 17px;
  color: #9CA3AF;
  margin-bottom: 32px;
}

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

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: #6B7280;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-icon { width: 36px; height: 36px; border-radius: 8px; }
.footer-wordmark { font-size: 18px; font-weight: 800; color: var(--primary); }
.footer-tagline { font-size: 13px; color: var(--text-muted); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-contact p {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-contact a { color: var(--primary); text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============== SCROLL ANIMATIONS =============== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-cards { grid-template-columns: 1fr 1fr; }
  .pricing-cards .price-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 24px;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-web-link { display: block; text-align: center; }

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

  .features-tabs {
    flex-direction: row;
    overflow-x: auto;
    position: static;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .feature-tab { white-space: nowrap; }

  .feature-panel.active {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .panel-phone { order: -1; }
  .panel-phone .phone-frame { margin: 0 auto; }
  .panel-pills { justify-content: center; }

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

  .pricing-cards { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }

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

  .phone-frame { width: 240px; }
  .phone-sm { width: 180px; }

  .nav-inner { padding: 0 16px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
  .nav-icon { width: 28px; height: 28px; }
  .nav-wordmark { font-size: 18px; }

  .section-title { font-size: 1.6rem; }
  .section-sub { font-size: 0.95rem; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }

  .pricing-cards { max-width: 100%; }
  .price-card { padding: 28px 20px; }
}
