:root,
:root[data-theme="light"] {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-soft: #edf5ff;
  --foreground: #0a1833;
  --muted: #61718e;
  --border: #d8e3f2;
  --header: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 55px rgba(29, 60, 108, 0.12);
  --primary: #087cfa;
  --primary-strong: #006ce0;
  --primary-foreground: #ffffff;
  --red: #f52b62;
  --violet: #7658f6;
  --success: #06885f;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #05070c;
  --surface: #10141d;
  --surface-soft: #181e2a;
  --foreground: #f5f7fb;
  --muted: #a8b2c5;
  --border: #293246;
  --header: rgba(5, 7, 12, 0.9);
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.4);
  --primary: #2b95ff;
  --primary-strong: #53a8ff;
  --primary-foreground: #041020;
  --red: #ff3d72;
  --violet: #947cff;
  --success: #48d6a3;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: "Century Gothic", "Avenir Next", Arial, sans-serif;
  line-height: 1.55;
  transition: background 180ms ease, color 180ms ease;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { width: 1.05rem; height: 1.05rem; stroke-width: 1.8; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 0.75rem;
}
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
  padding: 0.75rem max(1.25rem, calc((100% - 1180px) / 2));
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.brand-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--primary); }
nav { display: flex; justify-content: center; gap: 1.25rem; }
nav a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
nav a:hover { color: var(--foreground); }
.theme-switcher { display: flex; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.icon-button:hover { color: var(--primary); border-color: var(--primary); }

.section-shell { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 5.5rem 0; }
section[id] { scroll-margin-top: 7rem; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 4rem; min-height: 38rem; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -0.06em; }
.hero-text { max-width: 700px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.1rem; }
.eyebrow { margin: 0 0 0.65rem; color: var(--red); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.button-primary { color: var(--primary-foreground); background: var(--primary); border-color: var(--primary); }
.button-primary:hover { background: var(--primary-strong); }
.button-secondary { background: var(--surface); }
.button-block { width: 100%; }
.hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), var(--surface));
  border: 1px solid var(--border);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}
.hero-visual::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(125deg, var(--primary), var(--red), var(--violet)); opacity: 0.18; z-index: -1; }
.hero-visual span { display: flex; align-items: center; gap: 0.8rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; }

.section-heading { max-width: 780px; margin-bottom: 2rem; }
.section-heading h2, .panel-heading h3, .summary-panel h3 { margin: 0; letter-spacing: -0.045em; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.section-heading p:last-child { color: var(--muted); }
.family-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
.family-tab, .variant-button {
  min-height: 3.25rem;
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  cursor: pointer;
}
.family-tab { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.75rem; }
.family-tab[aria-selected="true"], .variant-button[aria-pressed="true"] { color: var(--primary-foreground); background: var(--primary); border-color: var(--primary); }
.variant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.variant-button { display: grid; gap: 0.25rem; padding: 1rem; text-align: left; }
.variant-button strong { font-size: 1.05rem; }
.variant-button span { opacity: 0.78; font-size: 0.82rem; }
.variant-button b { margin-top: 0.3rem; color: var(--primary); font-size: 1.05rem; }
.variant-button[aria-pressed="true"] b { color: inherit; }
.resource-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.resource-config {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.resource-config h3, .resource-config p { margin: 0; }
.resource-config .eyebrow { margin-bottom: 0.25rem; }
.resource-config #number-limit, .resource-config #agent-limit { color: var(--muted); font-size: 0.82rem; }
.quantity-stepper { display: grid; grid-template-columns: 2.75rem 3.5rem 2.75rem; align-items: center; gap: 0.4rem; }
.quantity-stepper button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--foreground);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  cursor: pointer;
}
.quantity-stepper button:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.quantity-stepper button:disabled { cursor: not-allowed; opacity: 0.35; }
.quantity-stepper output { text-align: center; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pricing-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr); gap: 1rem; margin-top: 1.25rem; align-items: start; }
.breakdown-panel, .summary-panel, .product-card, .faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}
.breakdown-panel, .summary-panel { padding: 1.4rem; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.status-pill { padding: 0.45rem 0.7rem; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border-radius: 999px; font-size: 0.78rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.9rem 0.65rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; }
td:nth-child(3), td:nth-child(4), th:nth-child(3), th:nth-child(4) { text-align: right; }
.line-main { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.line-main svg { color: var(--primary); }
.calculation-stack { display: grid; gap: 0.25rem; }
.daily-indicator { width: max-content; padding: 0.2rem 0.45rem; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border-radius: 999px; font-size: 0.7rem; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; }
tfoot tr:last-child td { color: var(--success); border-bottom: 0; }
.calculation-note, .summary-note { color: var(--muted); font-size: 0.78rem; }
.summary-panel { position: sticky; top: 5.6rem; }
.summary-panel dl { display: grid; gap: 0.7rem; margin: 1.5rem 0; }
.summary-panel dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--border); }
.summary-panel dt { color: var(--muted); }
.summary-panel dd { margin: 0; text-align: right; font-weight: 700; }
.total-box { display: grid; gap: 0.25rem; margin: 1.25rem 0; padding: 1rem; background: var(--surface-soft); border-radius: 1rem; }
.total-box strong { color: var(--primary); font-size: 2rem; letter-spacing: -0.04em; }
.total-box small { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product-card { display: grid; align-content: start; gap: 0.75rem; padding: 1.25rem; }
.product-card .product-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: var(--primary); background: var(--surface-soft); border-radius: 0.8rem; }
.product-card h3, .product-card p { margin: 0; }
.product-card p { color: var(--muted); }
.product-card strong { color: var(--foreground); }
.badge { width: max-content; padding: 0.35rem 0.6rem; color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-radius: 999px; font-size: 0.72rem; }
.development-grid .badge { color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, var(--surface)); }
.faq-list { display: grid; gap: 0.75rem; }
.faq details { padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-bottom: 0; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem max(1.25rem, calc((100% - 1180px) / 2)); color: var(--muted); border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
