::selection { background: color-mix(in srgb, var(--brand-500) 20%, transparent); }
html { scroll-behavior: smooth; }
.page-wrapper { overflow-x: hidden; width: 100%; max-width: 100vw; }
.site-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.section-title {
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.28rem);
  line-height: 1.62;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.card-copy {
  font-size: 0.98rem;
  line-height: 1.68;
}
.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-bg {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
}

/* Hero — Linear-style aurora on Mercury cream palette */
.hero-bg {
  background:
    radial-gradient(60% 70% at 50% -10%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(45% 55% at 85% 15%, rgba(251, 191, 36, 0.14), transparent 60%),
    radial-gradient(40% 55% at 12% 35%, rgba(249, 115, 22, 0.10), transparent 65%),
    linear-gradient(to bottom, #FBF8F1 0%, #F5EFE2 70%, #FBF8F1 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14, 22, 35, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 22, 35, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
}
.hero-card-glow {
  position: relative;
}
.hero-card-glow::before {
  content: '';
  position: absolute;
  inset: -8% -10% -16% -10%;
  background: radial-gradient(60% 50% at 50% 40%, rgba(249, 115, 22, 0.28), transparent 70%);
  filter: blur(48px);
  z-index: -1;
  pointer-events: none;
}
.hero-headline-grad {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 60%, #c2410c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-copy {
  font-size: clamp(1.1rem, 1.35vw, 1.34rem);
  line-height: 1.64;
}

.feature-card { transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.problem-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 96px);
}
.problem-section,
.problem-section * {
  box-sizing: border-box;
}
.problem-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.08), transparent),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 22%);
}
.problem-kicker {
  max-width: 100%;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.22);
  line-height: 1.35;
  white-space: normal;
}
.problem-headline {
  max-width: 15ch;
  color: #ffffff;
  font-size: clamp(2.8rem, 4.1vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.problem-headline-accent {
  display: inline;
  color: #fdba74;
}
.problem-header-copy {
  max-width: 40ch;
  margin-top: 24px;
  font-size: clamp(1.08rem, 1.3vw, 1.35rem);
  line-height: 1.6;
}
.problem-board {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(8, 13, 24, 0.96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}
.problem-board-header,
.problem-insight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}
.problem-board-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.025);
}
.problem-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  min-width: 0;
  min-height: 220px;
  padding: 32px 30px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  transition: background 0.2s ease, transform 0.2s ease;
}
.problem-item > div {
  min-width: 0;
}
.problem-item:nth-child(odd) {
  border-right: 1px solid rgba(148, 163, 184, 0.13);
}
.problem-item:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}
.problem-index {
  color: #fb923c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding-top: 6px;
}
.problem-item h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.25;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.problem-item p {
  color: #a8b3c7;
  font-size: 0.98rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.problem-item span {
  display: inline-block;
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.problem-insight {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.11), rgba(255, 255, 255, 0.025));
}
.problem-insight p {
  max-width: 660px;
}
@media (max-width: 1023px) {
  .problem-item:nth-child(odd) { border-right: 0; }
  .problem-headline {
    max-width: 100%;
  }
  .problem-header-copy {
    max-width: 36ch;
  }
}
@media (max-width: 640px) {
  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
    line-height: 1.08;
  }
  .section-lead {
    font-size: 1rem;
    line-height: 1.6;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .card-copy {
    font-size: 0.94rem;
    line-height: 1.6;
  }
  .hero-title {
    font-size: clamp(2.6rem, 11vw, 4rem);
    line-height: 0.98;
  }
  .hero-copy {
    font-size: 1.02rem;
    line-height: 1.58;
  }
  .problem-section > .relative {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
  .problem-board { border-radius: 22px; }
  .problem-section h2,
  .problem-section > .relative > div > p {
    max-width: calc(100vw - 40px);
  }
  .problem-headline {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1.02;
  }
  .problem-header-copy {
    max-width: calc(100vw - 40px);
    margin-top: 18px;
    font-size: 1.08rem;
    line-height: 1.55;
  }
  .problem-board-header,
  .problem-insight {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .problem-board-header > div,
  .problem-item > div,
  .problem-insight p {
    max-width: calc(100vw - 84px);
  }
  .problem-item {
    display: block;
    gap: 12px;
    min-height: auto;
    padding: 24px 22px;
  }
  .problem-item h3 { font-size: 1.08rem; }
  .problem-item p { font-size: 0.94rem; }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.input-field {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 10%, transparent);
}
.toast {
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes pulse-border {
  0%, 100% { border-color: color-mix(in srgb, var(--brand-500) 30%, transparent); }
  50% { border-color: color-mix(in srgb, var(--brand-500) 60%, transparent); }
}
/* Dashboard demo animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.demo-float {
  animation: float 3s ease-in-out infinite;
}
.demo-float-delayed {
  animation: float-delayed 3.5s ease-in-out 0.5s infinite;
}
.demo-bar {
  transform-origin: bottom;
  animation: barGrow 1s ease-out forwards;
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.demo-progress {
  transition: width 1.2s ease-out;
}
details[open] .details-chevron { transform: rotate(180deg); }
.details-chevron { transition: transform 0.2s ease; }
details summary::-webkit-details-marker { display: none; }
