/* ==========================================================================
   LedgerTin (ledgertin.in) - Modern Design System
   Aesthetic: Deep Tech Luxury with Emerald & Indigo Ambient Glow
   ========================================================================== */

:root {
  --bg-dark: #070a12;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 35, 56, 0.85);
  
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  
  --indigo-500: #6366f1;
  --indigo-400: #818cf8;
  --indigo-glow: rgba(99, 102, 241, 0.22);
  
  --cyan-400: #22d3ee;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.35);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px -10px var(--emerald-glow);
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Ambient Background Glow
   -------------------------------------------------------------------------- */
.glow-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-emerald {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: -150px;
  left: -100px;
}

.orb-indigo {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 35%;
  right: -150px;
  animation-duration: 25s;
}

.orb-cyan {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: 5%;
  left: 15%;
  animation-duration: 18s;
}

.grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(40px) scale(1.08); }
  100% { transform: translateY(-30px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   Utilities & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

.text-center { text-align: center; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--emerald-400);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

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

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px -2px var(--emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px 0px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-hero {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-text-block .primary-text {
  font-weight: 700;
  line-height: 1.2;
}

.btn-text-block .sub-text {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: sticky;
  top: 1rem;
  z-index: 100;
  padding: 0 1.5rem;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
}

.logo-symbol {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 10px var(--emerald-glow);
}

.logo-symbol.mini {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text .highlight {
  color: var(--emerald-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-links a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
}

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

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-400);
  margin-bottom: 2rem;
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 20px -5px var(--emerald-glow);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.check-icon {
  color: var(--emerald-400);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Live Simulator Section
   -------------------------------------------------------------------------- */
.simulator-section {
  padding: 5rem 0;
}

.simulator-card {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.sim-picker {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.picker-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--emerald-400);
}

.picker-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.product-tap-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.product-tap-card:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--emerald-500);
  transform: translateY(-2px);
}

.p-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.p-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.p-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.p-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--emerald-400);
  font-size: 1.05rem;
}

.p-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Thermal Paper Box */
.sim-receipt-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.receipt-paper {
  background: #fdfdfd;
  color: #111827;
  font-family: 'Courier New', Courier, monospace;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  line-height: 1.4;
  border-top: 6px solid #10b981;
}

.receipt-store {
  font-weight: 900;
  font-size: 1.05rem;
  text-align: center;
}

.receipt-sub {
  font-size: 0.72rem;
  text-align: center;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.receipt-divider {
  text-align: center;
  letter-spacing: 1px;
  color: #9ca3af;
  margin: 0.35rem 0;
  user-select: none;
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  margin: 0.25rem 0;
}

.receipt-totals .r-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin: 0.2rem 0;
}

.receipt-totals .r-grand {
  font-size: 1.05rem;
  font-weight: 900;
  color: #047857;
  margin-top: 0.35rem;
}

.receipt-qr-sample {
  text-align: center;
  margin-top: 0.5rem;
}

.mini-qr-box {
  display: inline-block;
  background: #e5e7eb;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.mini-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
}

/* WhatsApp Button in Simulator */
.btn-wa-send {
  background: #25d366;
  color: #ffffff;
  padding: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn-wa-send:hover {
  transform: scale(1.02);
  background: #20bd5a;
}

.sim-wa-toast {
  padding: 0.75rem 1rem;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25d366;
  border-radius: var(--radius-sm);
  color: #34d399;
  font-size: 0.85rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

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

/* --------------------------------------------------------------------------
   Plain-English Features Grid
   -------------------------------------------------------------------------- */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.feature-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.feature-icon.green   { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.feature-icon.amber   { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.feature-icon.indigo  { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.feature-icon.cyan    { background: rgba(6, 182, 212, 0.15);  color: #22d3ee; }
.feature-icon.purple  { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-simple {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-simple strong {
  color: #ffffff;
}

.feature-perk {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.perk-badge {
  font-weight: 700;
  color: var(--emerald-400);
}

/* --------------------------------------------------------------------------
   Comparison Table
   -------------------------------------------------------------------------- */
.comparison-section {
  padding: 6rem 0;
}

.table-wrapper {
  margin-top: 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  padding: 1.4rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table th.new-col {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-400);
}

.comparison-table td {
  padding: 1.3rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
}

.comparison-table td.feature-name {
  font-weight: 600;
  color: #fff;
  width: 25%;
}

.comparison-table td.old-item {
  color: #94a3b8;
  width: 37%;
}

.comparison-table td.new-item {
  background: rgba(16, 185, 129, 0.04);
  color: #ecfdf5;
  width: 38%;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 6rem 0;
}

.faq-container {
  max-width: 800px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.8rem;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--emerald-400);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.8rem 1.4rem 1.8rem;
}

/* --------------------------------------------------------------------------
   CTA Download Box
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 4rem 0 6rem;
}

.cta-banner {
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-glow);
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, rgba(18, 24, 38, 0.8) 70%);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-action-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn-large {
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
}

.cta-specs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-left: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .sim-columns { grid-template-columns: 1fr; }
  .comparison-table th, .comparison-table td { padding: 1rem; font-size: 0.85rem; }
  .nav-links { display: none; }
  .footer-container { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn-hero { width: 100%; }
  .cta-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-specs { flex-direction: column; gap: 0.35rem; }
}
