
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-soft: #edf2f8;
  --text: #0e1b44;
  --muted: #68748f;
  --line: #d9e2ee;
  --primary: #19599b;
  --primary-dark: #12497f;
  --danger: #d33a2c;
  --success: #14a37f;
  --shadow: 0 20px 60px rgba(15, 31, 69, 0.08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.narrow-container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.compact { position: static; }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.brand-logo { height: 56px; width: auto; object-fit: contain; object-position: left center; }
.main-nav { display: flex; gap: 28px; font-weight: 600; color: var(--muted); }
.main-nav a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 14px; }
.menu-toggle, .mobile-menu { display: none; }
.section { padding: 88px 0; }
.section-soft { padding: 56px 0 40px; background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.98), #edf2f8 45%, #e6edf5 100%); }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(237,242,248,0.45)); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: #dfe9f6; color: var(--primary-dark); font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
h1 { font-size: clamp(48px, 6.5vw, 86px); line-height: .96; margin: 22px 0 22px; letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.04; margin: 14px 0 18px; letter-spacing: -0.04em; }
h3 { font-size: 28px; line-height: 1.12; margin: 0 0 14px; }
p { color: var(--muted); line-height: 1.7; font-size: 18px; margin: 0; }
.lead { font-size: 20px; max-width: 720px; }
.hero-actions, .button-row, .contact-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-tags, .value-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { margin-top: 24px; }
.hero-tags span, .value-strip div { background: rgba(255,255,255,0.78); border: 1px solid var(--line); border-radius: 999px; padding: 14px 20px; color: #536079; font-weight: 600; }
.value-strip { margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 800; font-size: 18px; transition: .2s ease; border: 1px solid transparent; }
.btn.full { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.78); border-color: var(--line); color: var(--primary-dark); }
.hero-card, .feature-card, .module-card, .price-card, .contact-card, .table-card, .demo-main, .demo-sidebar {
  background: rgba(255,255,255,0.82); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.hero-card { padding: 22px; display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 18px; }
.window-bar { grid-column: 1 / -1; height: 12px; width: 140px; border-radius: 999px; background: #c6d3e2; margin: 6px 0 8px 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.metric-card { background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 24px; padding: 22px; min-height: 120px; }
.metric-card small { display: block; color: var(--muted); margin-bottom: 10px; font-size: 16px; }
.metric-card strong { font-size: 28px; }
.metric-card.danger strong, .danger-text { color: var(--danger); }
.success-text { color: var(--success); }
.panel { background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.panel.wide { grid-column: 1 / 2; }
.panel.narrow { grid-column: 2 / 3; }
.panel-head, .table-head { display: grid; gap: 14px; padding: 6px 0 14px; border-bottom: 1px solid var(--line); color: #5f6d88; font-weight: 700; }
.panel-head { grid-template-columns: 1fr auto; }
.panel-row, .table-row { display: grid; gap: 14px; padding: 16px 0; border-bottom: 1px solid #edf2f8; align-items: center; }
.panel-row { grid-template-columns: 1fr auto; }
.stack-list { display: grid; gap: 14px; padding-top: 10px; font-weight: 700; color: #56637d; }
.section-intro { max-width: 860px; margin-bottom: 32px; }
.feature-grid, .module-grid, .pricing-grid, .swatch-grid { display: grid; gap: 24px; }
.feature-grid, .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card, .module-card, .price-card { padding: 28px; }
.price-card { position: relative; }
.price-card.recommended { border-color: #b4cae5; transform: translateY(-8px); }
.pill { position: absolute; top: 18px; right: 18px; background: #e4eff9; color: var(--primary-dark); padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.price { font-size: 34px; font-weight: 800; margin: 10px 0 20px; color: var(--primary-dark); }
.price span { font-size: 16px; color: var(--muted); font-weight: 700; }
.price-card ul, .prose ul { color: var(--muted); line-height: 1.9; font-size: 18px; padding-left: 20px; margin: 12px 0 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 32px; align-items: start; }
.contact-card { padding: 28px; display: grid; gap: 18px; }
label { display: grid; gap: 10px; font-weight: 700; font-size: 16px; }
input, textarea { width: 100%; border: 1px solid #cad7e6; border-radius: 20px; background: #edf2fb; min-height: 58px; padding: 16px 18px; font: inherit; color: var(--text); }
textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 14px; }
.site-footer { padding: 40px 0; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 14px; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 10px; }
.footer-logo { height: 54px; width: auto; object-fit: contain; object-position: left center; margin-bottom: 16px; }
.prose { max-width: none; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; }
.swatch { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.swatch div { height: 86px; border-radius: 18px; margin-bottom: 14px; border: 1px solid rgba(0,0,0,0.05); }
.swatch strong, .swatch span { display: block; }
.design-hero { margin-bottom: 34px; }
.type-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.type-sample { display: grid; gap: 16px; }
.type-sample .sample-h1 { font-size: clamp(38px, 4vw, 62px); line-height: 1.02; font-weight: 800; color: var(--text); }
.type-sample .sample-h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; font-weight: 800; color: var(--text); }
.type-sample .sample-body { font-size: 18px; line-height: 1.7; color: var(--muted); }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rule-list li { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--text); font-weight: 600; }
.app-bg { background: #eaf0f7; }
.demo-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; gap: 22px; padding: 22px; }
.demo-sidebar { padding: 22px; position: sticky; top: 22px; height: calc(100vh - 44px); }
.demo-logo { height: 52px; width: auto; object-fit: contain; object-position: left center; margin-bottom: 24px; }
.demo-tab { width: 100%; border: 0; background: transparent; border-radius: 18px; text-align: left; padding: 16px 18px; font: inherit; font-weight: 700; color: #5e6c87; cursor: pointer; }
.demo-tab.active { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.demo-main { padding: 28px; }
.demo-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.demo-topbar h1 { font-size: 42px; margin: 12px 0 0; }
.demo-badge { background: #e4eff9; color: var(--primary-dark); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.table-card { padding: 22px; }
.table-head.three, .table-row.three { grid-template-columns: 1.2fr 1fr auto; }
.table-head.four, .table-row.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) {
  .hero-grid, .contact-grid, .footer-grid, .feature-grid, .module-grid, .pricing-grid, .two-col, .swatch-grid, .type-grid, .rule-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { grid-template-columns: 1fr; }
  .panel.narrow, .panel.wide { grid-column: auto; }
  .price-card.recommended { transform: none; }
}
@media (max-width: 860px) {
  .container, .narrow-container { width: min(100% - 28px, 1280px); }
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 24px; }
  .mobile-menu { display: none; padding: 0 14px 18px; }
  .mobile-menu.open { display: grid; gap: 14px; }
  .mobile-menu a, .mobile-menu .theme-toggle { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .hero-grid, .contact-grid, .feature-grid, .module-grid, .pricing-grid, .footer-grid, .two-col, .swatch-grid, .demo-shell, .type-grid, .rule-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(42px, 11vw, 62px); }
  h2 { font-size: clamp(30px, 9vw, 42px); }
  .value-strip div, .hero-tags span { width: 100%; }
  .brand-logo { height: 46px; max-width: 250px; }
  .demo-shell { padding: 14px; }
  .demo-sidebar { position: static; height: auto; }
  .demo-topbar { flex-direction: column; }
  .btn { width: 100%; }
}


[data-theme="dark"] {
  --bg: #0c1424;
  --surface: #111b2e;
  --surface-soft: #152136;
  --text: #f3f7ff;
  --muted: #9fb0cb;
  --line: #253553;
  --primary: #3b82d0;
  --primary-dark: #245a96;
  --danger: #ff6b57;
  --success: #2cc59a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
[data-theme="dark"] body,
body[data-theme="dark"] { background: var(--bg); }
[data-theme="dark"] .site-header { background: rgba(12,20,36,0.9); }
[data-theme="dark"] .site-footer { background: #0f182a; }
[data-theme="dark"] .section-soft { background: radial-gradient(circle at 50% 20%, rgba(24,35,58,0.98), #111b2e 45%, #0d1628 100%); }
[data-theme="dark"] .section-alt { background: linear-gradient(180deg, rgba(18,27,46,0.75), rgba(12,20,36,0.92)); }
[data-theme="dark"] .hero-tags span,
[data-theme="dark"] .value-strip div,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .panel,
[data-theme="dark"] .swatch,
[data-theme="dark"] .rule-list li,
[data-theme="dark"] .mobile-menu a,
[data-theme="dark"] .demo-badge { background: rgba(17,27,46,0.9); }
[data-theme="dark"] .hero-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .module-card,
[data-theme="dark"] .price-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .table-card,
[data-theme="dark"] .demo-main,
[data-theme="dark"] .demo-sidebar,
[data-theme="dark"] .swatch,
[data-theme="dark"] .rule-list li,
[data-theme="dark"] .site-header.compact { background: rgba(12,20,36,0.9); }
[data-theme="dark"] input,
[data-theme="dark"] textarea { background: #0f182a; border-color: var(--line); color: var(--text); }
[data-theme="dark"] .menu-toggle,
[data-theme="dark"] .theme-toggle { background: #111b2e; color: var(--text); }
.theme-toggle {
  min-width: 52px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle.compact { min-width: 44px; min-height: 44px; padding: 0 12px; font-size: 14px; }
.mobile-menu .theme-toggle { width: 100%; justify-content: center; display: inline-flex; align-items: center; }
