/* =============================================
   Bizlytics Website - Styles
   Color Theme from App/lib/constants/colors.dart
   Dark theme: #1F1F1F bg, #D4E734 accent
   Cards: #252525, Text: #FFFFFF / #BFC2BC / #848484
   Font: Manrope (matching App/lib/constants/styles.dart)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables (mirroring AppColors) ---------- */
:root {
  --clr-accent:        #D4E734;
  --clr-danger:        #FF4431;
  --clr-success:       #2ECC71;
  --clr-white:         #FFFFFF;
  --clr-muted:         #BFC2BC;
  --clr-gray:          #848484;
  --clr-card:          #252525;
  --clr-card-light:    #3A3A3A;
  --clr-bg:            #1F1F1F;
  --clr-bg-deeper:     #181818;

  --font-body:         'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:         8px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --radius-full:       9999px;

  --shadow-glow:       0 0 30px rgba(212, 231, 52, 0.15);
  --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.3);

  --transition-fast:   0.2s ease;
  --transition-base:   0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Page Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 64px;
  height: auto;
  z-index: 1;
  animation: loaderPulse 1.6s ease-in-out infinite;
}

.loader-shimmer {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(212, 231, 52, 0.15);
  animation: loaderSpin 2s linear infinite;
}

.loader-shimmer::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--clr-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--clr-accent), 0 0 24px rgba(212, 231, 52, 0.4);
}

.loader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--clr-accent);
  border-radius: 3px;
  animation: loaderFill 1.4s ease-in-out forwards;
}

.loader-tagline {
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--clr-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  animation: loaderFadeIn 0.6s 0.5s ease forwards;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

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

@keyframes loaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes loaderFadeIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

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

ul {
  list-style: none;
}

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

.section {
  padding: 100px 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.text-accent  { color: var(--clr-accent); }
.text-muted   { color: var(--clr-muted); }
.text-gray    { color: var(--clr-gray); }
.text-success { color: var(--clr-success); }
.text-danger  { color: var(--clr-danger); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-bg);
  border-color: var(--clr-accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--clr-accent);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-gray);
}

.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  box-shadow: var(--shadow-glow);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(31, 31, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 231, 52, 0.1);
  border: 1px solid rgba(212, 231, 52, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--clr-accent);
  margin-bottom: 24px;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--clr-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero-visual .dashboard-mock {
  width: 100%;
  max-width: 680px;
  background: var(--clr-card);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 460px;
}

/* ---------- Sidebar ---------- */
.mock-sidebar {
  width: 56px;
  background: var(--clr-bg-deeper);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 24px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-sidebar .mock-logo {
  height: 24px;
  width: auto;
  margin-bottom: 4px;
}

.mock-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.mock-nav-item {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gray);
  transition: all var(--transition-fast);
}

.mock-nav-item.active {
  background: rgba(212, 231, 52, 0.12);
  color: var(--clr-accent);
}

.mock-nav-item svg {
  width: 18px;
  height: 18px;
}

.mock-nav-bottom {
  margin-top: auto;
}

/* ---------- Main Area ---------- */
.mock-main {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-greeting {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-muted);
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), #8BC34A);
}

/* ---------- KPI Rows ---------- */
.mock-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mock-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--clr-bg);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.mock-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-kpi-icon svg {
  width: 18px;
  height: 18px;
}

.mock-kpi.accent .mock-kpi-icon { background: rgba(212, 231, 52, 0.12); color: var(--clr-accent); }
.mock-kpi.danger .mock-kpi-icon { background: rgba(255, 68, 49, 0.12); color: var(--clr-danger); }
.mock-kpi.blue .mock-kpi-icon   { background: rgba(52, 152, 219, 0.12); color: #3498DB; }
.mock-kpi.success .mock-kpi-icon { background: rgba(46, 204, 113, 0.12); color: var(--clr-success); }

.mock-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mock-kpi-label {
  font-size: 0.65rem;
  color: var(--clr-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-kpi-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-white);
}

.mock-kpi.accent .mock-kpi-val { color: var(--clr-accent); }
.mock-kpi.danger .mock-kpi-val { color: var(--clr-danger); }
.mock-kpi.blue .mock-kpi-val   { color: #3498DB; }
.mock-kpi.success .mock-kpi-val { color: var(--clr-success); }

/* ---------- Mini Line Chart ---------- */
.mock-chart-area {
  background: var(--clr-bg);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.mock-chart-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.mock-line-chart {
  width: 100%;
  height: 80px;
  display: block;
}

.mock-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.55rem;
  color: var(--clr-gray);
  padding: 0 2px;
}

/* ---------- Recent Transactions ---------- */
.mock-recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-txn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-txn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-txn-dot.accent { background: var(--clr-accent); }
.mock-txn-dot.danger { background: var(--clr-danger); }
.mock-txn-dot.blue   { background: #3498DB; }

.mock-txn-name {
  flex: 1;
  font-size: 0.7rem;
  color: var(--clr-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-txn-amt {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-white);
  flex-shrink: 0;
}

/* ---------- Features Section ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--clr-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(212, 231, 52, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(212, 231, 52, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--clr-accent);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.938rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ---------- Stats Counter Section ---------- */
.stats-section {
  background: var(--clr-card);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}

.stat-item .stat-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}

.stat-item .stat-name {
  font-size: 0.938rem;
  color: var(--clr-muted);
  margin-top: 8px;
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--clr-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 40px 28px 28px;
  text-align: center;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--clr-accent);
  color: var(--clr-bg);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.938rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ---------- Analytics Preview ---------- */
.analytics-preview {
  background: var(--clr-card);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.analytics-tabs {
  display: flex;
  gap: 4px;
  background: var(--clr-bg);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  width: fit-content;
}

.analytics-tab {
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--clr-muted);
  background: none;
  border: none;
  font-family: var(--font-body);
}

.analytics-tab.active {
  background: var(--clr-accent);
  color: var(--clr-bg);
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--clr-bg);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.metric-card .metric-label {
  font-size: 0.813rem;
  color: var(--clr-gray);
  margin-bottom: 8px;
}

.metric-card .metric-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.metric-card .metric-sub {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.813rem;
  color: var(--clr-muted);
}

.analytics-chart-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 8px;
}

.analytics-line-chart {
  width: 100%;
  min-width: 700px;
  height: auto;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.06);
}

#chartLines path {
  transition: none;
}

.chart-dot {
  transition: opacity 0.3s ease;
}

.chart-x-labels text {
  transition: opacity 0.3s ease;
}

.chart-legend {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.813rem;
  color: var(--clr-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-dot.green { background: var(--clr-accent); }
.legend-dot.red { background: var(--clr-danger); }
.legend-dot.blue { background: #3498DB; }

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card {
  position: relative;
  z-index: 1;
  background: var(--clr-card);
  border: 1px solid rgba(212, 231, 52, 0.15);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  max-width: 760px;
  margin: 0 auto;
}

.cta-card .cta-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-card .cta-desc {
  font-size: 1.05rem;
  color: var(--clr-muted);
  margin-bottom: 32px;
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--clr-card);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.footer-brand p {
  color: var(--clr-muted);
  font-size: 0.938rem;
  margin: 16px 0 20px;
  line-height: 1.7;
}

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

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--clr-accent);
  color: var(--clr-bg);
}

.footer-col h4 {
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--clr-white);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--clr-muted);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--clr-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.813rem;
  color: var(--clr-gray);
}

.footer-bottom a {
  color: var(--clr-accent);
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* delay children */
.animate-on-scroll > *:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll > *:nth-child(2) { transition-delay: 100ms; }
.animate-on-scroll > *:nth-child(3) { transition-delay: 200ms; }
.animate-on-scroll > *:nth-child(4) { transition-delay: 300ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .analytics-metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .dashboard-mock {
    max-width: 100%;
    height: auto;
    flex-direction: column;
  }
  .mock-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 12px 16px;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .mock-nav {
    flex-direction: row;
    gap: 4px;
  }
  .mock-nav-bottom { margin-top: 0; margin-left: auto; }
  .mock-sidebar .mock-logo { height: 20px; }
  .mock-main { padding: 16px; }
  .mock-kpi-row { grid-template-columns: 1fr 1fr; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-card);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: right var(--transition-base);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .analytics-metrics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-card { padding: 40px 24px; }
  .cta-card .cta-title { font-size: 1.6rem; }
  .section-title { font-size: 1.75rem; }
  .stats-section { padding: 60px 0; }
  .stat-item .stat-number { font-size: 2.2rem; }
  .analytics-preview { padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-visual .dashboard-mock {
    max-width: 100%;
    height: auto;
  }
  .mock-sidebar {
    width: 100%;
    flex-direction: row;
    padding: 10px 12px;
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .mock-nav { flex-direction: row; gap: 2px; }
  .mock-nav-item { width: 30px; height: 30px; }
  .mock-nav-item svg { width: 15px; height: 15px; }
  .mock-nav-bottom { margin-top: 0; margin-left: auto; }
  .mock-sidebar .mock-logo { height: 18px; }
  .mock-main { padding: 12px; gap: 10px; }
  .mock-kpi-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mock-kpi { padding: 10px; gap: 8px; }
  .mock-kpi-val { font-size: 0.9rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .analytics-metrics { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* =============================================
   FAQ Page
   ============================================= */

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-category-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(212, 231, 52, 0.2);
  color: var(--clr-accent);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  gap: 16px;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--clr-accent);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--clr-gray);
  transition: transform 0.3s ease, color var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--clr-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.938rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

/* ---------- FAQ Responsive ---------- */
@media (max-width: 768px) {
  .faq-grid {
    gap: 36px;
  }
  .faq-category-title {
    font-size: 1.15rem;
  }
  .faq-question {
    font-size: 0.938rem;
    padding: 16px 0;
  }
  .faq-answer p {
    font-size: 0.875rem;
  }
}

/* =============================================
   Terms & Conditions Page
   ============================================= */

/* ---------- Terms Hero ---------- */
.terms-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--clr-bg-deeper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terms-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.terms-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}

.terms-hero-desc {
  font-size: 1.1rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.terms-hero-date {
  font-size: 0.875rem;
  color: var(--clr-gray);
}

/* ---------- Terms Content Section ---------- */
.terms-content-section {
  padding: 80px 0 100px;
}

.terms-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Terms Card ---------- */
.terms-card {
  display: flex;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-card:last-child {
  border-bottom: none;
}

.terms-card-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(212, 231, 52, 0.08);
  border: 1px solid rgba(212, 231, 52, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-accent);
  font-family: var(--font-body);
}

.terms-card-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--clr-white);
}

.terms-card-body p {
  font-size: 0.969rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

/* Active footer link state */
.footer-col a.active {
  color: var(--clr-accent);
}

/* ---------- Terms Responsive ---------- */
@media (max-width: 768px) {
  .terms-hero {
    padding: 140px 0 60px;
  }
  .terms-hero-title {
    font-size: 2rem;
  }
  .terms-hero-desc {
    font-size: 1rem;
  }
  .terms-card {
    flex-direction: column;
    gap: 16px;
    padding: 28px 0;
  }
  .terms-card-number {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  .terms-card-body h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .terms-hero-title {
    font-size: 1.6rem;
  }
  .terms-content-section {
    padding: 60px 0 80px;
  }
  .terms-card {
    padding: 24px 0;
  }
}