/* ─── CSS Variables ─────────────────────────────── */
:root {
  --primary: #303F9F;
  --primary-dark: #1A237E;
  --primary-light: #9FA8DA;
  --accent: #43A047;
  --accent-dark: #2E7D32;
  --bg: #0D0E1A;
  --bg-card: #12142A;
  --bg-surface: #181A35;
  --text: #F0F1FF;
  --text-muted: #9FA8DA;
  --border: rgba(159, 168, 218, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

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

ul {
  list-style: none;
}

/* ─── Utility ────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

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

.text-primary-light {
  color: var(--primary-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

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

.btn-outline:hover {
  border-color: var(--primary-light);
  background: rgba(48, 63, 159, 0.12);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-google {
  background: transparent;
  border: none;
  padding: 0;
  line-height: 0;
  transition: var(--transition);
}

.btn-google:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-google img {
  height: 52px;
  width: auto;
  display: block;
}

/* ─── Nav ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 14, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}

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

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

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-logo .logo-text {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
}

.nav-logo .logo-text span {
  color: var(--primary-light);
}

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

.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(48, 63, 159, 0.2);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hamburger:hover {
  border-color: var(--primary-light);
  background: rgba(48, 63, 159, 0.18);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ───────────────────────────────────────── */
#home {
  padding-top: 64px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 60% 40%, rgba(48, 63, 159, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(67, 160, 71, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 0 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(48, 63, 159, 0.2);
  border: 1px solid rgba(48, 63, 159, 0.4);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-light);
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}

.stat-item {}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.phone-mockup {
  width: 260px;
  height: 520px;
  background: var(--bg-card);
  border-radius: 36px;
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.phone-inner {
  padding: 20px 16px;
}

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

.phone-header .ph-logo {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  font-family: var(--font-mono);
}

.phone-header .ph-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent);
}

.phone-header .ph-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

.receipt-card {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 10px;
}

.receipt-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.receipt-total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.receipt-total span:last-child {
  color: var(--accent);
}

.ph-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
}

.phone-ring {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(48, 63, 159, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.phone-ring-2 {
  width: 500px;
  height: 500px;
  border-color: rgba(48, 63, 159, 0.1);
  animation-delay: 1s;
}

/* ─── Features ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

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

.feature-card:hover {
  border-color: rgba(48, 63, 159, 0.5);
  background: var(--bg-surface);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(48, 63, 159, 0.15);
  border: 1px solid rgba(48, 63, 159, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Section Headings ───────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(48, 63, 159, 0.15);
  border: 1px solid rgba(48, 63, 159, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ─── Pricing ────────────────────────────────────── */
#pricing {
  background: var(--bg-surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary);
  border-width: 2px;
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.08), var(--bg-card));
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-price .amount {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-price .period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-feature .check {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature .cross {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature span {
  color: var(--text-muted);
}

.pricing-feature.included span {
  color: var(--text);
}

/* ─── About ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-label {
  margin-bottom: 14px;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
  line-height: 1.25;
}

.about-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.about-value {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.about-value .icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.about-value h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-value p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.about-stat .num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.about-stat .lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-stat.accent-card {
  background: rgba(48, 63, 159, 0.12);
  border-color: rgba(48, 63, 159, 0.35);
}

.about-stat.accent-card .num {
  color: var(--accent);
}

/* ─── Download CTA ───────────────────────────────── */
.download-section {
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.25) 0%, rgba(26, 35, 126, 0.4) 100%);
  border-top: 1px solid rgba(48, 63, 159, 0.3);
  border-bottom: 1px solid rgba(48, 63, 159, 0.3);
}

.download-inner {
  text-align: center;
  padding: 80px 24px;
}

.download-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.download-inner p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

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

/* ─── Footer ─────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 12px 0 20px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

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

/* ─── Legal pages ────────────────────────────────── */
.legal-hero {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.legal-hero p {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-body {
  padding: 64px 0 96px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--primary-light);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 20px;
  list-style: disc;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ─── Anchor offset for fixed nav ───────────────── */
#faq,
#features,
#pricing,
#home {
  scroll-margin-top: 80px;
}

/* ─── Animations ─────────────────────────────────── */
@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

@keyframes ring-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.2
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

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

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

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

  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

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

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

  .about-visual {
    grid-template-columns: 1fr 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ─── Mobile Nav Drawer ──────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

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

.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-nav a:hover {
  background: var(--bg-surface);
  color: var(--text);
}