:root {
  --bg-primary: #070b14;
  --bg-secondary: #0e1526;
  --bg-elevated: #131c32;
  --bg-card: rgba(19, 28, 50, 0.88);
  --bg-card-hover: rgba(26, 38, 66, 0.96);
  --bg-glass: rgba(9, 14, 26, 0.86);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-violet: #7c5cff;
  --accent-violet-hover: #6946ff;
  --accent-violet-soft: rgba(124, 92, 255, 0.16);
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.15);
  --accent-cyan: #0ea5e9;
  --accent-cyan-soft: rgba(14, 165, 233, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.15);
  --accent-rose: #f43f5e;
  --accent-rose-soft: rgba(244, 63, 94, 0.15);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(124, 92, 255, 0.48);
  --border-glow: rgba(124, 92, 255, 0.28);
  --radius-2xl: 28px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 54px -12px rgba(2, 6, 23, 0.72);
  --shadow-card: 0 14px 32px -10px rgba(2, 6, 23, 0.5);
  --shadow-glow: 0 0 40px -8px rgba(124, 92, 255, 0.35);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-site-theme="light"] {
  --bg-primary: #e6ecf5;
  --bg-secondary: #dce4f0;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(230, 236, 245, 0.92);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --accent-violet: #5b3df5;
  --accent-violet-hover: #4a2ce0;
  --accent-violet-soft: rgba(91, 61, 245, 0.12);
  --accent-emerald: #059669;
  --accent-emerald-soft: rgba(5, 150, 105, 0.12);
  --accent-cyan: #0284c7;
  --accent-cyan-soft: rgba(2, 132, 199, 0.12);
  --accent-amber: #d97706;
  --accent-amber-soft: rgba(217, 119, 6, 0.12);
  --accent-rose: #e11d48;
  --accent-rose-soft: rgba(225, 29, 72, 0.12);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(91, 61, 245, 0.42);
  --border-glow: rgba(91, 61, 245, 0.2);
  --shadow-lg: 0 20px 44px -12px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 10px 26px -8px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 35px -8px rgba(91, 61, 245, 0.2);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 92, 255, 0.18), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(16, 185, 129, 0.14), transparent 32%),
    radial-gradient(circle at 50% 55%, rgba(14, 165, 233, 0.08), transparent 40%),
    var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
  position: relative;
}

/* Scroll progress bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan), var(--accent-emerald));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 999;
  pointer-events: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* Sticky Responsive Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: -0.02em;
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  border: 1px solid var(--border-strong);
  white-space: nowrap;
}

[data-site-theme="dark"] .brand-badge,
:root:not([data-site-theme="light"]) .brand-badge {
  color: #c4b5fd;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 6px 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-violet);
  transition: width 0.2s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--accent-violet);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.site-theme-toggle:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 16px clamp(16px, 4vw, 32px) 22px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
}

.mobile-drawer-links a:hover {
  color: var(--text-primary);
  background: var(--accent-violet-soft);
}

.mobile-drawer-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #7c5cff 0%, #5b3df5 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(124, 92, 255, 0.52);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(124, 92, 255, 0.7);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.45);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(16, 185, 129, 0.65);
}

.btn-outline {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

/* Hero Section with Three.js Canvas Layer */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 76px) 0 clamp(48px, 8vw, 92px);
  overflow: hidden;
}

/* Three.js 3D Canvas Canvas */
.hero-three-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* allows interactive 3D rotation */
  opacity: 0.82;
  transition: opacity 0.5s ease;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-violet-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-violet);
  width: fit-content;
  max-width: 100%;
}

[data-site-theme="dark"] .eyebrow,
:root:not([data-site-theme="light"]) .eyebrow {
  color: #c4b5fd;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #7c5cff 10%, #0ea5e9 55%, #10b981 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.release-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.release-quick-meta code {
  font-family: var(--font-mono);
  background: rgba(148, 163, 184, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-primary);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.metric-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.metric-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.metric-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual & Phone Stage */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.theme-switcher {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
}

.theme-btn {
  background: transparent;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-btn.active {
  background: var(--accent-violet);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.4);
}

.phone-stage {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  perspective: 1200px;
}

.phone-frame {
  position: relative;
  width: 100%;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, #1f2937, #0b0f19);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

[data-site-theme="light"] .phone-frame {
  background: linear-gradient(145deg, #ffffff, #d5dde8);
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

.floating-badges-row {
  position: absolute;
  inset-inline: -16px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  z-index: 10;
}

.float-card {
  pointer-events: auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  width: fit-content;
  max-width: 250px;
  transition: transform 0.25s ease;
}

.float-card:nth-child(1) {
  align-self: flex-start;
  transform: translate(-10px, 0);
}

.float-card:nth-child(2) {
  align-self: flex-end;
  transform: translate(14px, 0);
}

.float-card small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.float-card span {
  display: block;
  font-size: 0.7rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

/* Sections */
section {
  padding: clamp(48px, 7vw, 84px) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-violet);
  background: var(--accent-violet-soft);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.6;
}

/* Interactive Financial Telemetry Studio (Analytics & Cashflow) */
.analytics-studio {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.analytics-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.analytics-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 28px);
}

.kpi-block small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-block strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
}

.kpi-block.inflow strong { color: var(--accent-emerald); }
.kpi-block.outflow strong { color: var(--accent-rose); }
.kpi-block.surplus strong { color: var(--accent-cyan); }

.chart-controls {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.chart-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab-btn.active {
  background: var(--accent-violet);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.4);
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.chart-canvas-container {
  position: relative;
  width: 100%;
  background: rgba(14, 21, 38, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px 16px 14px;
}

[data-site-theme="light"] .chart-canvas-container {
  background: rgba(240, 244, 250, 0.7);
}

.chart-svg-stage {
  width: 100%;
  height: 260px;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  top: 14px;
  right: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.82rem;
  box-shadow: var(--shadow-card);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.category-donut-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(14, 21, 38, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
}

[data-site-theme="light"] .category-donut-container {
  background: rgba(240, 244, 250, 0.7);
}

.category-donut-layout {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}

.donut-svg-wrap {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  position: relative;
}

.donut-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
}

.donut-center-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.donut-center-text small {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.category-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
}

/* Interactive Budget & Savings Pots Studio */
.interactive-fin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 16px;
}

.fin-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.fin-demo-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.fin-card-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.badge-emerald { background: var(--accent-emerald-soft); color: var(--accent-emerald); }
.badge-violet { background: var(--accent-violet-soft); color: var(--accent-violet); }
.badge-cyan { background: var(--accent-cyan-soft); color: var(--accent-cyan); }

.budget-gauge-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-track {
  width: 100%;
  height: 14px;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.budget-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}

.budget-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.budget-slider {
  width: 100%;
  accent-color: var(--accent-violet);
  cursor: pointer;
}

.savings-ring-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.savings-svg-wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  position: relative;
}

.savings-center-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.coin-particle-zone {
  position: relative;
  overflow: visible;
}

/* Lottie Feature Cards */
.lottie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
  margin-top: 18px;
}

.lottie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.lottie-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.lottie-animation-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--accent-violet-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lottie-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.lottie-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  margin-top: 12px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.download-badge {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  border: 1px solid var(--border-strong);
  display: inline-block;
}

.aab-card .download-badge {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

.download-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

.checksum-box {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}

/* Multi-Currency & FX Playground */
.fx-playground {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(20px, 3.5vw, 34px);
  box-shadow: var(--shadow-card);
  margin-top: 24px;
}

.fx-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
  align-items: flex-end;
}

.fx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fx-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.fx-input,
.fx-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.fx-input:focus,
.fx-select:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--border-glow);
}

.fx-swap-btn {
  align-self: flex-end;
  height: 46px;
  width: 46px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.fx-swap-btn:hover {
  background: var(--accent-violet-soft);
  border-color: var(--accent-violet);
  transform: rotate(180deg);
}

.fx-result-banner {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(16, 185, 129, 0.1));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fx-result-main small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fx-result-main strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: 12px;
  margin-top: 24px;
}

.currency-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.currency-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.curr-symbol {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-violet);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.curr-meta strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.curr-meta span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Screenshot Gallery */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--accent-violet);
  color: #ffffff;
  border-color: var(--accent-violet);
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 22px;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  perspective: 1000px;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.shot-img-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
  aspect-ratio: 9 / 18;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shot-card:hover .shot-img-wrap img {
  transform: scale(1.03);
}

.shot-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 4px;
}

.shot-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Motion Showcase Wrap */
.motion-showcase-wrap {
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.motion-showcase-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Architecture & Tech Stack */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.arch-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(22px, 3.5vw, 32px);
}

.arch-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.arch-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bullet-dot,
.check-dot {
  color: var(--accent-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.code-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.5;
  margin-top: 14px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

details.faq-item[open] {
  border-color: var(--border-strong);
}

details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary span:last-child {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-violet);
  transition: transform 0.2s ease;
}

details.faq-item[open] summary span:last-child {
  transform: rotate(45deg);
}

details.faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.lightbox-inner img {
  max-height: 72vh;
  width: auto;
  margin: 0 auto 12px;
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

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

/* GSAP Animations & Fallbacks */
.gsap-reveal {
  opacity: 1; /* GSAP sets initial states dynamically */
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .mobile-menu-btn {
    display: inline-flex;
  }

  .analytics-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .floating-badges-row {
    position: static;
    margin-top: 14px;
  }

  .float-card {
    max-width: 100%;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-badge {
    display: none;
  }

  .category-donut-layout {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-three-canvas {
    display: none !important;
  }
}

/* HisabMate v1.0.5 — layered, premium homepage treatment */
.hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 14% 20%, rgba(124, 92, 255, 0.16), transparent 38%),
    radial-gradient(ellipse at 88% 28%, rgba(14, 165, 233, 0.12), transparent 34%),
    radial-gradient(ellipse at 60% 92%, rgba(16, 185, 129, 0.08), transparent 35%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 24px max(12px, calc((100vw - 1320px) / 2));
  z-index: 0;
  pointer-events: none;
  border: 1px solid var(--border-subtle);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.075), transparent 42%),
    linear-gradient(320deg, rgba(14, 165, 233, 0.06), transparent 38%),
    var(--bg-glass);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 26px 70px rgba(2, 6, 23, 0.24),
    0 0 80px rgba(124, 92, 255, 0.08);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), rgba(16,185,129,.35), transparent);
  pointer-events: none;
}
.hero-grid {
  padding: clamp(24px, 4vw, 54px);
}
.hero-content {
  gap: clamp(16px, 2vw, 22px);
}
.eyebrow {
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.10);
  backdrop-filter: blur(14px);
}
.hero h1 {
  text-wrap: balance;
  text-shadow: 0 10px 38px rgba(2, 6, 23, 0.12);
}
.hero-lead {
  max-width: 620px;
}
.metric-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-card), rgba(124, 92, 255, 0.045));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14), inset 0 1px 0 rgba(255,255,255,0.06);
}
.metric-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-violet), var(--accent-cyan), var(--accent-emerald));
}
.metric-item strong {
  letter-spacing: -0.035em;
}
.phone-stage::before {
  content: "";
  position: absolute;
  inset: 10% -12% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124,92,255,.28), rgba(14,165,233,.12) 42%, transparent 72%);
  filter: blur(24px);
}
.phone-frame {
  box-shadow:
    0 36px 80px -18px rgba(0,0,0,.74),
    0 0 0 1px rgba(255,255,255,.18),
    0 0 48px rgba(124,92,255,.15);
}
[data-site-theme="light"] .phone-frame {
  box-shadow:
    0 30px 64px -16px rgba(15,23,42,.22),
    0 0 0 1px rgba(91,61,245,.12),
    0 0 42px rgba(91,61,245,.12);
}
.float-card {
  border-color: rgba(124,92,255,.46);
  box-shadow: 0 18px 44px rgba(2,6,23,.28), inset 0 1px 0 rgba(255,255,255,.09);
}
.section-header {
  max-width: 780px;
}
.section-header h2 {
  text-wrap: balance;
}
.feature-card,
.download-card,
.arch-panel,
.fin-demo-card {
  box-shadow: 0 18px 40px rgba(2,6,23,.16), inset 0 1px 0 rgba(255,255,255,.05);
}
.release-download-card {
  gap: 24px;
  border-color: var(--border-strong);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124,92,255,.12), transparent 48%),
    var(--bg-card);
}
.release-download-actions {
  display: grid;
  gap: 12px;
}
.release-signing-note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245,158,11,.38);
  border-radius: 12px;
  background: rgba(245,158,11,.08);
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.55;
}
[data-site-theme="light"] .release-signing-note {
  color: #713f12;
  background: rgba(217,119,6,.10);
}
@media (max-width: 960px) {
  .hero::before {
    inset: 12px 10px;
    border-radius: 28px;
  }
  .hero-grid {
    padding: 26px 22px;
  }
}
@media (max-width: 560px) {
  .hero::before {
    inset: 8px 8px;
    border-radius: 24px;
  }
  .hero-grid {
    padding: 22px 16px;
  }
  .metric-item {
    min-height: 88px;
  }
}

/* v1.0.6 — editorial product-site refinement */
.navbar {
  box-shadow: 0 10px 32px rgba(2, 6, 23, 0.10);
}
.nav-inner {
  min-height: 76px;
}
.nav-links {
  gap: clamp(12px, 1.5vw, 22px);
}
.nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  transition: right .22s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  right: 0;
}
.nav-actions {
  gap: 10px;
}
.hero {
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
  overflow: hidden;
}
.hero-grid {
  gap: clamp(34px, 5vw, 76px);
}
.hero-content {
  max-width: 650px;
}
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.hero-lead {
  max-width: 58ch;
  font-size: clamp(1rem, 1.55vw, 1.13rem);
  line-height: 1.78;
}
.hero-cta {
  margin-top: 10px;
  gap: 14px;
}
.hero-cta .btn {
  min-height: 50px;
  padding-inline: 22px;
}
.release-quick-meta {
  padding-top: 15px;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.7;
}
.hero-metrics {
  gap: 12px;
  margin-top: 10px;
}
.metric-item {
  border-radius: 16px;
  padding: 18px 16px;
}
.phone-stage {
  isolation: isolate;
}
.phone-frame {
  transform: perspective(1100px) rotateY(-4deg) rotateX(1deg);
  transition: transform .45s ease, box-shadow .45s ease;
}
.phone-stage:hover .phone-frame {
  transform: perspective(1100px) rotateY(0) rotateX(0) translateY(-5px);
}
section[id] {
  scroll-margin-top: 92px;
}
.section-header {
  max-width: 820px;
}
.section-header p {
  max-width: 66ch;
  margin-inline: auto;
  line-height: 1.75;
}
.release-section {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(72px, 10vw, 120px);
  background:
    radial-gradient(ellipse at 18% 50%, rgba(124,92,255,.10), transparent 40%),
    radial-gradient(ellipse at 85% 55%, rgba(14,165,233,.08), transparent 38%),
    linear-gradient(180deg, transparent, rgba(124,92,255,.035), transparent);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.release-download-card {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  box-shadow: 0 28px 80px rgba(2,6,23,.20), inset 0 1px 0 rgba(255,255,255,.07);
}
.release-download-card h3 {
  overflow-wrap: anywhere;
}
.download-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.download-meta-list li {
  line-height: 1.6;
}
.release-download-actions {
  grid-template-columns: 1fr 1fr;
}
.release-download-actions .btn {
  min-height: 52px;
}
.release-signing-note {
  line-height: 1.7;
}
.footer {
  padding-block: 52px;
}
.footer-inner > div:first-child {
  max-width: 48ch;
  line-height: 1.7;
}
.footer-links {
  align-items: center;
}
@media (max-width: 960px) {
  .hero {
    padding-block: 54px 64px;
  }
  .hero h1 {
    max-width: 15ch;
  }
  .nav-inner {
    min-height: 68px;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-block: 34px 48px;
  }
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 10.5vw, 3.05rem);
    line-height: 1.08;
  }
  .hero-lead {
    line-height: 1.7;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 50px;
  }
  .release-quick-meta {
    display: grid;
    gap: 8px;
  }
  .download-meta-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .release-download-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .release-download-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .footer-inner {
    align-items: flex-start;
  }
}


/* =========================================================
   HisabMate UI system refresh — mobile-first, accessible,
   resilient SVG iconography and refined fintech surfaces.
   ========================================================= */
:root {
  --bg-primary: #080d18;
  --bg-secondary: #101a2d;
  --bg-elevated: #15223a;
  --bg-card: rgba(17, 28, 49, 0.90);
  --bg-card-hover: rgba(23, 37, 64, 0.98);
  --bg-glass: rgba(8, 14, 27, 0.88);
  --text-primary: #f5f8ff;
  --text-secondary: #c4d0e3;
  --text-muted: #91a2bb;
  --accent-violet: #8b7cff;
  --accent-violet-hover: #7664ff;
  --accent-violet-soft: rgba(139, 124, 255, 0.15);
  --accent-emerald: #34d399;
  --accent-emerald-soft: rgba(52, 211, 153, 0.13);
  --accent-cyan: #38bdf8;
  --accent-cyan-soft: rgba(56, 189, 248, 0.13);
  --accent-amber: #fbbf24;
  --accent-amber-soft: rgba(251, 191, 36, 0.13);
  --border-subtle: rgba(157, 178, 211, 0.15);
  --border-strong: rgba(139, 124, 255, 0.48);
  --border-glow: rgba(139, 124, 255, 0.24);
  --shadow-lg: 0 26px 72px -28px rgba(0, 0, 0, 0.78);
  --shadow-card: 0 18px 44px -24px rgba(0, 0, 0, 0.72);
}

[data-site-theme="light"] {
  --bg-primary: #f3f6fc;
  --bg-secondary: #eaf0f8;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(247, 250, 255, 0.90);
  --text-primary: #101a2d;
  --text-secondary: #42516a;
  --text-muted: #64748b;
  --accent-violet: #6554e8;
  --accent-violet-hover: #5140d4;
  --accent-violet-soft: rgba(101, 84, 232, 0.10);
  --accent-emerald: #059669;
  --accent-emerald-soft: rgba(5, 150, 105, 0.10);
  --accent-cyan: #0284c7;
  --accent-cyan-soft: rgba(2, 132, 199, 0.10);
  --accent-amber: #b7791f;
  --accent-amber-soft: rgba(183, 121, 31, 0.10);
  --border-subtle: rgba(30, 48, 78, 0.12);
  --border-strong: rgba(101, 84, 232, 0.34);
  --border-glow: rgba(101, 84, 232, 0.15);
  --shadow-lg: 0 24px 64px -28px rgba(30, 48, 78, 0.20);
  --shadow-card: 0 16px 36px -24px rgba(30, 48, 78, 0.20);
}

html {
  scroll-padding-top: 92px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse at 8% 4%, rgba(124, 92, 255, 0.14), transparent 34%),
    radial-gradient(ellipse at 94% 16%, rgba(14, 165, 233, 0.10), transparent 32%),
    radial-gradient(ellipse at 52% 72%, rgba(16, 185, 129, 0.055), transparent 42%),
    var(--bg-primary);
}

[data-site-theme="light"] body {
  background:
    radial-gradient(ellipse at 8% 4%, rgba(101, 84, 232, 0.075), transparent 34%),
    radial-gradient(ellipse at 94% 16%, rgba(2, 132, 199, 0.055), transparent 32%),
    var(--bg-primary);
}

.container {
  max-width: 1320px;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-header {
  max-width: 850px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-header p {
  max-width: 64ch;
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
}

.section-tag {
  padding: 6px 13px;
  letter-spacing: 0.095em;
  font-size: 0.72rem;
  background: linear-gradient(135deg, var(--accent-violet-soft), var(--accent-cyan-soft));
}

.navbar {
  background: var(--bg-glass);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.12);
}

.nav-inner {
  min-height: 74px;
}

.brand img {
  box-shadow: 0 0 26px rgba(139, 124, 255, 0.22);
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

.mobile-menu-btn,
.site-theme-toggle {
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.mobile-drawer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
}

.btn {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #8876ff 0%, #6250ea 100%);
  box-shadow: 0 12px 28px -12px rgba(124, 92, 255, 0.78);
}

.btn-outline {
  border-color: var(--border-subtle);
  background: rgba(255,255,255,0.025);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
}

.hero {
  padding-block: clamp(52px, 7vw, 92px);
}

.hero::before {
  border-color: rgba(157, 178, 211, 0.17);
  background:
    radial-gradient(ellipse at 85% 10%, rgba(56, 189, 248, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(139, 124, 255, 0.09), transparent 48%),
    var(--bg-glass);
}

.hero h1 {
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-lead {
  color: var(--text-secondary);
  text-wrap: pretty;
}

.metric-item,
.feature-card,
.download-card,
.arch-panel,
.fin-demo-card,
.lottie-card,
.shot-card,
.analytics-studio,
.fx-playground,
.currency-panel {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.035);
}

.metric-item,
.feature-card,
.download-card,
.arch-panel,
.fin-demo-card,
.lottie-card,
.shot-card {
  background: linear-gradient(155deg, var(--bg-card), rgba(124, 92, 255, 0.025));
}

.feature-card,
.fin-demo-card,
.lottie-card,
.shot-card {
  transition:
    transform 260ms cubic-bezier(.2,.7,.2,1),
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.feature-card:hover,
.fin-demo-card:hover,
.lottie-card:hover,
.shot-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 52px -28px rgba(0,0,0,0.78), 0 0 0 1px var(--border-glow);
}

/* The feature icons are inline SVG: no icon font or remote animation is needed. */
.lottie-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: 24px;
}

.lottie-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 250px;
  padding: clamp(22px, 2.7vw, 30px);
  overflow: hidden;
  border-radius: 24px;
}

.lottie-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -46px;
  top: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-violet-soft), transparent 70%);
  pointer-events: none;
}

.lottie-animation-box {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  color: #c4baff;
  border: 1px solid rgba(139, 124, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(139, 124, 255, 0.20), rgba(56, 189, 248, 0.075)),
    rgba(15, 23, 42, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 12px 26px -16px rgba(0,0,0,0.72),
    0 0 30px rgba(139,124,255,0.09);
}

.lottie-card:nth-child(2) .lottie-animation-box {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.24);
  background: linear-gradient(145deg, rgba(56,189,248,0.18), rgba(139,124,255,0.07)), rgba(15,23,42,0.42);
}

.lottie-card:nth-child(3) .lottie-animation-box {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.24);
  background: linear-gradient(145deg, rgba(52,211,153,0.16), rgba(56,189,248,0.07)), rgba(15,23,42,0.42);
}

.feature-motion-icon {
  width: 48px;
  height: 48px;
  overflow: visible;
  filter: drop-shadow(0 4px 10px rgba(139,124,255,0.20));
  animation: feature-icon-float 4.8s ease-in-out infinite;
}

.lottie-card:nth-child(2) .feature-motion-icon {
  animation-delay: -1.6s;
}

.lottie-card:nth-child(3) .feature-motion-icon {
  animation-delay: -3.2s;
}

@keyframes feature-icon-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
}

.lottie-card h3 {
  margin-top: 2px;
  font-size: clamp(1.08rem, 1.55vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.lottie-card p {
  max-width: 42ch;
  color: var(--text-secondary);
  line-height: 1.72;
}

.feature-card {
  border-radius: 22px;
  padding: clamp(20px, 2.5vw, 28px);
}

.feature-icon {
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, var(--accent-violet-soft), var(--accent-cyan-soft));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.analytics-studio {
  border-radius: 28px;
  background: linear-gradient(145deg, var(--bg-card), rgba(14, 165, 233, 0.025));
}

.fin-demo-card,
.arch-panel,
.download-card {
  border-radius: 24px;
}

.chart-canvas-container,
.category-donut-container {
  border-radius: 20px;
}

.currency-pill,
.filter-chip,
.theme-btn {
  border-color: var(--border-subtle);
}

.currency-pill {
  min-height: 62px;
  background: var(--bg-card);
}

.filter-chip {
  min-height: 40px;
}

.shot-card {
  padding: 14px;
  border-radius: 22px;
}

.shot-img-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.release-download-card {
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(139,124,255,.14), transparent 48%),
    linear-gradient(145deg, var(--bg-card), rgba(56,189,248,.025));
}

.release-signing-note {
  border-color: rgba(251,191,36,.34);
}

.footer {
  background: linear-gradient(180deg, transparent, rgba(124,92,255,.035));
  border-top-color: var(--border-subtle);
}

.footer-links a {
  padding: 7px 0;
  transition: color 180ms ease;
}

/* Responsive layout: dense grids become comfortable tap-friendly cards. */
@media (max-width: 960px) {
  .lottie-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-inner {
    min-height: 68px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }

  .lottie-grid,
  .feature-grid,
  .interactive-fin-grid,
  .arch-grid,
  .screenshot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lottie-card {
    min-height: 0;
    padding: 24px;
    gap: 13px;
  }

  .lottie-animation-box {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }

  .feature-motion-icon {
    width: 44px;
    height: 44px;
  }

  .section-header {
    text-align: left;
    margin-bottom: 28px;
  }

  .section-header p {
    margin-inline: 0;
  }

  .section-tag {
    margin-bottom: 10px;
  }

  .analytics-studio,
  .fin-demo-card,
  .arch-panel {
    border-radius: 22px;
  }

  .analytics-studio {
    padding: 18px;
  }

  .analytics-header-row {
    align-items: flex-start;
  }

  .chart-controls {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .chart-controls button {
    flex: 0 0 auto;
  }

  .gallery-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 2px 0 8px;
    scrollbar-width: thin;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .shot-img-wrap {
    max-height: 560px;
  }

  .release-section {
    padding-block: 58px;
  }

  .release-download-card {
    padding: 22px 18px;
  }
}

@media (max-width: 380px) {
  .container {
    padding-inline: 14px;
  }

  .brand {
    gap: 8px;
    font-size: 1.06rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-inner {
    min-height: 64px;
  }

  .lottie-card {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.5rem);
  }
}

[data-site-theme="light"] .lottie-animation-box {
  background: linear-gradient(145deg, rgba(101,84,232,.12), rgba(2,132,199,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 24px -18px rgba(30,48,78,.32);
}
[data-site-theme="light"] .lottie-card:nth-child(1) .lottie-animation-box { color: #5b4bd8; }
[data-site-theme="light"] .lottie-card:nth-child(2) .lottie-animation-box { color: #0369a1; }
[data-site-theme="light"] .lottie-card:nth-child(3) .lottie-animation-box { color: #047857; }

@media (prefers-reduced-motion: reduce) {
  .feature-motion-icon {
    animation: none !important;
  }

  .feature-card:hover,
  .fin-demo-card:hover,
  .lottie-card:hover,
  .shot-card:hover {
    transform: none;
  }
}
