:root {
  --bg: #e9edf3;
  --panel: #eef2f7;
  --text: #1b2330;
  --muted: #6b7687;
  --shadow-dark: #c8d0db;
  --shadow-light: #ffffff;
  --accent: #5b8cff;
  --accent-2: #ff9a62;
  --success: #7ed6a5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #edf1f6 0%, #e5eaf1 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.soft-card {
  background: var(--panel);
  border-radius: 32px;
  box-shadow: 16px 16px 32px var(--shadow-dark), -16px -16px 32px var(--shadow-light);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  padding: 34px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: .98;
  margin: 10px 0 18px;
  letter-spacing: -0.06em;
}

.hero-copy p {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #58708e;
  background: rgba(255,255,255,.7);
  box-shadow: inset 3px 3px 6px #d8dee7, inset -3px -3px 6px #fff;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.soft-button {
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  box-shadow: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
  transition: transform .2s ease, box-shadow .2s ease;
}
.soft-button:hover { transform: translateY(-1px); }
.soft-button:active { box-shadow: inset 5px 5px 12px var(--shadow-dark), inset -5px -5px 12px var(--shadow-light); }
.soft-button.accent { color: white; background: linear-gradient(135deg, var(--accent), #7aa7ff); box-shadow: 10px 10px 18px #c5d1e7, -8px -8px 14px #fff; }

.hero-preview { display: flex; justify-content: center; }
.preview-stack {
  width: 100%;
  max-width: 480px;
  display: grid;
  gap: 22px;
}
.preview-card.small { padding: 24px; }
.preview-card h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.preview-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.preview-card.muted { opacity: .92; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-top.end { justify-content: flex-end; }

.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.pill.blue { background: rgba(91,140,255,.12); color: var(--accent); }

.demo-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 28px;
}
.panel { padding: 30px; }
.large-panel { min-height: 540px; }
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title-row h2, .metrics-panel h2 { margin: 10px 0 0; font-size: 2rem; }
.status-chip {
  padding: 10px 16px;
  border-radius: 999px;
  color: #3762d7;
  font-weight: 700;
  background: rgba(91,140,255,.08);
  box-shadow: inset 4px 4px 10px #d0d9e7, inset -4px -4px 10px #fff;
}

.segment-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255,255,255,.32);
  box-shadow: inset 8px 8px 18px #d6dde8, inset -8px -8px 18px #fff;
}
.segment {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-radius: 22px;
  color: #556171;
  font-weight: 700;
  box-shadow: 7px 7px 16px transparent, -7px -7px 16px transparent;
}
.segment.active {
  color: var(--accent);
  background: linear-gradient(145deg, #f6f8fb, #e7edf4);
  box-shadow: 8px 8px 18px #ccd5e0, -8px -8px 18px #fff;
}

.toggle-list {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}
.option-card {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.option-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.option-card h3 { margin: 0; font-size: 1.08rem; }
.option-card p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; max-width: 520px; }
.mini-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  background: #e1e8f3;
  color: #63748b;
}
.accent-badge { background: rgba(255,154,98,.15); color: #da6c2d; }

.right-column { display: grid; gap: 28px; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.feature-list span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7fb1ff);
  box-shadow: 0 0 0 5px rgba(91,140,255,.12);
}
.icon-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.icon-soft {
  aspect-ratio: 1;
  border-radius: 28px;
  display: grid;
  place-items: center;
  box-shadow: inset 8px 8px 16px #d2d9e4, inset -8px -8px 16px #fff;
}
.icon-soft.accent {
  background: linear-gradient(145deg, #f4ede8, #fff3e8);
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.switch input { display: none; }
.slider {
  width: 78px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f5f8fc, #dde5ef);
  box-shadow: inset 5px 5px 12px #c9d0db, inset -5px -5px 12px #fff;
  position: relative;
  transition: all .25s ease;
}
.knob {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 5px;
  left: 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #dce5ef);
  box-shadow: 4px 4px 10px #c7cfda, -4px -4px 10px #fff;
  transition: all .25s ease;
}
.switch input:checked + .slider .knob { left: 40px; }
.switch-orange .slider { background: linear-gradient(145deg, #ffe5d5, #ffd4b6); box-shadow: inset 5px 5px 10px #efbb96, inset -5px -5px 10px #fff2e7; }
.switch-orange .knob { background: linear-gradient(145deg, #fff1e6, #ffc58d); }

.sun-dots::before, .sun-dots::after, .moon-icon::before, .sun-line::before, .moon-line::before, .sliders-line::before, .spark::before {
  content: "";
  position: absolute;
}
.sun-dots::before {
  inset: 8px;
  border-radius: 50%;
  background: #ffd35f;
}
.sun-dots::after {
  width: 4px; height: 4px; border-radius: 50%; background: #fff4c4; top: 8px; right: 9px;
  box-shadow: -12px 10px 0 #fff4c4, -2px 14px 0 #fff4c4;
}
.moon-icon::before {
  width: 18px; height: 18px; border-radius: 50%; background: #fff7ea; top: 7px; left: 8px; box-shadow: 6px 0 0 2px #f39c53;
}
.seg-icon, .large, .spark { position: relative; display: inline-block; width: 20px; height: 20px; }
.large { width: 42px; height: 42px; }
.sun-line::before {
  inset: 4px; border-radius: 50%; border: 3px solid #7f8ea1;
}
.moon-line::before {
  width: 20px; height: 20px; border-radius: 50%; box-shadow: inset -6px 0 0 0 #7f8ea1; left: 2px; top: 0;
}
.sliders-line::before {
  inset: 2px;
  background: linear-gradient(#7f8ea1 0 0) left 4px top 5px/100% 3px no-repeat,
              linear-gradient(#7f8ea1 0 0) left 4px center/100% 3px no-repeat,
              linear-gradient(#7f8ea1 0 0) left 4px bottom 5px/100% 3px no-repeat;
}
.spark::before {
  width: 24px; height: 24px; left: 9px; top: 9px;
  background: radial-gradient(circle at center, #ffb36b 0 34%, transparent 36%),
              linear-gradient(#ffb36b 0 0) center/4px 24px no-repeat,
              linear-gradient(#ffb36b 0 0) center/24px 4px no-repeat;
  transform: rotate(45deg);
}

body.theme-dark {
  --bg: #1d2129;
  --panel: #252b35;
  --text: #eef2f6;
  --muted: #9ba7b8;
  --shadow-dark: #161a20;
  --shadow-light: #313947;
  background: linear-gradient(180deg, #1b2028 0%, #151922 100%);
}
body.theme-dark .eyebrow,
body.theme-dark .status-chip,
body.theme-dark .segment-wrap,
body.theme-dark .mini-badge { color: #b5c0d0; background: rgba(255,255,255,.03); }
body.theme-dark .segment.active { background: linear-gradient(145deg, #2b313d, #20252e); }
body.theme-dark .pill.blue { background: rgba(91,140,255,.18); }

@media (max-width: 980px) {
  .hero-card, .demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell { padding: 20px 14px 44px; }
  .hero-card, .panel { padding: 22px; border-radius: 24px; }
  .segment-wrap { grid-template-columns: 1fr; }
  .option-card { flex-direction: column; align-items: flex-start; }
}
