/* ==========================================================================
   NanoKhata - Ultra-Lightweight Modern Homepage Stylesheet
   Theme: Trustworthy White Fintech with Primary Teal (#368098) & Gold (#f59e0b)
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, sans-serif;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Primary Brand Palette (#368098 - matches brand logo) */
  --primary: #368098;
  --primary-color: #368098;
  --primary-900: #0c2630;
  --primary-800: #163f4e;
  --primary-700: #286579;
  --primary-600: #368098;
  --primary-500: #479db8;
  --primary-400: #67b9d2;
  --primary-100: #eaf3f6;
  --primary-50: #f0f8fa;

  /* Backward-compatible emerald aliases mapped to #368098 palette */
  --emerald-900: var(--primary-900);
  --emerald-800: var(--primary-800);
  --emerald-700: var(--primary-700);
  --emerald-600: var(--primary-600);
  --emerald-500: var(--primary-500);
  --emerald-400: var(--primary-400);
  --emerald-100: var(--primary-100);
  --emerald-50: var(--primary-50);

  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-300: #fde047;
  --gold-100: #fffbeb;

  --border-light: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.8);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1);
  --shadow-primary: 0 10px 30px -5px rgba(54, 128, 152, 0.35);
  --shadow-emerald: var(--shadow-primary);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Ambient Glows */
.bg-ambient-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(54, 128, 152, 0.10) 0%, rgba(245, 158, 11, 0.04) 40%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION BAR (Logo on Left)
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  background: transparent;
  border: none;
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-avatar-home {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon-home {
  width: auto;
  height: 55px;
  object-fit: contain;
  display: block;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
}

.brand-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #0f172a;
}

.brand-title .text-green {
  color: var(--primary-600);
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 24px;
    padding-bottom: 8px;
  }
  .nav-row {
    min-height: 90px;
    gap: 6px;
  }
  .brand-link {
    gap: 6px;
    flex-shrink: 0;
  }
  .brand-icon-home {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
  }
  .brand-title {
    font-size: 1.42rem;
    letter-spacing: -0.035em;
    white-space: nowrap;
  }
  .btn-open-app-nav {
    padding: 7px 11px;
    font-size: 0.8rem;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .btn-open-app-nav svg {
    width: 13px;
    height: 13px;
  }
}

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

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

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

.btn-open-app-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--primary-600);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(54, 128, 152, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-open-app-nav:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(54, 128, 152, 0.4);
}

.btn-open-app-nav svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-open-app-nav:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 40px 0 60px 0;
  overflow: hidden;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 60px 0 80px 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 56px;
  }
}

/* HERO LEFT CONTENT */
.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-headline {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 0;
  min-height: 2.5em;
  position: relative;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 2.75rem;
  }
}

@media (min-width: 992px) {
  .hero-headline {
    font-size: 3.15rem;
  }
}

.hero-headline .highlight-green {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated Replaceable Headline Workflow Frame (Rock-solid, zero height flicker) */
.animated-headline-frame {
  display: grid;
  grid-template-areas: "headlineStack";
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.headline-slide {
  grid-area: headlineStack;
  margin: 0;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.headline-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.headline-slide.exit {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -14px, 0);
  pointer-events: none;
}

/* MINIMAL UNDERLINE START FORM (No border on +977, underline on input only, signup button) */
.minimal-start-form {
  margin-top: 36px;
  max-width: 480px;
  width: 100%;
}

.underline-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.dim-prefix {
  color: #94a3b8;
  font-size: 1.15rem;
  font-weight: 600;
  user-select: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 6px 0;
}

.underline-phone-input {
  flex: 1;
  border: none;
  border-bottom: 2px solid #cbd5e1;
  border-radius: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 2px;
  min-width: 0;
  transition: border-bottom-color 0.2s ease;
}

.underline-phone-input:focus {
  border-bottom-color: var(--primary-600);
}

.underline-phone-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.btn-minimal-signup {
  background: var(--primary-600);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(54, 128, 152, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-minimal-signup:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(54, 128, 152, 0.35);
}

.btn-minimal-signup:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .underline-input-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .underline-phone-input {
    min-width: 140px;
  }
  .btn-minimal-signup {
    width: 100%;
    padding: 12px 20px;
  }
}

/* Micro Trust Indicators */
.start-trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-700);
}

.trust-item svg {
  width: 13px;
  height: 13px;
  color: var(--primary-600);
}

.existing-user-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: auto;
  transition: color 0.15s ease;
}

.existing-user-link:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

/* Live Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 16px;
}

.stat-col {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-light);
}

/* ==========================================================================
   HERO RIGHT: NANO PARTICLES IN KHATA ANIMATION
   ========================================================================== */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 480px;
}

@media (min-width: 992px) {
  .hero-right {
    min-height: 540px;
  }
}

.animation-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* Ambient Radial Glow behind the Khata */
.stage-ambient-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 128, 152, 0.28) 0%, rgba(245, 158, 11, 0.15) 45%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: breatheGlow 6s ease-in-out infinite alternate;
}

@keyframes breatheGlow {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Canvas for dynamic interactive floating nano particles */
.nano-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* 3D Container for Khata and Orbitals */
.khata-3d-scene {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: floatKhata 6s ease-in-out infinite;
}

@keyframes floatKhata {
  0%, 100% {
    transform: translateY(0px) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: translateY(-14px) rotateX(-2deg) rotateY(2deg);
  }
}

/* ORBITAL RINGS AROUND KHATA */
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(103, 185, 210, 0.45);
  pointer-events: none;
}

.ring-1 {
  width: 370px;
  height: 140px;
  transform: rotate(-25deg);
  animation: spinRing1 18s linear infinite;
}

.ring-2 {
  width: 420px;
  height: 160px;
  border-color: rgba(251, 191, 36, 0.4);
  transform: rotate(35deg);
  animation: spinRing2 24s linear infinite reverse;
}

.ring-3 {
  width: 320px;
  height: 110px;
  border-color: rgba(179, 215, 226, 0.5);
  transform: rotate(80deg);
  animation: spinRing1 14s linear infinite;
}

@keyframes spinRing1 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinRing2 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* Orbiting Nano Particle Beads */
.orbit-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 12px 2px currentColor;
  transform: translate(-50%, -50%);
}

.node-gold {
  background: #fde047;
  color: #f59e0b;
}

.node-green {
  background: #67b9d2;
  color: #368098;
}

.node-white {
  background: #ffffff;
  color: #b3d7e2;
}

/* THE OPEN KHATA BOOK ARTWORK */
.khata-book-wrap {
  position: relative;
  width: 320px;
  height: 250px;
  z-index: 3;
  filter: drop-shadow(0 20px 24px rgba(12, 38, 48, 0.35));
}

.khata-book-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* SVG NANO PARTICLES ANIMATION */
.svg-nano-particles {
  animation: nanoPulseGlow 3s ease-in-out infinite alternate;
}

@keyframes nanoPulseGlow {
  0% {
    filter: drop-shadow(0 0 3px rgba(254, 240, 138, 0.4));
    opacity: 0.85;
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(254, 240, 138, 0.95)) drop-shadow(0 0 16px rgba(54, 128, 152, 0.6));
    opacity: 1;
  }
}

/* RISING NANO SPARKS FROM KHATA SPINE */
.spine-sparks-emitter {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 80px;
  pointer-events: none;
  z-index: 4;
}

.nano-spark {
  position: absolute;
  border-radius: 50%;
  animation: sparkRise 3.2s ease-out infinite;
  opacity: 0;
}

.spark-1 {
  width: 6px;
  height: 6px;
  background: #fde047;
  box-shadow: 0 0 8px #f59e0b;
  left: 20%;
  animation-delay: 0s;
}

.spark-2 {
  width: 8px;
  height: 8px;
  background: #67b9d2;
  box-shadow: 0 0 10px #368098;
  left: 60%;
  animation-delay: 0.8s;
}

.spark-3 {
  width: 5px;
  height: 5px;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  left: 45%;
  animation-delay: 1.6s;
}

.spark-4 {
  width: 7px;
  height: 7px;
  background: #fbbf24;
  box-shadow: 0 0 8px #f59e0b;
  left: 80%;
  animation-delay: 2.3s;
}

@keyframes sparkRise {
  0% {
    transform: translateY(20px) scale(0.4);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-90px) scale(1.4);
    opacity: 0;
  }
}

/* FLOATING LIVE METRIC CHIPS */
.floating-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

.chip-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chip-green .chip-icon-box {
  background: var(--primary-100);
  color: var(--primary-600);
}

.chip-purple .chip-icon-box {
  background: #f3e8ff;
  color: #7e22ce;
}

.chip-gold .chip-icon-box {
  background: #fffbeb;
  color: #d97706;
}

.chip-text {
  display: flex;
  flex-direction: column;
}

.chip-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.chip-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Positions & Parallax Float Keyframes */
.chip-top-left {
  top: 8%;
  left: -10px;
  animation: chipFloat1 4.5s ease-in-out infinite;
}

.chip-top-right {
  top: 14%;
  right: -15px;
  animation: chipFloat2 5s ease-in-out infinite;
}

.chip-bottom-left {
  bottom: 8%;
  left: 0px;
  animation: chipFloat2 5.5s ease-in-out infinite 0.5s;
}

.chip-bottom-right {
  bottom: 12%;
  right: -10px;
  animation: chipFloat1 4.8s ease-in-out infinite 1s;
}

@keyframes chipFloat1 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes chipFloat2 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@media (max-width: 480px) {
  .animation-stage {
    max-width: 320px;
  }
  .khata-3d-scene {
    width: 280px;
    height: 280px;
  }
  .khata-book-wrap {
    width: 260px;
    height: 200px;
  }
  .ring-1 { width: 280px; height: 110px; }
  .ring-2 { width: 310px; height: 120px; }
  .chip-top-left { left: -15px; top: 2%; }
  .chip-top-right { right: -15px; top: 10%; }
  .chip-bottom-left { left: -10px; bottom: 2%; }
  .chip-bottom-right { right: -15px; bottom: 5%; }
  .floating-chip { padding: 6px 10px; gap: 6px; }
  .chip-val { font-size: 0.78rem; }
  .chip-sub { font-size: 0.62rem; }
}

/* ==========================================================================
   TRUST PILLARS / HIGHLIGHTS BAR
   ========================================================================== */
.pillars-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  margin-top: 10px;
}

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

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.pillar-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   CORE FEATURES SECTION
   ========================================================================== */
.section-features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.feature-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-green { background: var(--primary-100); color: var(--primary-600); }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-amber { background: #fffbeb; color: var(--gold-500); }
.icon-blue { background: #eff6ff; color: #2563eb; }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.feature-pill-tag {
  margin-top: 18px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

/* ==========================================================================
   COMPARISON: OLD PAPER KHATA VS NANOKHATA
   ========================================================================== */
.section-comparison {
  padding: 72px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.compare-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .compare-box {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1.5px solid var(--border-light);
}

.compare-old {
  background: #f8fafc;
}

.compare-nano {
  background: linear-gradient(180deg, var(--primary-50) 0%, #ffffff 100%);
  border-color: var(--primary-400);
  box-shadow: 0 10px 30px -5px rgba(54, 128, 152, 0.15);
  position: relative;
}

.badge-recommended {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary-600);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.compare-card h4 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.compare-old h4 { color: #64748b; }
.compare-nano h4 { color: var(--primary-800); }

.compare-card .compare-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.compare-old li { color: #64748b; }
.compare-nano li { color: var(--text-main); font-weight: 600; }

.compare-list .icon-cross {
  color: #ef4444;
  font-weight: 800;
  flex-shrink: 0;
}

.compare-list .icon-check {
  color: var(--primary-600);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   HOW IT WORKS IN 3 SECONDS
   ========================================================================== */
.section-steps {
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.step-num-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  box-shadow: 0 4px 12px rgba(54, 128, 152, 0.3);
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   BOTTOM CONVERSION CTA BANNER
   ========================================================================== */
.section-bottom-cta {
  padding: 60px 0 80px 0;
}

.cta-banner-card {
  background: radial-gradient(circle at 10% 20%, #163f4e 0%, #0c2630 100%);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px -10px rgba(12, 38, 48, 0.5);
}

.cta-banner-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 185, 210, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.cta-banner-card h2 {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .cta-banner-card h2 {
    font-size: 2.6rem;
  }
}

.cta-banner-card p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 520px) {
  .cta-actions {
    flex-direction: row;
  }
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #ffffff;
  color: var(--primary-800);
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  width: 100%;
}

@media (min-width: 520px) {
  .btn-cta-primary {
    width: auto;
  }
}

.btn-cta-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
  width: 100%;
}

@media (min-width: 520px) {
  .btn-cta-secondary {
    width: auto;
  }
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   FOOTER (Centered Copy with Year & Nepal Flag)
   ========================================================================== */
.site-footer {
  background: transparent;
  border: none;
  border-top: none;
  padding: 24px 0;
  margin-top: auto;
  text-align: center;
}

.footer-center {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.footer-center .flag {
  font-size: 1.15rem;
  line-height: 1;
}

/* ==========================================================================
   AUTH & ONBOARDING MODAL STYLES (ONLINE ONLY)
   ========================================================================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.auth-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.auth-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-icon-badge {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.auth-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.auth-modal-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

.auth-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: center;
}

.auth-otp-input-wrap {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.auth-otp-input {
  width: 100%;
  max-width: 240px;
  height: 52px;
  letter-spacing: 0.5em;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.15s ease;
}

.auth-otp-input:focus {
  border-color: #368098;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(54, 128, 152, 0.15);
}

.btn-auth-primary {
  width: 100%;
  height: 48px;
  background: #368098;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(54, 128, 152, 0.25);
}

.btn-auth-primary:hover {
  background: #286579;
}

.btn-auth-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-resend-row {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.btn-link-resend {
  background: none;
  border: none;
  color: #368098;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
  text-decoration: underline;
}

.auth-form-field {
  margin-bottom: 14px;
  text-align: left;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.auth-text-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 0.95rem;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.15s ease;
}

.auth-text-input:focus {
  border-color: #368098;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(54, 128, 152, 0.12);
}

.auth-step-pill {
  display: inline-block;
  padding: 4px 12px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.auth-lang-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.auth-lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.15s ease;
  user-select: none;
}

.auth-lang-option:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.auth-lang-option.active {
  background: #f0fdfa;
  border-color: #368098;
  color: #368098;
  box-shadow: 0 0 0 3px rgba(54, 128, 152, 0.15);
}

.auth-phone-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  transition: all 0.15s ease;
}

.auth-phone-input-group:focus-within {
  border-color: #368098;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(54, 128, 152, 0.15);
}

.auth-phone-prefix {
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-right: 1.5px solid #cbd5e1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.auth-phone-input-field {
  flex: 1;
  height: 48px;
  border: none;
  background: transparent;
  padding: 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.05em;
  outline: none;
}

.btn-link-edit-phone {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.82rem;
  color: #368098;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.btn-link-edit-phone:hover {
  color: #286579;
}

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

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

