/* ═══════════════════════════════════════════════════════════
   IMREDI RETAIL — Corporate Brand Style
   Primary: #BC0A29 (Red), Font: Manrope
   ═══════════════════════════════════════════════════════════ */

/* ──── Design Tokens ──── */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius — Imredi uses generous pill/large radius */
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-2xl:  2rem;
  --radius-pill: 9999px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-default: 1120px;

  /* Fonts — Manrope is Imredi's corporate font */
  --font-display: 'Manrope', Arial, sans-serif;
  --font-body:    'Manrope', Arial, sans-serif;

  /* ── Imredi Brand Colors ── */
  --brand-red:        #BC0A29;
  --brand-red-hover:  #A00823;
  --brand-red-dark:   #8B0620;
  --brand-red-light:  rgba(188,10,41,0.08);
  --brand-red-mid:    rgba(188,10,41,0.15);
  --brand-green:      #2DAF6F;
  --brand-amber:      #E8A020;
  --brand-blue:       #2015FF;
}

/* ──── Light Mode (Imredi default) ──── */
:root, [data-theme="light"] {
  --color-bg:             #FFFFFF;
  --color-bg-alt:         #F6F7F8;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F6F7F8;
  --color-surface-3:      #EFEFEF;
  --color-border:         rgba(0,0,0,0.08);
  --color-divider:        rgba(0,0,0,0.06);
  --color-text:           #1E2122;
  --color-text-muted:     #595959;
  --color-text-faint:     #999999;
  --color-primary:        #BC0A29;
  --color-primary-hover:  #A00823;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-card: 0 2px 24px rgba(0,0,0,0.07);
}

/* ──── Dark Mode ──── */
[data-theme="dark"] {
  --color-bg:             #121212;
  --color-bg-alt:         #1A1A1A;
  --color-surface:        #1E2122;
  --color-surface-2:      #252829;
  --color-surface-3:      #2D3031;
  --color-border:         rgba(255,255,255,0.08);
  --color-divider:        rgba(255,255,255,0.05);
  --color-text:           #F0F0F0;
  --color-text-muted:     #A0A0A0;
  --color-text-faint:     #5A5A5A;
  --color-primary:        #E0193A;
  --color-primary-hover:  #BC0A29;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 24px rgba(0,0,0,0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #121212;
    --color-bg-alt:         #1A1A1A;
    --color-surface:        #1E2122;
    --color-surface-2:      #252829;
    --color-surface-3:      #2D3031;
    --color-border:         rgba(255,255,255,0.08);
    --color-divider:        rgba(255,255,255,0.05);
    --color-text:           #F0F0F0;
    --color-text-muted:     #A0A0A0;
    --color-text-faint:     #5A5A5A;
    --color-primary:        #E0193A;
    --color-primary-hover:  #BC0A29;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-card: 0 2px 24px rgba(0,0,0,0.35);
  }
}

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

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

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 {
  text-wrap: balance;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
}
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }

a, button { transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition); }

::selection { background: rgba(188,10,41,0.15); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ──── Layout ──── */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__head {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-block: var(--space-4) var(--space-5);
  letter-spacing: -0.02em;
}

.section__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ──── Pill / Badge ──── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  background: var(--brand-red-light);
  color: var(--brand-red);
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-red-mid);
}

.pill--outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
}

.pill--light {
  background: rgba(45,175,111,0.1);
  color: #1A8A50;
  border-color: rgba(45,175,111,0.2);
}

[data-theme="dark"] .pill--light {
  color: #2DAF6F;
}

.pill__dot {
  width: 7px;
  height: 7px;
  background: var(--brand-green);
  border-radius: var(--radius-pill);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px var(--space-3);
  border-radius: var(--radius-pill);
}

.badge--amber {
  background: rgba(232,160,32,0.12);
  color: #C07000;
  border: 1px solid rgba(232,160,32,0.25);
}

[data-theme="dark"] .badge--amber { color: #E8A020; }

.badge--green {
  background: rgba(45,175,111,0.12);
  color: #1A8A50;
  border: 1px solid rgba(45,175,111,0.25);
}

[data-theme="dark"] .badge--green { color: #2DAF6F; }

/* ──── Buttons — pill shape like Imredi ──── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-7, 1.75rem);
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
}

.btn--primary:hover {
  background: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(188,10,41,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  color: var(--color-text);
  border-color: rgba(0,0,0,0.2);
  background: var(--color-surface-2);
}

[data-theme="dark"] .btn--ghost:hover {
  border-color: rgba(255,255,255,0.15);
  background: var(--color-surface-2);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-10, 2.5rem);
}

.btn--full { width: 100%; }

/* ──── Navigation ──── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-4);
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

/* Imredi wordmark style */
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: auto;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}

.nav__links a:hover { color: var(--color-text); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}

.nav__theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
}

.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ──── Hero ──── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  background: var(--color-bg);
}

/* Red accent stripe — Imredi style */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-red);
}

.hero__bg-glow {
  position: absolute;
  top: -20%;
  right: -5%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(188,10,41,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__headline {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--color-text);
}

/* Red underline accent on key word — Imredi style */
.hero__headline--accent {
  color: var(--brand-red);
  position: relative;
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card__icon {
  color: var(--brand-red);
  display: flex;
}

.stat-card__num {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.stat-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Hero Visual / Mockup */
.hero__visual {
  position: relative;
}

.mockup-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Red top border on mockup card */
.mockup-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--brand-red);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.mockup-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
}

.mockup-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.mockup-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  gap: var(--space-1);
}

.mockup-kpi__label {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.mockup-kpi__val {
  font-size: var(--text-lg);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.mockup-stores {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-store {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.mockup-store:hover { background: var(--color-surface-3); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.dot--green { background: #2DAF6F; }
.dot--amber { background: #E8A020; }
.dot--red   { background: #BC0A29; }

.mockup-store__name {
  font-size: var(--text-xs);
  flex: 1;
  font-weight: 500;
}

.mockup-store__score {
  font-size: var(--text-xs);
  font-weight: 700;
}

.mockup-alert {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(232,160,32,0.07);
  border: 1px solid rgba(232,160,32,0.2);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  color: #C07000;
  font-weight: 600;
}

[data-theme="dark"] .mockup-alert { color: #E8A020; }

.mockup-tasks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-task {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Hero floating badges */
.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.hero__badge--revenue {
  bottom: -16px;
  right: -16px;
}

.hero__badge--task {
  top: -16px;
  left: -16px;
}

/* ──── Problems section ──── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.problem-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

/* Red left border accent */
.problem-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-red);
  opacity: 0;
  transition: opacity var(--transition);
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.problem-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  color: var(--brand-red);
  background: var(--brand-red-light);
}

.problem-card h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
}

.problem-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.crisis-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1.5px solid var(--brand-red-mid);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}

.crisis-banner__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-light);
  border-radius: var(--radius-xl);
  color: var(--brand-red);
}

.crisis-banner strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.crisis-banner p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 720px;
  line-height: 1.65;
}

/* ──── Features ──── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-bottom: 1px solid var(--color-divider);
}

.feature-block:last-child { border-bottom: none; }

.feature-block--reverse .feature-block__content { order: 2; }
.feature-block--reverse .feature-block__visual   { order: 1; }

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
  margin-bottom: var(--space-4);
}

.feature-block__title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.feature-block__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Imredi uses diagonal arrow icons for lists */
.feature-list li svg { flex-shrink: 0; margin-top: 2px; }

.feature-result {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--brand-red-light);
  border: 1px solid var(--brand-red-mid);
  border-radius: var(--radius-xl);
}

.feature-result__num {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--brand-red);
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.feature-result__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  font-weight: 500;
}

/* ──── UI Cards (Feature Visuals) ──── */
.ui-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Red top stripe */
.ui-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--brand-red);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.ui-card__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-bar-label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.ui-bar-delta { font-size: var(--text-xs); font-weight: 700; }
.ui-bar-delta--up { color: #1A8A50; }

[data-theme="dark"] .ui-bar-delta--up { color: #2DAF6F; }

.ui-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 80px;
}

.ui-chart-bar {
  flex: 1;
  height: var(--h);
  background: rgba(188,10,41,0.15);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  transition: background var(--transition);
}

.ui-chart-bar:hover { background: rgba(188,10,41,0.3); }

.ui-chart-bar--highlight {
  background: var(--brand-red);
}

.ui-chart-bar span {
  font-size: 9px;
  color: var(--color-text-faint);
  position: absolute;
  bottom: -18px;
  font-weight: 600;
}

.ui-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
}

.ui-metric { display: flex; flex-direction: column; gap: 2px; }

.ui-metric__val {
  font-size: var(--text-base);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.ui-metric__label {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.ui-section-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.ui-category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
}

.ui-category-row--warn { background: rgba(232,160,32,0.06); }

.ui-shelf-items { display: flex; flex-direction: column; gap: var(--space-3); }

.ui-shelf-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.ui-shelf-item__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.ui-shelf-item__icon--red    { background: rgba(188,10,41,0.1); color: var(--brand-red); }
.ui-shelf-item__icon--amber  { background: rgba(232,160,32,0.1); color: #C07000; }
.ui-shelf-item__icon--purple { background: rgba(188,10,41,0.08); color: var(--brand-red); }

[data-theme="dark"] .ui-shelf-item__icon--amber { color: #E8A020; }

.ui-shelf-item__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ui-shelf-item__info span { font-size: var(--text-xs); font-weight: 600; }
.ui-shelf-item__info small { font-size: 10px; color: var(--color-text-muted); }

.ui-shelf-item__action {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-red);
}

.ui-shelf-stat {
  padding: var(--space-4);
  background: rgba(188,10,41,0.05);
  border: 1px solid var(--brand-red-mid);
  border-radius: var(--radius-lg);
}

.ui-stat-big {
  display: block;
  font-size: var(--text-lg);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-red);
  letter-spacing: -0.02em;
}

.ui-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* Checklist UI */
.ui-checklist { display: flex; flex-direction: column; gap: var(--space-2); }

.ui-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
}

.ui-check--done { color: var(--color-text); }
.ui-check--pending { color: var(--color-text-muted); }

.ui-remote-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--brand-red);
  padding: var(--space-2) var(--space-3);
  background: var(--brand-red-light);
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* Staff UI */
.ui-staff-list { display: flex; flex-direction: column; gap: var(--space-2); }

.ui-staff-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.ui-staff-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--brand-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.ui-staff-avatar--missing {
  background: rgba(188,10,41,0.1);
  color: var(--brand-red);
}

.ui-staff-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ui-staff-info span { font-size: var(--text-xs); font-weight: 600; }
.ui-staff-info small { font-size: 10px; color: var(--color-text-muted); }

.ui-staff-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.ui-staff-status--on      { background: rgba(45,175,111,0.1); color: #1A8A50; }
.ui-staff-status--late    { background: rgba(232,160,32,0.1); color: #C07000; }
.ui-staff-status--missing { background: rgba(188,10,41,0.1); color: var(--brand-red); }

[data-theme="dark"] .ui-staff-status--on   { color: #2DAF6F; }
[data-theme="dark"] .ui-staff-status--late { color: #E8A020; }

.ui-btn-hire {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3);
  background: var(--brand-red-light);
  border: 1.5px solid var(--brand-red-mid);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-red);
  cursor: pointer;
  transition: background var(--transition);
}

.ui-btn-hire:hover { background: var(--brand-red-mid); }

/* ──── Results ──── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-12), 6vw, var(--space-20));
}

.result-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.result-card--big {
  grid-column: span 3;
  background: var(--brand-red-light);
  border-color: var(--brand-red-mid);
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-8);
}

.result-card--accent {
  background: rgba(45,175,111,0.05);
  border-color: rgba(45,175,111,0.2);
}

.result-card__num {
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand-red);
  font-family: var(--font-display);
  line-height: 1;
}

.result-card--big .result-card__num {
  font-size: clamp(3rem, 6vw, 5rem);
  white-space: nowrap;
}

.result-card__title {
  font-size: var(--text-base);
  font-weight: 700;
}

.result-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.result-card__icon {
  color: #1A8A50;
}

[data-theme="dark"] .result-card__icon { color: #2DAF6F; }

/* Timeline */
.timeline {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  box-shadow: var(--shadow-card);
}

.timeline__head {
  margin-bottom: var(--space-10);
  text-align: center;
}

.timeline__head h3 {
  font-size: var(--text-xl);
  font-weight: 800;
}

.timeline__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.timeline__steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-red), rgba(188,10,41,0.2));
}

.timeline__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.timeline__step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red);
  color: white;
  font-size: var(--text-base);
  font-weight: 800;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline__step-content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.timeline__step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ──── Persona ──── */
.persona-block {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}

.persona-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
}

.persona-card__avatar {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-light);
  border-radius: var(--radius-pill);
  border: 2px solid var(--brand-red-mid);
  color: var(--brand-red);
}

.persona-card__name {
  font-size: var(--text-base);
  font-weight: 700;
}

.persona-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.65;
}

.persona-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.tag {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px var(--space-3);
  background: var(--brand-red-light);
  color: var(--brand-red);
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-red-mid);
}

.persona-text {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-4);
  margin-top: var(--space-4);
}

.persona-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.persona-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-base);
  line-height: 1.5;
}

.persona-list__marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red-light);
  color: var(--brand-red);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 800;
  margin-top: 2px;
}

.persona-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--brand-red-light);
  border: 1px solid var(--brand-red-mid);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.persona-note svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-red); }

/* ──── Demo / Form ──── */
.demo-section {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.demo-section__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(188,10,41,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.demo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: flex-start;
}

.demo-block__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-block: var(--space-4) var(--space-5);
}

.demo-block__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.demo-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.demo-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Form */
.demo-block__form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.form__input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  font-weight: 500;
}

.form__input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(188,10,41,0.1);
}

.form__input::placeholder { color: var(--color-text-faint); }

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__legal {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  font-weight: 500;
}

.form__legal a { color: var(--brand-red); text-decoration: underline; }

.form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-10) var(--space-6);
}

.form__success h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.form__success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ──── Footer ──── */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
  background: var(--color-bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer__links { display: flex; gap: var(--space-6); }

.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--color-text-muted); }

/* ──── Scroll Animations ──── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ──── Responsive ──── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .result-card--big { grid-column: span 2; }
  .persona-block { grid-template-columns: 1fr; }
  .demo-block { grid-template-columns: 1fr; }
  .feature-block { grid-template-columns: 1fr; }
  .feature-block--reverse .feature-block__content { order: 0; }
  .feature-block--reverse .feature-block__visual   { order: 0; }
  .timeline__steps { grid-template-columns: 1fr; }
  .timeline__steps::before { display: none; }
  .timeline__step { flex-direction: row; text-align: left; align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .nav__links.nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6);
    gap: var(--space-4);
    z-index: 99;
  }

  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .problems-grid { grid-template-columns: 1fr; }

  .results-grid { grid-template-columns: 1fr; }
  .result-card--big {
    grid-column: span 1;
    flex-direction: column;
  }

  .crisis-banner {
    flex-direction: column;
    gap: var(--space-4);
  }

  .hero__badge { display: none; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
