/* Landing refresh: Nexo's SaaS blue palette, readable type, and restrained motion. */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #f8fafc;
  --green: #1e40af;
  --green-dark: #1d4ed8;
  --pale: #eff6ff;
  --white: #ffffff;
  --gold: #f59e0b;
  --landing-cyan: #0ea5e9;
  --landing-teal: #14b8a6;
  --landing-success: #22c55e;
  --landing-error: #ef4444;
  --landing-shadow: 0 18px 48px rgba(30, 64, 175, .09);
}

html { scroll-padding-top: 84px; }
body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 94% 10%, rgba(14, 165, 233, .08), transparent 29rem),
    var(--canvas);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.site-header {
  height: 76px;
  padding-inline: clamp(20px, 5.5vw, 84px);
  border-color: rgba(226, 232, 240, .85);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .035);
}
.brand { color: #0f172a; font-size: 25px; letter-spacing: -.055em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: #1e40af; box-shadow: 0 6px 16px rgba(30, 64, 175, .2); }
.brand-dot { color: #0ea5e9; }
.site-header nav { gap: clamp(15px, 2.05vw, 29px); color: #475569; font-size: 13px; }
.site-header nav a:not(.button):hover,.site-footer nav a:hover { color: #1e40af; }
.signin { border-color: #e2e8f0; }
.theme-toggle,.menu-toggle { color: #1e40af; border-color: #dbe5f2; background: #fff; }
.button { min-height: 46px; padding-inline: 19px; border-radius: 11px; font-size: 13px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.button-dark { background: #1e40af; box-shadow: 0 8px 18px rgba(30, 64, 175, .18); }
.button-dark:hover { background: #1d4ed8; box-shadow: 0 11px 25px rgba(30, 64, 175, .23); }
.button-light { border-color: #dbe5f2; color: #1e40af; }
.text-link { color: #1e40af; font-size: 13px; }
.button:focus-visible,.theme-toggle:focus-visible,.menu-toggle:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline: 3px solid rgba(14, 165, 233, .45); outline-offset: 3px; }

.hero {
  position: relative;
  max-width: 1530px;
  min-height: min(690px, calc(100svh - 76px));
  padding: clamp(72px, 8vw, 116px) clamp(22px, 6vw, 92px) clamp(66px, 8vw, 108px);
  grid-template-columns: minmax(0, .93fr) minmax(430px, 1.07fr);
  gap: clamp(40px, 7vw, 104px);
}
.hero::before { content: ''; position: absolute; z-index: -1; width: 32vw; max-width: 450px; aspect-ratio: 1; top: 10%; right: -1%; border-radius: 50%; background: radial-gradient(circle, rgba(14, 165, 233, .095), transparent 70%); pointer-events: none; }
.eyebrow,.section-kicker { color: #1e40af; font-size: 11px; letter-spacing: .12em; }
.eyebrow span { width: 8px; height: 8px; background: #14b8a6; box-shadow: 0 0 0 5px rgba(20, 184, 166, .12); }
.hero h1 { max-width: 12ch; margin-top: 20px; color: #0f172a; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; letter-spacing: -.065em; }
.hero-lede { color: #475569; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.75; }
.hero-actions { gap: 25px; margin-top: 30px; }
.hero-note { color: #64748b; font-size: 13px; }
.note-check { width: 24px; height: 24px; color: #15803d; background: #dcfce7; }
.hero-demo { padding: 10px 16px 36px 8px; }
.hero-demo:before { inset: 26px 0 0 38px; transform: rotate(2deg); border: 1px solid rgba(14, 165, 233, .1); background: linear-gradient(140deg, #dbeafe, #e0f2fe 55%, #ccfbf1); }
.demo-window { border-color: #dbe5f2; border-radius: 17px; box-shadow: 0 28px 72px rgba(15, 36, 85, .15); }
.demo-top { height: 44px; color: #64748b; font-size: 11px; }
.live-pill { color: #166534; background: #dcfce7; font-size: 10px; }
.demo-content { min-height: 350px; }
.demo-sidebar { width: 53px; border-color: #e7eef7; color: #64748b; }
.demo-sidebar b { color: #1e40af; }
.demo-sidebar i.selected { color: #1e40af; background: #eff6ff; }
.demo-main { padding: 21px 22px; }
.demo-title small,.detail-label { color: #64748b; font-size: 10px; }
.demo-title strong { color: #0f172a; font-size: 17px; }
.demo-user,.avatar { color: #1e40af; background: #dbeafe; }
.demo-metrics { gap: 11px; margin-top: 20px; }
.demo-metrics>div { border-color: #e2e8f0; border-radius: 11px; background: #fff; }
.demo-metrics small { color: #64748b; font-size: 10px; }
.demo-metrics b { color: #0f172a; font-size: 18px; }
.demo-metrics i { color: #15803d; font-size: 10px; }
.demo-pipeline { padding-block: 17px; }
.demo-section-title { color: #1e293b; font-size: 11px; }
.pipeline-row { grid-template-columns: 145px 1fr 16px; margin-block: 11px; color: #475569; font-size: 10px; }
.pipeline-row i { height: 7px; background: #e2e8f0; }
.pipeline-row i b { background: linear-gradient(90deg, #1e40af, #0ea5e9); }
.demo-inbox { padding: 12px; border-color: #dbeafe; background: #f8fbff; }
.demo-inbox b { color: #0f172a; font-size: 10px; }
.demo-inbox small { color: #64748b; font-size: 10px; }
.inbox-state { background: #fef3c7; color: #92400e; font-size: 9px; }
.demo-caption { right: -3px; bottom: 0; padding: 13px 16px; border-color: #dbe5f2; box-shadow: var(--landing-shadow); }
.caption-icon { color: #1e40af; background: #dbeafe; }
.demo-caption strong { color: #0f172a; font-size: 11px; }
.demo-caption small { color: #64748b; font-size: 10px; }

.section-pad { padding: clamp(68px, 8vw, 104px) clamp(22px, 7vw, 104px); }
.intro-section,.control-section { background: #fff; border-color: #e2e8f0; }
.intro-grid { gap: 9%; margin-top: 22px; }
.intro-grid h2,.section-top h2,.control-copy h2,.architecture-section h2,.contact-copy h2 { color: #0f172a; font-size: clamp(30px, 3.35vw, 44px); line-height: 1.14; letter-spacing: -.055em; }
.intro-grid p,.section-top>p,.control-copy>p { color: #475569; font-size: 15px; line-height: 1.75; }
.principle-grid { margin-top: 52px; border-color: #e2e8f0; }
.principle-grid article { padding-top: 25px; }
.principle-grid article+article { border-color: #e2e8f0; }
.principle-grid span { color: #0284c7; font-size: 11px; }
.principle-grid b { color: #0f172a; font-size: 15px; }
.principle-grid p { color: #64748b; font-size: 13px; }
.product-section,.areas-section,.rollout-section { background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); }
.section-top { align-items: end; margin-bottom: 32px; }
.section-top h2 { margin-top: 12px; }
.section-top>p { max-width: 390px; margin-bottom: 3px; }
.product-layout { grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 18px; }
.product-menu { gap: 9px; }
.product-choice { min-height: 82px; gap: 14px; padding: 15px 17px; border-color: #dbe5f2; border-radius: 13px; background: rgba(255,255,255,.82); color: #334155; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.product-choice:hover { transform: translateX(3px); border-color: #93c5fd; box-shadow: 0 8px 20px rgba(30,64,175,.07); }
.product-choice>span { width: 39px; height: 39px; border-radius: 12px; background: #eff6ff; color: #1e40af; font-size: 17px; }
.product-choice b { color: #0f172a; font-size: 13px; }
.product-choice small { color: #64748b; font-size: 11px; }
.product-choice.active { border-color: #60a5fa; background: #fff; box-shadow: 0 7px 20px rgba(30,64,175,.1); }
.product-detail { min-height: 342px; padding: 34px 36px; border: 1px solid #1e3a8a; border-radius: 17px; background: linear-gradient(135deg, #172554, #1e40af 72%, #0369a1); box-shadow: 0 18px 38px rgba(30,64,175,.16); }
.product-detail h3 { max-width: 13ch; font-size: clamp(25px, 2.5vw, 31px); line-height: 1.15; }
.product-detail p { max-width: 52ch; color: #dbeafe; font-size: 14px; line-height: 1.7; }
.detail-label { color: #bae6fd; font-size: 10px; }
.detail-points { gap: 9px 19px; color: #e0f2fe; font-size: 12px; }
.product-detail .button-light { min-height: 42px; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.96); color: #1e40af; }
.contact-card { width: 250px; border: 1px solid #e2e8f0; box-shadow: 0 12px 28px rgba(15,23,42,.14); }
.contact-card div small { color: #64748b; font-size: 9px; }
.contact-card div b { color: #0f172a; font-size: 11px; }
.contact-card div em { color: #64748b; font-size: 9px; }
.status-pill { background: #dcfce7; color: #166534; font-size: 9px; }

.control-section { gap: 9%; }
.check-list { gap: 15px; }
.check-list li { color: #334155; font-size: 14px; line-height: 1.55; }
.check-list li:before { color: #22c55e; }
.approval-demo { border-color: #dbe5f2; border-radius: 17px; box-shadow: var(--landing-shadow); }
.approval-head,.approval-step { border-color: #e2e8f0; }
.approval-icon,.approval-step .step-number { color: #1e40af; background: #dbeafe; }
.approval-step.approved { border-color: #86efac; background: #f0fdf4; }
.area-tabs { gap: 8px; overflow-x: auto; padding: 3px 1px 12px; scrollbar-width: thin; }
.area-tabs button { min-height: 44px; padding-inline: 16px; border-radius: 999px; color: #475569; font-size: 13px; }
.area-tabs button.active { background: #1e40af; color: #fff; box-shadow: 0 7px 18px rgba(30,64,175,.18); }
.area-panel { gap: 7%; padding: clamp(24px, 4vw, 42px); border: 1px solid #dbe5f2; border-radius: 18px; background: #fff; box-shadow: var(--landing-shadow); }
.area-number { color: #0284c7; font-size: 12px; }
.area-copy h3 { color: #0f172a; font: 750 clamp(24px, 2.7vw, 34px)/1.18 Manrope, sans-serif; letter-spacing: -.045em; }
.area-copy>p { color: #475569; font-size: 15px; line-height: 1.7; }
.task-card { border-color: #dbe5f2; border-radius: 15px; box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.task-card>small { color: #1e40af; }
.task-card>b { color: #0f172a; font-size: 15px; }
.task-client,.task-footer { color: #475569; }
.task-progress i { background: linear-gradient(90deg,#1e40af,#0ea5e9); }
.flow { gap: 13px; }
.flow article { min-height: 155px; padding: 22px; border-color: #dbe5f2; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.045); }
.flow article>span:first-child { color: #0284c7; font-size: 12px; }
.flow article b { color: #0f172a; font-size: 15px; }
.flow article p { color: #64748b; font-size: 13px; line-height: 1.6; }
.flow-arrow { color: #0ea5e9; }
.integration-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.integration-grid article { min-height: 150px; padding: 19px; border-color: #dbe5f2; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.045); }
.integration-grid article b { color: #0f172a; font-size: 14px; }
.integration-grid article small { color: #64748b; font-size: 11px; line-height: 1.5; }
.integration-grid article em { color: #92400e; font-size: 10px; }
.integration-grid article em.available { color: #166534; }
.integration-icon { color: #1e40af; background: #eff6ff; }
.integration-footnote,.pricing-note { color: #64748b; font-size: 12px; }
.rollout-grid { gap: 13px; }
.rollout-grid article,.scope-grid article { padding: 22px; border: 1px solid #dbe5f2; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.04); }
.rollout-grid article>span,.scope-grid article>span { color: #0284c7; font-size: 11px; }
.rollout-grid h3 { color: #0f172a; font-size: 16px; }
.rollout-grid p,.scope-grid p { color: #64748b; font-size: 13px; line-height: 1.65; }
.plans-section { background: #fff; }
.landing-plans { gap: 15px; }
.landing-plans article { padding: 25px; border-color: #dbe5f2; border-radius: 15px; background: #fff; box-shadow: 0 9px 26px rgba(15,23,42,.055); }
.landing-plans article.popular { border-color: #60a5fa; box-shadow: 0 14px 35px rgba(30,64,175,.12); }
.landing-plans article>small { color: #1e40af; font-size: 10px; letter-spacing: .1em; }
.landing-plans h3 { color: #0f172a; font-size: 21px; }
.landing-plans p,.landing-plans article>span { color: #64748b; font-size: 13px; line-height: 1.6; }
.landing-plans article>b { color: #1e40af; font-size: 16px; }
.scope-section { background: #f1f5f9; }
.scope-grid { gap: 12px; }
.contact-section { gap: 8%; padding: clamp(34px, 6vw, 78px) clamp(22px, 7vw, 104px); background: linear-gradient(130deg,#172554,#1e40af 62%,#0369a1); }
.contact-copy .section-kicker { color: #bae6fd; }
.contact-copy h2 { color: #fff; }
.contact-copy p { color: #dbeafe; font-size: 15px; line-height: 1.75; }
.contact-promise { color: #fff; }
.contact-promise i { color: #166534; background: #dcfce7; }
.contact-promise small { color: #dbeafe; }
.contact-form { padding: clamp(22px, 3vw, 34px); border: 1px solid #dbeafe; border-radius: 18px; box-shadow: 0 25px 60px rgba(8,28,83,.25); }
.contact-form h3 { color: #0f172a; font: 750 23px Manrope, sans-serif; letter-spacing: -.035em; }
.contact-fields { gap: 15px; }
.contact-fields label,.contact-form label { color: #334155; font-size: 12px; }
.contact-fields input,.contact-fields select { min-height: 46px; border-color: #cbd5e1; border-radius: 9px; background: #fff; color: #0f172a; font-size: 14px; }
.contact-form .button { min-height: 48px; }
.form-feedback { color: #166534; font-size: 13px; }
.form-feedback.error { color: #b91c1c; }
.site-footer { padding: 38px clamp(22px, 6vw, 90px); border-color: #e2e8f0; background: #fff; }
.site-footer>p,.site-footer nav { color: #64748b; font-size: 13px; }
.site-footer>small { color: #64748b; font-size: 11px; }

/* The existing observer in landing.js reveals sections as they enter view. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0) scale(.99); transition: opacity .62s cubic-bezier(.2,.75,.25,1), transform .62s cubic-bezier(.2,.75,.25,1); transition-delay: var(--reveal-delay, 0ms); }
  .motion-ready [data-reveal].is-visible { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  .hero-demo .demo-window { animation: landing-float 7s ease-in-out 1s infinite; }
  .pipeline-row i b { transform-origin:left center; animation: landing-progress .9s cubic-bezier(.2,.75,.25,1) .3s both; }
  .product-choice,.integration-grid article,.landing-plans article,.rollout-grid article,.scope-grid article { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
  .integration-grid article:hover,.landing-plans article:hover,.rollout-grid article:hover,.scope-grid article:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: 0 15px 30px rgba(30,64,175,.1); }
}
@keyframes landing-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes landing-progress { from { transform: scaleX(.12); opacity: .55; } to { transform: scaleX(1); opacity: 1; } }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --line: #334155;
  --canvas: #0b1220;
  --green: #60a5fa;
  --green-dark: #3b82f6;
  --pale: #172554;
  --white: #111c2e;
  --gold: #fbbf24;
}
html[data-theme="dark"] body { background: radial-gradient(ellipse at 92% 7%, rgba(14,165,233,.1), transparent 31rem), #0b1220; color: #e2e8f0; }
html[data-theme="dark"] .site-header,html[data-theme="dark"] .site-footer { border-color: #243247; background: rgba(15,23,42,.92); color: #e2e8f0; }
html[data-theme="dark"] .brand,html[data-theme="dark"] .hero h1,html[data-theme="dark"] .intro-grid h2,html[data-theme="dark"] .section-top h2,html[data-theme="dark"] .control-copy h2,html[data-theme="dark"] .architecture-section h2,html[data-theme="dark"] .contact-copy h2 { color: #f8fafc; }
html[data-theme="dark"] .site-header nav,html[data-theme="dark"] .hero-lede,html[data-theme="dark"] .hero-note,html[data-theme="dark"] .intro-grid p,html[data-theme="dark"] .section-top>p,html[data-theme="dark"] .control-copy>p,html[data-theme="dark"] .site-footer>p,html[data-theme="dark"] .site-footer nav { color: #b6c4d7; }
html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .menu-toggle { border-color: #34445c; background: #111c2e; color: #93c5fd; }
html[data-theme="dark"] .intro-section,html[data-theme="dark"] .control-section,html[data-theme="dark"] .plans-section { border-color: #26364a; background: #0f1929; }
html[data-theme="dark"] .product-section,html[data-theme="dark"] .areas-section,html[data-theme="dark"] .rollout-section,html[data-theme="dark"] .scope-section { background: linear-gradient(180deg,#111d30,#0b1220); }
html[data-theme="dark"] .principle-grid,html[data-theme="dark"] .principle-grid article+article { border-color: #334155; }
html[data-theme="dark"] .principle-grid b,html[data-theme="dark"] .area-copy h3,html[data-theme="dark"] .flow article b,html[data-theme="dark"] .integration-grid article b,html[data-theme="dark"] .rollout-grid h3,html[data-theme="dark"] .landing-plans h3 { color: #e2e8f0; }
html[data-theme="dark"] .principle-grid p,html[data-theme="dark"] .area-copy>p,html[data-theme="dark"] .flow article p,html[data-theme="dark"] .integration-grid article small,html[data-theme="dark"] .rollout-grid p,html[data-theme="dark"] .scope-grid p,html[data-theme="dark"] .landing-plans p,html[data-theme="dark"] .landing-plans article>span { color: #a8b7cc; }
html[data-theme="dark"] .product-choice,html[data-theme="dark"] .area-panel,html[data-theme="dark"] .flow article,html[data-theme="dark"] .integration-grid article,html[data-theme="dark"] .rollout-grid article,html[data-theme="dark"] .scope-grid article,html[data-theme="dark"] .landing-plans article { border-color: #2b3c53; background: #111c2e; color: #dbeafe; }
html[data-theme="dark"] .product-choice b,html[data-theme="dark"] .contact-card div b { color: #f1f5f9; }
html[data-theme="dark"] .product-choice small,html[data-theme="dark"] .contact-card div small,html[data-theme="dark"] .contact-card div em { color: #a8b7cc; }
html[data-theme="dark"] .product-choice>span,html[data-theme="dark"] .integration-icon { background: #172d4b; color: #93c5fd; }
html[data-theme="dark"] .demo-window,html[data-theme="dark"] .demo-caption,html[data-theme="dark"] .demo-metrics>div,html[data-theme="dark"] .contact-card { border-color: #2b3c53; background: #111c2e; color: #e2e8f0; }
html[data-theme="dark"] .demo-title strong,html[data-theme="dark"] .demo-metrics b,html[data-theme="dark"] .demo-inbox b,html[data-theme="dark"] .demo-caption strong { color: #f1f5f9; }
html[data-theme="dark"] .demo-title small,html[data-theme="dark"] .demo-metrics small,html[data-theme="dark"] .demo-inbox small,html[data-theme="dark"] .demo-caption small { color: #94a3b8; }
html[data-theme="dark"] .demo-inbox { border-color: #2b3c53; background: #16243a; }
html[data-theme="dark"] .menu-toggle { background: #111c2e; }
html[data-theme="dark"] .contact-fields input,html[data-theme="dark"] .contact-fields select { border-color: #334155; background: #0b1220; color: #e2e8f0; }
html[data-theme="dark"] .contact-fields label,html[data-theme="dark"] .contact-form label { color: #cbd5e1; }
html[data-theme="dark"] .contact-form { border-color: #2c3e55; background: #111c2e; }
html[data-theme="dark"] .contact-form h3 { color: #f1f5f9; }
html[data-theme="dark"] .site-footer { border-color: #26364a; }
html[data-theme="dark"] .site-footer>small { color: #94a3b8; }

/* Final dark-theme pass: neutralize the legacy green palette from landing.css. */
html[data-theme="dark"] .site-header nav,
html[data-theme="dark"] .site-header nav.open {
  border-color: #26364a;
  background: rgba(15, 23, 42, .96);
  color: #cbd5e1;
}
html[data-theme="dark"] .site-header nav a:not(.button):hover,
html[data-theme="dark"] .site-footer nav a:hover { color: #93c5fd; }
html[data-theme="dark"] .signin { border-color: #334155; color: #cbd5e1; }
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .text-link { color: #93c5fd; }
html[data-theme="dark"] .hero-note,
html[data-theme="dark"] .hero-lede,
html[data-theme="dark"] .intro-grid p,
html[data-theme="dark"] .section-top > p,
html[data-theme="dark"] .control-copy > p,
html[data-theme="dark"] .contact-copy > p,
html[data-theme="dark"] .site-footer > p,
html[data-theme="dark"] .site-footer nav,
html[data-theme="dark"] .site-footer > small { color: #b6c4d7; }
html[data-theme="dark"] .demo-pipeline,
html[data-theme="dark"] .demo-section-title,
html[data-theme="dark"] .pipeline-row,
html[data-theme="dark"] .pipeline-row em,
html[data-theme="dark"] .demo-section-title small,
html[data-theme="dark"] .demo-sidebar { color: #b6c4d7; }
html[data-theme="dark"] .demo-sidebar,
html[data-theme="dark"] .demo-top,
html[data-theme="dark"] .approval-head,
html[data-theme="dark"] .approval-step,
html[data-theme="dark"] .area-tabs,
html[data-theme="dark"] .principle-grid,
html[data-theme="dark"] .principle-grid article + article { border-color: #334155; }
html[data-theme="dark"] .demo-sidebar i.selected,
html[data-theme="dark"] .demo-user,
html[data-theme="dark"] .avatar,
html[data-theme="dark"] .approval-icon,
html[data-theme="dark"] .area-number,
html[data-theme="dark"] .task-card > small,
html[data-theme="dark"] .integration-icon { background-color: #172b4d; color: #bfdbfe; }
html[data-theme="dark"] .demo-sidebar b,
html[data-theme="dark"] .demo-sidebar b span { color: #93c5fd; }
html[data-theme="dark"] .demo-metrics > div,
html[data-theme="dark"] .demo-inbox,
html[data-theme="dark"] .approval-demo,
html[data-theme="dark"] .task-card,
html[data-theme="dark"] .area-visual,
html[data-theme="dark"] .floating-tag,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .pricing-note {
  border-color: #2b3c53;
  background: #172033;
  color: #e2e8f0;
}
html[data-theme="dark"] .pipeline-row i { background: #334155; }
html[data-theme="dark"] .demo-inbox b,
html[data-theme="dark"] .task-card > b,
html[data-theme="dark"] .task-footer strong,
html[data-theme="dark"] .contact-card div b,
html[data-theme="dark"] .floating-tag { color: #e2e8f0; }
html[data-theme="dark"] .demo-inbox small,
html[data-theme="dark"] .task-client,
html[data-theme="dark"] .task-client small,
html[data-theme="dark"] .task-footer,
html[data-theme="dark"] .contact-card div small,
html[data-theme="dark"] .contact-card div em { color: #a8b7cc; }
html[data-theme="dark"] .intro-section,
html[data-theme="dark"] .control-section,
html[data-theme="dark"] .integrations-section,
html[data-theme="dark"] .plans-section { background: #0f1929; }
html[data-theme="dark"] .product-section,
html[data-theme="dark"] .areas-section,
html[data-theme="dark"] .rollout-section,
html[data-theme="dark"] .scope-section { background: linear-gradient(180deg, #111d30, #0b1220); }
html[data-theme="dark"] .product-choice,
html[data-theme="dark"] .area-panel,
html[data-theme="dark"] .flow article,
html[data-theme="dark"] .integration-grid article,
html[data-theme="dark"] .rollout-grid article,
html[data-theme="dark"] .scope-grid article,
html[data-theme="dark"] .landing-plans article,
html[data-theme="dark"] .contact-form {
  border-color: #2b3c53;
  background: #111c2e;
  color: #e2e8f0;
}
html[data-theme="dark"] .product-choice b,
html[data-theme="dark"] .flow article b,
html[data-theme="dark"] .integration-grid article b,
html[data-theme="dark"] .rollout-grid h3,
html[data-theme="dark"] .landing-plans h3,
html[data-theme="dark"] .contact-form h3,
html[data-theme="dark"] .approval-head b,
html[data-theme="dark"] .approval-step b { color: #f1f5f9; }
html[data-theme="dark"] .product-choice small,
html[data-theme="dark"] .flow article p,
html[data-theme="dark"] .integration-grid article small,
html[data-theme="dark"] .rollout-grid p,
html[data-theme="dark"] .scope-grid p,
html[data-theme="dark"] .landing-plans p,
html[data-theme="dark"] .landing-plans article > span,
html[data-theme="dark"] .approval-step small,
html[data-theme="dark"] .approval-sub,
html[data-theme="dark"] .approval-step > span,
html[data-theme="dark"] .pricing-note { color: #a8b7cc; }
html[data-theme="dark"] .product-choice.active,
html[data-theme="dark"] .area-tabs button.active { border-color: #60a5fa; background-color: #172b4d; color: #dbeafe; }
html[data-theme="dark"] .area-tabs button { color: #b6c4d7; }
html[data-theme="dark"] .button-dark { background: #1e40af; box-shadow: 0 8px 18px rgba(30, 64, 175, .28); }
html[data-theme="dark"] .button-dark:hover { background: #1d4ed8; }
html[data-theme="dark"] .architecture-section { background: linear-gradient(125deg, #101b30, #172554 68%, #0c3549); }
html[data-theme="dark"] .architecture-section .flow article { border-color: #3b4d67; background: rgba(15, 23, 42, .45); }
html[data-theme="dark"] .architecture-section .flow article > span,
html[data-theme="dark"] .architecture-section .flow article > i,
html[data-theme="dark"] .architecture-section .flow-arrow { color: #93c5fd; }
html[data-theme="dark"] .architecture-section .flow article > small,
html[data-theme="dark"] .architecture-lede,
html[data-theme="dark"] .architecture-note p { color: #cbd5e1; }
html[data-theme="dark"] .architecture-note { border: 1px solid #3b4d67; background: rgba(15, 23, 42, .4); }
html[data-theme="dark"] .architecture-note > span { border-color: #60a5fa; color: #bfdbfe; }
html[data-theme="dark"] .contact-fields input,
html[data-theme="dark"] .contact-fields select { border-color: #334155; background: #0b1220; color: #e2e8f0; }
html[data-theme="dark"] .contact-fields label,
html[data-theme="dark"] .contact-form label { color: #cbd5e1; }
html[data-theme="dark"] .contact-section { background: linear-gradient(130deg, #172554, #1e40af 62%, #0369a1); }
html[data-theme="dark"] .hero-demo:before { border-color: #26364a; background: linear-gradient(140deg, #172554, #142642 55%, #123a3a); }
html[data-theme="dark"] .button-light { border-color: #3b4d67; background: #172033; color: #dbeafe; }
html[data-theme="dark"] .note-check,
html[data-theme="dark"] .contact-promise i { background: #123323; color: #86efac; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 38px; }
  .integration-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 46px; padding-top: 70px; }
  .hero-copy { max-width: 720px; }
  .hero h1 { max-width: 13ch; }
  .hero-demo { width: min(680px,100%); margin-inline: auto; }
  .intro-grid,.control-section { grid-template-columns: 1fr; gap: 27px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-choice { min-height: 76px; }
  .contact-section { grid-template-columns: 1fr; gap: 26px; }
  .contact-copy { max-width: 680px; }
}
@media (max-width: 700px) {
  .site-header { height: 68px; padding-inline: 17px; }
  .site-header nav { position: absolute; top: calc(100% + 8px); right: 12px; left: 12px; display: none; align-items: stretch; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 18px 38px rgba(15,23,42,.14); }
  .site-header nav.open { display: flex; flex-direction: column; }
  .site-header nav>a:not(.button) { min-height: 43px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; }
  .site-header nav>a:not(.button):hover { background: #eff6ff; }
  .signin { border: 0; padding-left: 10px; }
  .site-header nav .button { margin-top: 4px; }
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; margin-right: 9px; font-size: 19px; cursor: pointer; }
  html[data-theme="dark"] .site-header nav { border-color: #34445c; background: #111c2e; }
  html[data-theme="dark"] .site-header nav>a:not(.button):hover { background: #1b2b42; }
  .hero { gap: 36px; padding: 58px 20px 60px; }
  .hero h1 { font-size: clamp(40px, 10vw, 58px); letter-spacing: -.06em; }
  .hero-lede { font-size: 16px; }
  .section-pad { padding: 64px 20px; }
  .intro-grid h2,.section-top h2,.control-copy h2,.architecture-section h2,.contact-copy h2 { font-size: clamp(29px, 7.5vw, 38px); }
  .principle-grid { grid-template-columns: 1fr; margin-top: 35px; }
  .principle-grid article,.principle-grid article+article { padding: 19px 0; border-left: 0; border-top: 1px solid var(--line); }
  .section-top { align-items: flex-start; flex-direction: column; gap: 13px; }
  .section-top>p { margin: 0; }
  .product-menu { grid-template-columns: 1fr; }
  .product-detail { min-height: 0; padding: 27px 23px 170px; }
  .contact-card { right: 14px; bottom: 14px; width: min(250px, calc(100% - 28px)); }
  .area-panel { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .area-visual { min-width: 0; }
  .flow { grid-template-columns: 1fr; }
  .flow article { min-height: 0; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .integration-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rollout-grid,.scope-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .landing-plans { grid-template-columns: 1fr; }
  .contact-section { padding: 55px 20px; }
  .contact-fields { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 17px; padding: 30px 20px; }
  .site-footer nav { flex-wrap: wrap; gap: 13px 20px; }
}
@media (max-width: 420px) {
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { text-align: center; }
  .hero-demo { padding-inline: 0; }
  .hero-demo:before { inset-inline: 10px 0; }
  .demo-main { padding: 16px 12px; }
  .demo-content { min-height: 320px; }
  .demo-sidebar { width: 39px; }
  .pipeline-row { grid-template-columns: minmax(86px, .9fr) minmax(60px, 1fr) 14px; gap: 5px; font-size: 9px; }
  .demo-caption { right: 0; max-width: calc(100% - 6px); }
  .integration-grid,.rollout-grid,.scope-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 21px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
