/* ==========================================================================
   DREAMS SQUARE TALLY SOLUTIONS - ENTERPRISE DESIGN SYSTEM
   Modeled after TallySolutions.com & Modern Enterprise SaaS Standards
   ========================================================================== */

:root {
  /* Tally Official Brand Palette */
  --tally-blue: #006EA6;
  --tally-blue-dark: #004c73;
  --tally-blue-light: #0099cc;
  --tally-blue-gradient: linear-gradient(135deg, #006EA6 0%, #004c73 100%);
  --tally-navy: #0b1a30;
  --tally-navy-deep: #06101f;
  --tally-navy-card: #0e203c;
  
  --tally-yellow: #FCAF1E;
  --tally-yellow-hover: #e59a0b;
  --tally-yellow-light: #fff3d6;
  --tally-yellow-gradient: linear-gradient(135deg, #FCAF1E 0%, #f59e0b 100%);
  
  --tally-green: #10b981;
  --tally-green-light: #dcfce7;
  --tally-red: #ef4444;
  --tally-purple: #8b5cf6;

  /* Theme Defaults (Light corporate mode) */
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #f8fbfe;
  --bg-input: #f8fafc;
  --bg-hero: linear-gradient(135deg, #071224 0%, #003657 50%, #005a88 100%);
  --bg-highlight: rgba(0, 110, 166, 0.06);

  --text-main: #1e293b;
  --text-heading: #0b1a30;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #006EA6;
  --border-yellow: #FCAF1E;

  --shadow-xs: 0 1px 3px rgba(0, 51, 102, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 51, 102, 0.06);
  --shadow-md: 0 10px 25px rgba(0, 51, 102, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 51, 102, 0.12);
  --shadow-yellow: 0 8px 25px rgba(252, 175, 30, 0.35);
  --shadow-blue: 0 8px 25px rgba(0, 110, 166, 0.3);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: 'Fira Code', monospace;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

/* Dark Mode Palette */
[data-theme="dark"] {
  --bg-main: #070d18;
  --bg-surface: #0e1726;
  --bg-surface-elevated: #131f33;
  --bg-surface-glass: rgba(14, 23, 38, 0.94);
  --bg-card: #111d31;
  --bg-card-hover: #172742;
  --bg-input: #0a1220;
  --bg-hero: linear-gradient(135deg, #040912 0%, #002238 60%, #003657 100%);
  --bg-highlight: rgba(0, 153, 204, 0.1);

  --text-main: #e2e8f0;
  --text-heading: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #070d18;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-focus: #0099cc;
  --border-yellow: #FCAF1E;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.65);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: transparent;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

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

/* --------------------------------------------------------------------------
   Typography & Header Helpers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 55px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 110, 166, 0.1);
  border: 1px solid rgba(0, 110, 166, 0.25);
  color: var(--tally-blue);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

[data-theme="dark"] .section-tag {
  color: var(--tally-blue-light);
  background: rgba(0, 153, 204, 0.12);
  border-color: rgba(0, 153, 204, 0.3);
}

.section-tag.yellow-tag {
  background: var(--tally-yellow-light);
  border-color: rgba(252, 175, 30, 0.4);
  color: #92400e;
}

[data-theme="dark"] .section-tag.yellow-tag {
  background: rgba(252, 175, 30, 0.15);
  color: var(--tally-yellow);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

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

.yellow-highlight {
  background: var(--tally-yellow-gradient);
  color: #0b1a30;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  display: inline-block;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(252, 175, 30, 0.25);
}

.blue-highlight {
  color: var(--tally-blue-light);
}

.gradient-text-accent {
  background: linear-gradient(135deg, var(--tally-yellow) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Top Utility Bar (Tally Certified Partner Hotline & Portal)
   -------------------------------------------------------------------------- */
.top-utility-bar {
  background: var(--tally-navy-deep);
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 500;
}

.top-bar-link:hover, .top-bar-link.active {
  color: var(--tally-yellow);
}

.status-indicator-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tally-green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite;
}

@media (max-width: 850px) {
  .top-bar-left span:nth-child(3) { display: none; }
}

@media (max-width: 650px) {
  .top-utility-bar { display: none; }
}

/* --------------------------------------------------------------------------
   Main Navigation Bar (Glassmorphic & Sticky)
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tally-logo-badge {
  background: var(--tally-yellow);
  color: #0b1a30;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.02em;
  box-shadow: 0 2px 10px rgba(252, 175, 30, 0.35);
  display: inline-block;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.725rem;
  color: var(--tally-blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .brand-sub {
  color: var(--tally-blue-light);
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--tally-blue);
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: #38bdf8;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--tally-yellow);
  border-radius: var(--radius-full);
}

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

/* --------------------------------------------------------------------------
   Buttons System
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.btn-yellow {
  background: var(--tally-yellow-gradient);
  color: #0b1a30;
  box-shadow: var(--shadow-yellow);
  font-weight: 800;
}

.btn-yellow:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(252, 175, 30, 0.45);
}

.btn-blue {
  background: var(--tally-blue-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-blue:hover {
  background: var(--tally-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 110, 166, 0.4);
}

.btn-outline-blue {
  background: transparent;
  color: var(--tally-blue);
  border: 1.5px solid var(--tally-blue);
}

[data-theme="dark"] .btn-outline-blue {
  color: #38bdf8;
  border-color: #38bdf8;
}

.btn-outline-blue:hover {
  background: var(--tally-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-yellow {
  background: transparent;
  color: var(--tally-yellow);
  border: 1.5px solid var(--tally-yellow);
}

.btn-outline-yellow:hover {
  background: var(--tally-yellow);
  color: #0b1a30;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--tally-blue-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--tally-blue-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--tally-blue);
  color: var(--tally-blue);
  background: var(--bg-card-hover);
}

/* Mobile Nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-surface-elevated);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 70px 24px 30px;
  border-left: 1px solid var(--border-subtle);
  transition: right var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--tally-blue);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1050px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* --------------------------------------------------------------------------
   Hero Section (Tally Sapphire & Navy Corporate Gradient)
   -------------------------------------------------------------------------- */
.tally-hero {
  background: var(--bg-hero);
  color: #ffffff;
  padding: 95px 0 80px;
  position: relative;
  overflow: hidden;
}

.tally-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-main), transparent);
  pointer-events: none;
}

.tally-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge-tally {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(252, 175, 30, 0.15);
  border: 1px solid var(--tally-yellow);
  color: var(--tally-yellow);
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

.tally-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.tally-hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 620px;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-metric-item h4 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tally-yellow);
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-metric-item p {
  font-size: 0.825rem;
  color: #94a3b8;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Interactive TallyPrime Simulator (Hero Visual)
   -------------------------------------------------------------------------- */
.tally-window-preview {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  color: #0f172a;
}

.tally-window-topbar {
  background: #004c73;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sim-tab-bar {
  display: flex;
  background: #0b1a30;
  padding: 4px 6px 0;
  gap: 4px;
  overflow-x: auto;
}

.sim-tab {
  padding: 8px 14px;
  font-size: 0.775rem;
  font-weight: 700;
  color: #94a3b8;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sim-tab.active {
  background: #ffffff;
  color: #004c73;
}

.sim-tab:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tally-window-body {
  padding: 22px;
  background: #ffffff;
  min-height: 280px;
}

.sim-view {
  display: none;
}

.sim-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.invoice-preview-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #ffffff;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.invoice-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-blue { background: #e0f2fe; color: #075985; }

@media (max-width: 992px) {
  .tally-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   Partner Verification Credentials Bar
   -------------------------------------------------------------------------- */
.credentials-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.credentials-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

.credential-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0, 110, 166, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--tally-blue);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Product Cards Showcase
   -------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--tally-blue);
  box-shadow: var(--shadow-lg);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--tally-blue-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.product-badge-flag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--tally-yellow-light);
  color: #92400e;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.product-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(0, 110, 166, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--tally-blue);
  margin-bottom: 22px;
}

.product-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin-bottom: 12px;
}

.product-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.product-card-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 0.8875rem;
  color: var(--text-muted);
}

.product-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.product-card-features svg {
  color: var(--tally-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Feature Capabilities Grid
   -------------------------------------------------------------------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 28px;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.capability-card:hover {
  border-color: var(--tally-yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.capability-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.capability-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.capability-title {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-heading);
}

.capability-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   Interactive Tally Cost & ROI Calculator
   -------------------------------------------------------------------------- */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.range-wrap {
  margin-bottom: 24px;
}

.range-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tally-yellow);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.calc-result-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.calc-price-num {
  font-size: 2.75rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--tally-blue);
  line-height: 1.1;
  margin: 12px 0 6px;
}

[data-theme="dark"] .calc-price-num {
  color: #38bdf8;
}

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

/* --------------------------------------------------------------------------
   Pricing Table
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card.featured {
  border-color: var(--tally-yellow);
  box-shadow: var(--shadow-yellow);
  transform: scale(1.02);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tally-yellow);
  color: #0b1a30;
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 10px rgba(252, 175, 30, 0.4);
}

.pricing-edition-name {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin-bottom: 6px;
}

.pricing-user-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-price-box {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-currency {
  font-size: 1.35rem;
  font-weight: 800;
  vertical-align: top;
  color: var(--text-heading);
}

.pricing-amount {
  font-size: 2.6rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--text-heading);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.pricing-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.pricing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Lead Capture & Trial Forms
   -------------------------------------------------------------------------- */
.lead-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--tally-blue);
  background: var(--bg-surface-elevated);
  box-shadow: 0 0 0 4px rgba(0, 110, 166, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 650px) {
  .form-row { grid-template-columns: 1fr; }
  .lead-form-card { padding: 24px; }
}

/* --------------------------------------------------------------------------
   Floating Action Hub (WhatsApp + Hotline + Back-to-Top)
   -------------------------------------------------------------------------- */
.floating-action-hub {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all var(--transition-normal);
  color: #ffffff;
  position: relative;
}

.floating-btn:hover {
  transform: translateY(-4px) scale(1.08);
}

.floating-whatsapp {
  background: #25D366;
}

.floating-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.floating-call {
  background: var(--tally-blue);
}

.floating-call:hover {
  background: var(--tally-blue-dark);
  box-shadow: 0 10px 28px rgba(0, 110, 166, 0.45);
}

.floating-top {
  background: var(--tally-navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.floating-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Tooltip for floating button */
.floating-btn .btn-tooltip {
  position: absolute;
  right: 64px;
  background: var(--tally-navy-deep);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.floating-btn:hover .btn-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Toast Notification System
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--tally-navy-deep);
  color: #ffffff;
  border-left: 4px solid var(--tally-yellow);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  max-width: 420px;
  animation: slide-in-toast 0.3s ease;
}

/* --------------------------------------------------------------------------
   Mega Footer
   -------------------------------------------------------------------------- */
.tally-footer {
  background: var(--tally-navy);
  color: #94a3b8;
  padding: 80px 0 35px;
  border-top: 3px solid var(--tally-yellow);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.4fr;
  gap: 40px;
  margin-bottom: 55px;
}

@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-link-list a:hover {
  color: var(--tally-yellow);
  transform: translateX(4px);
}

.footer-bottom-bar {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.social-circle:hover {
  background: var(--tally-yellow);
  color: #0b1a30;
  transform: translateY(-2px);
}
