:root {
  --ink: #101c26;
  --ink-soft: #2c3e4d;
  --muted: #5c7183;
  --line: rgba(255, 255, 255, 0.45);
  --line-soft: rgba(16, 28, 38, 0.08);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(16, 28, 38, 0.55);
  --white: #fff;
  --indigo: #4338ca;
  --indigo-deep: #312e81;
  --teal: #0d9488;
  --leaf: #14b8a6;
  --sand: #f59e0b;
  --violet: #8b5cf6;
  --ok: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 2px 10px rgba(16, 28, 38, 0.07);
  --shadow-md: 0 8px 24px rgba(16, 28, 38, 0.1), 0 2px 6px rgba(16, 28, 38, 0.06);
  --shadow-lg: 0 20px 50px rgba(16, 28, 38, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 55% 45% at 90% -5%, rgba(245, 158, 11, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at -10% 10%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 45% at 55% 105%, rgba(139, 92, 246, 0.22), transparent 65%),
    radial-gradient(ellipse 45% 40% at 30% 45%, rgba(20, 184, 166, 0.14), transparent 60%),
    linear-gradient(160deg, #eef2ff, #e7eef3 55%, #f2ede6);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--teal); }

.container { width: min(1160px, calc(100% - 2.5rem)); margin: 0 auto; }

.site-main { flex: 1; padding: 0 0 5rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px rgba(16, 28, 38, 0.06);
}

.header-inner,
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: "Outfit", "Inter", var(--font-body), system-ui, sans-serif;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #0f172a;
  text-decoration: none;
}

.brand-wordmark span {
  background: linear-gradient(115deg, #4338ca 0%, #6366f1 48%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}

.brand:hover .brand-wordmark {
  color: #1e1b4b;
}

.brand:hover .brand-wordmark span {
  background: linear-gradient(115deg, #3730a3 0%, #4f46e5 48%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo-deep), var(--indigo) 55%, var(--violet));
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

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

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav,
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.site-nav a,
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.site-nav a:hover,
.nav a:hover {
  color: var(--indigo-deep);
  background: rgba(255, 255, 255, 0.7);
}

.site-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--glass);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-size: 1.15rem;
  cursor: pointer;
}

.btn-nav { margin-left: 0.15rem; }

.site-nav a.btn-nav-download {
  margin-left: 0.15rem;
  min-height: 38px;
  padding: 0.5rem 1.15rem;
  background: #111;
  color: #fff;
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a.btn-nav-download:hover,
.site-nav a.btn-nav-download:focus {
  background: #000;
  color: #fff;
}

/* ===== Modern home experience ===== */
.home-page {
  background:
    radial-gradient(circle at 8% 18%, rgba(99, 102, 241, 0.18), transparent 28%),
    radial-gradient(circle at 92% 38%, rgba(20, 184, 166, 0.14), transparent 30%),
    linear-gradient(180deg, #f8faff 0%, #eef2ff 48%, #f8fafc 100%);
}

.home-page .site-main { overflow: hidden; }

/* ===== Hero ===== */
.hero-bleed {
  position: relative;
  min-height: min(88vh, 740px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-bleed__media { position: absolute; inset: 0; }

.hero-bleed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.05);
  animation: hero-drift 28s var(--ease) infinite alternate;
}

.hero-bleed__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.5rem;
  max-width: 42rem;
  color: #fff;
  animation: fade-up 0.9s var(--ease) both;
}

.hero-bleed__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-bleed__brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.hero-bleed__lead {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@keyframes hero-drift {
  from { transform: scale(1.05); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* ===== Home page polish ===== */
.hero-bleed__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(12, 18, 48, 0.9) 0%, rgba(31, 41, 96, 0.62) 46%, rgba(12, 18, 48, 0.12) 76%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, #000, transparent 76%);
}

.hero-gradient-orb { position: absolute; border-radius: 50%; filter: blur(12px); opacity: .48; }
.hero-orb-1 { width: 320px; height: 320px; left: -90px; top: 5%; background: rgba(99,102,241,.55); }
.hero-orb-2 { width: 250px; height: 250px; left: 38%; bottom: -120px; background: rgba(20,184,166,.46); }
.hero-orb-3 { width: 180px; height: 180px; left: 55%; top: 12%; background: rgba(245,158,11,.3); }

.hero-badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .5rem .8rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  font-size: .78rem;
  font-weight: 600;
}
.hero-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 5px rgba(94,234,212,.14); }
.brand-line { display: block; }
.brand-line--highlight { color: #fcd34d; }
.btn-glow { box-shadow: 0 10px 35px rgba(245,158,11,.5); }
.hero-trust { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; margin-top: 1.5rem; color: rgba(255,255,255,.86); font-size: .8rem; }
.trust-item { display: flex; align-items: center; gap: .4rem; }
.trust-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(94,234,212,.18); color: #99f6e4; font-weight: 700; }

.alert-glow { border-color: rgba(67,56,202,.18); box-shadow: 0 14px 38px rgba(67,56,202,.1); }
.alert-glow .alert-icon { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 14px; background: rgba(67,56,202,.1); }

.module-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.module-link {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.module-link:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(99,102,241,.28); }
.module-link__num { color: var(--indigo); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.module-link__title { margin: 0 0 .3rem; font-weight: 700; }
.module-link__desc { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.usecase-grid--six { grid-template-columns: repeat(3, 1fr); }
.usecase-card { position: relative; overflow: hidden; }
.usecase-card__glow { position: absolute; inset: auto -20% -45% 20%; height: 140px; background: var(--tone); filter: blur(65px); opacity: .12; pointer-events: none; }
.usecase-card__media { position: relative; overflow: hidden; }
.usecase-card__media img { transition: transform .6s var(--ease); }
.usecase-card__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 1rem; background: linear-gradient(transparent 50%, rgba(10,18,35,.7)); opacity: 0; transition: opacity .3s ease; }
.usecase-card__explore { color: #fff; font-size: .8rem; font-weight: 700; }
.usecase-card:hover .usecase-card__media img { transform: scale(1.06); }
.usecase-card:hover .usecase-card__overlay { opacity: 1; }
.usecase-card__tag { color: var(--tone); }

.showcase-card--workflow { overflow: hidden; padding: 0; }
.showcase-card__prompt { display: flex; align-items: flex-start; gap: 1rem; padding: 2rem; }
.showcase-card__avatar { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, var(--indigo), var(--teal)); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(67,56,202,.28); }
.showcase-card__label { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.showcase-card--workflow blockquote { margin: .45rem 0 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.65rem); line-height: 1.45; }
.workflow-steps { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.15rem 2rem; background: rgba(67,56,202,.06); border-block: 1px solid var(--line-soft); }
.workflow-steps span { font-size: .82rem; font-weight: 600; }
.workflow-steps b { color: var(--indigo); margin-right: .3rem; }
.workflow-steps i { color: var(--muted); font-style: normal; }
.showcase-card--workflow figcaption { padding: 1rem 2rem; color: var(--muted); font-size: .82rem; }

.cta-band { position: relative; overflow: hidden; padding: 2px; border-radius: var(--radius-xl); background: linear-gradient(120deg, var(--indigo), var(--teal), var(--sand)); box-shadow: var(--shadow-lg); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; border-radius: calc(var(--radius-xl) - 2px); background: rgba(248,250,255,.94); }
.cta-band h2 { margin: 0 0 .4rem; font-family: var(--font-display); }
.cta-band p { margin: 0; color: var(--muted); }

[data-reveal] { animation: fade-up .8s var(--ease) both; animation-delay: calc(var(--reveal-delay, 0) * 1ms); }

@media (max-width: 900px) {
  .module-rail, .usecase-grid--six { grid-template-columns: repeat(2, 1fr); }
  .hero-bleed__content { max-width: 36rem; }
  .workflow-steps { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .module-rail, .usecase-grid--six { grid-template-columns: 1fr; }
  .hero-bleed { min-height: 760px; }
  .hero-bleed__content { padding-bottom: 2.5rem; }
  .hero-trust { display: grid; }
  .workflow-steps { justify-content: flex-start; }
  .workflow-steps i { display: none; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--sand), #fbbf24);
  color: #3a2a05;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.55);
  color: #3a2a05;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.btn-outline {
  background: var(--glass);
  color: var(--indigo);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

.site-nav--dashboard { border-radius: var(--radius-lg); padding: 0.35rem 0.5rem; }

.user-label {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* ===== Sections ===== */
.section { margin-bottom: 0; }

.section-head { margin-bottom: 1.5rem; max-width: 38rem; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.45rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-head p { margin: 0; color: var(--muted); line-height: 1.6; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* ===== Stats ===== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 2rem auto 3rem;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat-item {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.3s var(--ease);
}

.stat-item:hover { background: rgba(255, 255, 255, 0.45); }
.stat-item:last-child { border-right: none; }
.stat-item .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stat-item .value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Module rail ===== */
.module-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.module-link,
.price-card,
.usecase-card,
.showcase-card,
.form-card,
.card,
.stat,
.sidebar {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.module-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.module-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--sand), var(--violet));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.module-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--glass-strong);
}

.module-link:hover::before { opacity: 1; }

.module-link__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--sand), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.module-link__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.9rem 0 0.3rem;
  color: var(--ink);
}

.module-link__desc { font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== Use case cards ===== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.usecase-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .usecase-grid--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .usecase-grid--six { grid-template-columns: 1fr; }
}

.usecase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.usecase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.usecase-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(16, 28, 38, 0.06);
}

.usecase-card__body { padding: 1.15rem 1.2rem 1.25rem; }

.usecase-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tone, var(--indigo));
  margin-bottom: 0.55rem;
}

.usecase-card__body p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.92rem; }

/* ===== Showcase ===== */
.showcase-card {
  border-radius: var(--radius-lg);
  padding: 2rem 2.1rem;
  margin: 0;
}

.showcase-card blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
}

.showcase-card figcaption { color: var(--muted); font-size: 0.92rem; }

/* ===== Pricing ===== */
.pricing-grid,
.plan-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.price-card {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-card.featured {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25), var(--shadow-md);
}

.price-card.current { border-color: rgba(22, 163, 74, 0.45); }

.price-card h3 { margin: 0; font-family: var(--font-display); }

.price { font-size: 1.4rem; font-weight: 700; }

.price small { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.7;
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.12), rgba(13, 148, 136, 0.12));
  border-radius: var(--radius-xl);
  padding: 0.25rem;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) - 4px);
  padding: 2rem 2.1rem;
  backdrop-filter: blur(16px);
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.cta-band p { margin: 0; color: var(--muted); }

/* ===== Alerts ===== */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
  border-left: 4px solid;
  line-height: 1.6;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.alert-info { border-left-color: var(--teal); color: var(--indigo-deep); }
.alert-error { border-left-color: var(--danger); color: #991b1b; background: rgba(254, 226, 226, 0.5); }
.alert-ok { border-left-color: var(--ok); color: #166534; background: rgba(220, 252, 231, 0.5); }

/* ===== Auth forms ===== */
.page-auth {
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 55%, #ffffff 100%);
  min-height: 100vh;
}

.page-auth .site-main { padding-bottom: 2rem; }

.form-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.form-card {
  width: min(440px, 92vw);
  border-radius: 20px;
  padding: 2.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.18);
}

.form-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-card p.sub { margin: 0 0 1.25rem; color: var(--muted); }

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-card .btn { width: 100%; margin-top: 0.5rem; }

.form-card .btn-primary {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.form-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6);
}

.form-card .auth-switch a {
  color: #6366f1;
  font-weight: 700;
  text-decoration: none;
}

.form-card .auth-switch a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-switch {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-switch a {
  font-weight: 600;
}

.auth-google-section {
  margin-top: 1.5rem;
}

.auth-google-section .auth-divider {
  margin-top: 0;
}

.auth-google-section .google-signin-wrap {
  margin-top: 1rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.google-signin-wrap {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-signin-wrap > div {
  width: 100%;
}

.google-signin-wrap.google-signin-ide {
  display: flex;
  justify-content: stretch;
  width: 100%;
}

.google-signin-wrap.google-signin-ide > div {
  width: 100%;
}

/* ===== Dashboard ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.sidebar {
  border-radius: var(--radius-lg);
  padding: 1rem;
  height: fit-content;
}

.sidebar nav { display: grid; gap: 0.35rem; }

.sidebar a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--indigo);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat { border-radius: var(--radius-lg); padding: 1rem; }

.stat .label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.stat .value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.card h3 { margin-top: 0; font-family: var(--font-display); }

.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.65rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

table.data th { color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-weight: 700;
}

.badge-pending { color: #b45309; background: #fef3c7; }
.badge-paid,
.badge-active { color: #166534; background: #dcfce7; }
.badge-failed { color: #991b1b; background: #fee2e2; }

/* ===== Footer (multi-kolom) ===== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  color: var(--muted);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer-grid-wrap { width: min(1160px, calc(100% - 2.5rem)); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 42ch;
}

.footer-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-right: auto;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
  color: var(--muted);
}

/* ===== Halaman legal / bantuan ===== */
.legal-page {
  padding: 2rem 0 0;
}

.legal-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
}

.legal-kicker {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.legal-prose h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.legal-updated {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
}

.legal-prose h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 0.95rem;
}

.legal-prose p,
.legal-prose li {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-prose ul,
.legal-prose ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-prose li + li { margin-top: 0.35rem; }

.legal-prose a {
  color: #4338ca;
  text-underline-offset: 2px;
}

.legal-prose blockquote {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.legal-prose blockquote p { margin: 0; font-size: inherit; }
.legal-prose blockquote p + p { margin-top: 0.65rem; }

.legal-prose code {
  font-size: 0.86em;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-docs-page .legal-prose {
  max-width: 820px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.65rem 0.55rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.legal-table th {
  font-size: 0.75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats-strip,
  .module-rail,
  .pricing-grid,
  .plan-picker { grid-template-columns: repeat(2, 1fr); }

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

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1rem 1.1rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open { display: flex; }
  .site-nav a { border-radius: var(--radius); }
  .hero-bleed { min-height: 72vh; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-meta { text-align: left; }
  .dashboard-layout,
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .module-rail,
  .stats-strip,
  .pricing-grid,
  .plan-picker { grid-template-columns: 1fr; }

  .stat-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
  .stat-item:last-child { border-bottom: none; }
}

/* ===== Landing page polish ===== */
.home-page .hero-bleed {
  min-height: min(92vh, 820px);
  border-radius: 0 0 46px 46px;
  isolation: isolate;
}

.home-page .hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 15, 35, 0.88) 0%, rgba(20, 28, 56, 0.58) 46%, rgba(15, 23, 42, 0.12) 76%),
    linear-gradient(0deg, rgba(8, 15, 35, 0.55), transparent 55%);
}

.home-page .hero-bleed__content { padding-bottom: 5.5rem; }
.home-page .hero-bleed__brand { font-size: clamp(2.65rem, 6.5vw, 5.25rem); max-width: 12ch; }
.home-page .hero-bleed__brand em { color: #fbbf24; font-style: normal; }
.home-page .hero-bleed__lead { max-width: 52ch; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.home-page .hero-bleed__eyebrow { display: flex; align-items: center; gap: 0.6rem; }
.home-page .hero-bleed__eyebrow span { width: 2rem; height: 2px; background: #fbbf24; border-radius: 2px; }
.home-page .hero-cta .btn { min-height: 50px; padding-inline: 1.65rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.35rem;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  font-weight: 500;
}

.home-page .stats-strip { margin-top: -2.2rem; }
.home-page .section { margin-bottom: 0; }
.home-page .section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.home-page .section-head { margin-bottom: 2rem; }

.home-page .module-link { min-height: 190px; padding: 1.65rem; }
.home-page .module-link::after {
  content: "↗";
  position: absolute;
  right: 1.35rem;
  top: 1.25rem;
  color: var(--muted);
  font-size: 1.15rem;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.home-page .module-link:hover::after { transform: translate(3px, -3px); color: var(--indigo); }

.home-page .usecase-card { background: rgba(255,255,255,.72); }
.home-page .usecase-card__media { overflow: hidden; }
.home-page .usecase-card__media img { transition: transform .65s var(--ease); }
.home-page .usecase-card:hover .usecase-card__media img { transform: scale(1.055); }
.home-page .usecase-card__body { padding: 1.4rem 1.45rem 1.55rem; }

.home-page .showcase-card {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, #312e81, #4338ca 55%, #0f766e);
  border: 0;
  overflow: hidden;
}
.home-page .showcase-card::after { content: "✦"; position: absolute; right: 5%; top: 5%; font-size: 8rem; color: rgba(255,255,255,.08); }
.home-page .showcase-card blockquote { max-width: 35ch; color: #fff; font-size: clamp(1.45rem, 3.3vw, 2.5rem); }
.home-page .showcase-card figcaption { color: rgba(255,255,255,.72); }

.home-page .pricing-grid { align-items: stretch; }
.home-page .price-card { position: relative; padding: 1.7rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.home-page .price-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.home-page .price-card.featured { background: linear-gradient(165deg, #fff, #fffbeb); transform: translateY(-10px); }
.home-page .price-card.featured:hover { transform: translateY(-16px); }
.price-card__badge { align-self: flex-start; margin: -2.65rem 0 .55rem; padding: .36rem .75rem; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #422006; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 5px 14px rgba(245,158,11,.3); }
.home-page .price-card .btn { width: 100%; margin-top: .5rem; }
.home-page .cta-band__inner { padding: clamp(2rem, 5vw, 3.5rem); }

@media (max-width: 900px) {
  .home-page .price-card.featured { transform: none; }
  .home-page .price-card.featured:hover { transform: translateY(-7px); }
  .price-card__badge { margin-top: -2.45rem; }
}

@media (max-width: 768px) {
  .home-page .hero-bleed { min-height: 78vh; border-radius: 0 0 28px 28px; }
  .home-page .hero-bleed::before { background: linear-gradient(0deg, rgba(8,15,35,.92), rgba(8,15,35,.28) 85%); }
  .home-page .hero-bleed__content { padding-bottom: 4.5rem; }
  .home-page .stats-strip { margin-top: -1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bleed__media img { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .home-page .usecase-card__media img { transition: none; }
}

/* ——— Halaman Penggunaan (usage dashboard) ——— */
.usage-page {
  min-width: 0;
}

.usage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.usage-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.usage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: rgba(16, 28, 38, 0.04);
  padding: 0.25rem;
  border-radius: 999px;
}

.usage-pill {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.usage-pill:hover { color: var(--text); }

.usage-pill.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(16, 28, 38, 0.1);
}

.usage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.usage-stat-card {
  background: #fff;
  border: 1px solid rgba(16, 28, 38, 0.08);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.usage-stat-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.usage-stat-card strong {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.usage-chart-card { margin-bottom: 1.25rem; }

.usage-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.usage-chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.usage-chart-svg {
  display: block;
  width: 100%;
  min-width: 480px;
  height: auto;
}

.usage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(16, 28, 38, 0.06);
}

.usage-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.usage-legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.usage-table-card { padding: 0; overflow: hidden; }

.usage-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(16, 28, 38, 0.06);
}

.usage-table-hint {
  margin: 0;
  padding: 0 1.25rem 0.85rem;
  font-size: 0.82rem;
  color: var(--dash-muted, var(--muted));
}

.usage-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.usage-data-table th,
.usage-data-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(16, 28, 38, 0.06);
  text-align: left;
}

.usage-data-table th.num,
.usage-data-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.usage-data-table thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  background: rgba(16, 28, 38, 0.02);
}

.usage-data-table tbody tr:hover {
  background: rgba(16, 28, 38, 0.02);
}

.usage-model {
  font-size: 0.82rem;
  background: rgba(16, 28, 38, 0.05);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.usage-type {
  font-size: 0.8rem;
  font-weight: 600;
}

.usage-type--included { color: #0d9488; }
.usage-type--kredit { color: var(--text); }
.usage-type--gagal { color: var(--danger); }

.usage-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(16, 28, 38, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .usage-summary { grid-template-columns: 1fr; }
  .usage-head { flex-direction: column; }
  .spending-plan-row { grid-template-columns: 1fr; }
}

/* ——— Halaman Pengeluaran (spending) ——— */
.spending-page { min-width: 0; }

.spending-sub {
  margin: 0.35rem 0 1.25rem;
  color: var(--muted);
}

.spending-plan-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.spending-plan-card {
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 180px;
}

.spending-plan-card--upgrade {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.08), rgba(13, 148, 136, 0.06));
  border-color: rgba(67, 56, 202, 0.15);
}

.spending-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.spending-plan-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.spending-plan-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.spending-plan-note {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}

.spending-section {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.spending-section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.spending-buckets {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.spending-empty-note {
  margin: 0;
  color: var(--dash-muted, var(--muted));
  font-size: 0.92rem;
  line-height: 1.45;
}

.spending-bucket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.spending-bucket-head strong {
  display: block;
  font-size: 0.95rem;
}

.spending-bucket-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 52ch;
}

.spending-bucket-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  line-height: 1.35;
}

.spending-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 28, 38, 0.08);
  overflow: hidden;
}

.spending-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s var(--ease);
}

.spending-bar-fill--primary { background: #6b7c93; }
.spending-bar-fill--premium { background: #64748b; }
.spending-bar-fill--auto { background: #3a3a3a; }

.spending-bucket-foot {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.spending-bucket-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.spending-bucket-warn {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #991b1b;
}

/* ============================================================
   HOMEPAGE 2026 — modern polish (hero, stats, cards, pricing)
   ============================================================ */

/* --- Hero --- */
.hero-bleed {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  isolation: isolate;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 20% 100%, rgba(67, 56, 202, 0.55), transparent 65%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.25) 0%, rgba(10, 14, 26, 0.55) 70%, rgba(10, 14, 26, 0.72) 100%);
}

.hero-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 78% 22%, rgba(245, 158, 11, 0.35), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-bleed__media { position: absolute; inset: 0; z-index: 0; }

.hero-bleed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.09); }
}

.hero-bleed__content {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 6rem;
  color: #fff;
}

.hero-bleed__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin: 0 0 1.4rem;
}

.hero-bleed__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.hero-bleed__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin: 0 0 1.2rem;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-bleed__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.65;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-cta .btn {
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.hero-cta .btn:hover { transform: translateY(-2px); }

.hero-cta .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none;
  color: #fff;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.45);
}

.hero-cta .btn-primary:hover { box-shadow: 0 14px 38px rgba(249, 115, 22, 0.55); color: #fff; }

.hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* --- Stats strip --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -3.2rem auto 2rem;
  position: relative;
  z-index: 3;
  background: rgba(16, 28, 38, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px) saturate(1.5);
}

.stat-item {
  background: rgba(255, 255, 255, 0.78);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.3s;
}

.stat-item:hover { background: #fff; }

.stat-item .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-item .value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  background: linear-gradient(120deg, var(--indigo), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Alert --- */
.alert.alert-info {
  border: 1px solid rgba(13, 148, 136, 0.28);
  background: linear-gradient(120deg, rgba(13, 148, 136, 0.1), rgba(67, 56, 202, 0.08));
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

/* --- Section head --- */
.section { padding: 24px 0 !important; }

.section-head { max-width: 640px; margin-bottom: 2rem; }

.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(67, 56, 202, 0.1);
  border: 1px solid rgba(67, 56, 202, 0.18);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

.section-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0; }

/* --- Module rail --- */
.module-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.module-link {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.3rem 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  color: var(--ink);
}

.module-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(67, 56, 202, 0.35);
  color: var(--ink);
}

.module-link__num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--indigo);
  opacity: 0.85;
}

.module-link__title { font-weight: 700; margin: 0 0 0.25rem; font-size: 1rem; }
.module-link__desc { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* --- Use-case cards --- */
.usecase-grid--six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.usecase-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(16, 28, 38, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.usecase-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.usecase-card__media { overflow: hidden; aspect-ratio: 16 / 10; }

.usecase-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.usecase-card:hover .usecase-card__media img { transform: scale(1.06); }

.usecase-card__body { padding: 1.15rem 1.25rem 1.35rem; }

.usecase-card__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tone, var(--indigo));
  background: color-mix(in srgb, var(--tone, var(--indigo)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--tone, var(--indigo)) 22%, transparent);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.usecase-card__body p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

/* --- Showcase quote --- */
.showcase-card {
  margin: 0;
  padding: 2.6rem 2.8rem;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.4), transparent 50%),
    linear-gradient(135deg, #312e81, #4338ca 55%, #0d9488);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.showcase-card::before {
  content: "\201C";
  position: absolute;
  top: -1.6rem;
  left: 1.2rem;
  font-family: var(--font-display);
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.14);
  line-height: 1;
}

.showcase-card blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.showcase-card figcaption { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }

.showcase-card__prompt {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
}

.showcase-card__avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #312e81;
  background: linear-gradient(135deg, #fff, #fde68a);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  font-weight: 800;
}

.showcase-card__label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workflow-steps {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.4rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.workflow-steps span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}

.workflow-steps b {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  color: #312e81;
  background: #fff;
  font-size: 0.68rem;
}

.workflow-steps i { color: #fde68a; font-style: normal; }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 28, 38, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.price-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }

.price-card .price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price-card .price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--muted); }

.price-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.price-card ul li { position: relative; padding-left: 1.5rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }

.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 0.62rem no-repeat;
}

.price-card .btn { border-radius: 999px; font-weight: 600; text-align: center; }

.price-card.featured {
  position: relative;
  background: linear-gradient(160deg, #1e1b4b, #312e81 60%, #4338ca);
  color: #fff;
  border: none;
  box-shadow: 0 24px 60px rgba(49, 46, 129, 0.4);
  transform: scale(1.03);
}

.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }

.price-card.featured::before {
  content: none;
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
  white-space: nowrap;
}

.home-page .price-card.featured,
.home-page .price-card.featured h3,
.home-page .price-card.featured .price,
.home-page .price-card.featured .price small,
.home-page .price-card.featured ul li {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.home-page .price-card.featured ul li {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

.price-card.featured .price-card__badge {
  color: #422006;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.price-card.featured ul li::before {
  background-color: rgba(255, 255, 255, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.price-card.featured .btn-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none;
  color: #fff;
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.4);
}

/* --- CTA band --- */
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.6rem 2.8rem;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 12% 110%, rgba(20, 184, 166, 0.5), transparent 55%),
    radial-gradient(circle at 95% 0%, rgba(245, 158, 11, 0.4), transparent 50%),
    linear-gradient(120deg, #1e1b4b, #4338ca);
  box-shadow: var(--shadow-lg);
}

.cta-band__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}

.cta-band__inner p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 46ch; line-height: 1.6; }

.cta-band .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

.cta-band .btn-primary {
  background: #fff;
  color: var(--indigo-deep);
  border: none;
}

.cta-band .btn-primary:hover { color: var(--indigo); }

/* --- Reveal animation --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in,
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .usecase-grid--six { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .module-rail { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-bleed { min-height: 78vh; }
  .hero-bleed__content { padding: 4rem 0 5rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: -2.2rem; }
  .usecase-grid--six,
  .pricing-grid,
  .module-rail { grid-template-columns: 1fr; }
  .showcase-card,
  .cta-band__inner { padding: 1.8rem 1.5rem; }

  .showcase-card__prompt { grid-template-columns: 1fr; }
  .showcase-card__avatar { width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; }
  .workflow-steps { align-items: stretch; flex-direction: column; }
  .workflow-steps i { display: none; }
  .workflow-steps span { white-space: normal; }
}

