:root {
  --ink: #101a16;
  --muted: #667269;
  --paper: #fffaf0;
  --canvas: #f1eadb;
  --line: #ded4bd;
  --night: #07130f;
  --night-2: #12231c;
  --lime: #caff63;
  --gold: #f5c86a;
  --green: #11745d;
  --blue: #2757d8;
  --orange: #e76524;
  --danger: #b42318;
  --shadow: 0 28px 90px rgba(16, 26, 22, 0.16);
  --radius: 28px;
  --brand-color: #11745d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Trebuchet MS", "Avenir Next", "Gill Sans", sans-serif; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: fixed; left: 50%; top: 18px; z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: min(1180px, calc(100% - 28px)); padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: rgba(7,19,15,.76); color: #fff9ea; backdrop-filter: blur(18px); box-shadow: 0 16px 60px rgba(0,0,0,.2);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--lime), var(--gold)); color: var(--night); font-weight: 950; letter-spacing: -.06em; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { line-height: 1; letter-spacing: -.04em; }
.brand-copy small { margin-top: 3px; color: rgba(255,249,234,.58); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { border-radius: 999px; padding: 10px 13px; color: rgba(255,249,234,.76); font-size: 14px; font-weight: 800; }
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,.1); color: #fff9ea; }
.site-nav .nav-cta { background: var(--lime); color: var(--night); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; border-radius: 999px; background: #fff9ea; }

.section-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff9ea; }
.hero::before { position: absolute; inset: 0; background: radial-gradient(circle at 18% 20%, rgba(202,255,99,.18), transparent 34%), radial-gradient(circle at 76% 14%, rgba(245,200,106,.16), transparent 30%), linear-gradient(135deg, rgba(255,255,255,.08), transparent 38%); content: ""; }
.hero-noise { position: absolute; inset: 0; opacity: .075; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 42px 42px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 56px; min-height: 100vh; padding: 140px 0 84px; }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: 12px; font-weight: 950; letter-spacing: .24em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: "Avenir Next", "Trebuchet MS", sans-serif; letter-spacing: -.055em; }
h1 { max-width: 820px; margin-bottom: 26px; font-size: clamp(50px, 7.2vw, 98px); line-height: .91; }
h2 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 66px); line-height: .96; }
h3 { margin-bottom: 10px; font-size: 26px; line-height: 1; }
.hero-text { max-width: 690px; color: rgba(255,249,234,.74); font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 0 22px; font-weight: 950; }
.button.primary { background: var(--lime); color: var(--night); box-shadow: 0 18px 50px rgba(202,255,99,.22); }
.button.ghost { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff9ea; }
.button.ghost.dark { border-color: rgba(16,26,22,.2); color: var(--ink); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-badges span { border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 9px 12px; color: rgba(255,249,234,.72); font-size: 13px; font-weight: 850; }

.command-center { border: 1px solid rgba(255,255,255,.14); border-radius: 38px; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); padding: 18px; box-shadow: 0 36px 110px rgba(0,0,0,.38); backdrop-filter: blur(14px); }
.window-bar, .tenant-toolbar, .ai-query-card, .proof-strip, .white-label-grid, .roi-grid, .contact-grid, .field-row, .site-footer { display: flex; }
.window-bar { align-items: center; gap: 8px; margin-bottom: 14px; color: rgba(255,249,234,.7); font-size: 13px; font-weight: 900; }
.window-bar span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.32); }
.window-bar strong { margin-left: 8px; }
.tenant-toolbar { align-items: center; justify-content: space-between; border-radius: 24px; background: var(--paper); padding: 18px; color: var(--ink); }
.tenant-toolbar small { display:block; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing:.1em; }
.tenant-toolbar strong { display:block; margin-top:5px; font-size:22px; }
.health-pill { border-radius: 999px; background: rgba(17,116,93,.12); padding: 8px 11px; color: var(--green); font-size: 12px; font-weight: 950; }
.metric-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 12px; }
.metric-grid article, .ai-query-card { border-radius: 24px; background: #fffaf0; padding: 18px; color: var(--ink); }
.metric-grid small { display:block; color: var(--muted); font-size: 12px; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
.metric-grid strong { display:block; margin-top:8px; font-family:"Avenir Next","Trebuchet MS",sans-serif; font-size:42px; letter-spacing:-.07em; }
.metric-grid em { display:block; color: var(--green); font-size:13px; font-style:normal; font-weight:900; }
.ai-query-card { align-items:center; gap: 15px; margin-top: 12px; background: #102019; color:#fff9ea; }
.ai-orb { display:grid; width: 52px; height:52px; place-items:center; flex:0 0 auto; border-radius:18px; background: var(--lime); color:var(--night); font-weight:950; }
.ai-query-card p { margin: 5px 0 10px; color: rgba(255,249,234,.7); }
.ai-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow:hidden; }
.ai-progress i { display:block; width: 72%; height:100%; border-radius:inherit; background: linear-gradient(90deg, var(--lime), var(--gold)); animation: progressPulse 1.6s infinite ease-in-out; }

.proof-strip { position: relative; z-index: 3; width: min(1180px, calc(100% - 36px)); margin: -38px auto 0; border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.proof-strip div { flex:1; padding: 25px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right:0; }
.proof-strip strong { display:block; font-family:"Avenir Next","Trebuchet MS",sans-serif; font-size:38px; letter-spacing:-.06em; }
.proof-strip span { color: var(--muted); font-weight:850; }

.narrative-section, .platform-section, .product-demo-section, .security-section, .implementation-section, .plans-section, .faq-section { padding: 112px 0; }
.section-heading { max-width: 820px; margin-bottom: 40px; }
.section-heading.wide { max-width: 930px; }
.section-heading p, .enterprise-copy p, .white-label-copy p, .roi-copy p, .contact-copy p { color: var(--muted); font-size: 18px; line-height: 1.72; }
.narrative-grid, .module-grid, .security-grid, .plans-grid, .timeline, .workflow { display:grid; gap: 18px; }
.narrative-grid { grid-template-columns: repeat(3,1fr); }
.narrative-card, .module-card, .security-card, .plan-card, .timeline-step, .lead-form, .roi-calculator, .demo-tabs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 28px; box-shadow: 0 10px 40px rgba(16,26,22,.06); }
.narrative-card span, .module-card span, .timeline-step span, .tab-kicker { color: var(--green); font-size: 12px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.narrative-card p, .module-card p, .security-card p, .timeline-step p, .plan-card p, .plan-card li, .tab-panel p, .tab-panel li { color: var(--muted); line-height: 1.68; }
.module-grid { grid-template-columns: repeat(4,1fr); }
.module-card { min-height: 250px; transition: transform .25s ease, box-shadow .25s ease; }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.module-card span { display:grid; width: 54px; height:54px; place-items:center; margin-bottom:34px; border-radius:18px; background: var(--night); color: var(--lime); }

.enterprise-section, .white-label-section, .roi-section, .contact-section { background: #e8dfcb; padding: 112px 0; }
.enterprise-grid { display:grid; grid-template-columns: .9fr 1.1fr; align-items:center; gap: 62px; }
.architecture-list { display:grid; gap: 12px; margin-top: 28px; }
.architecture-list div { border: 1px solid rgba(16,26,22,.12); border-radius: 18px; background: rgba(255,250,240,.62); padding: 16px; }
.architecture-list strong, .architecture-list span { display:block; }
.architecture-list span { margin-top:4px; color: var(--muted); }
.architecture-diagram { border-radius: 36px; background: var(--night); padding: 26px; color:#fff9ea; box-shadow: var(--shadow); }
.diagram-node { display:grid; min-height: 82px; place-items:center; border-radius: 24px; background: linear-gradient(135deg,var(--lime),var(--gold)); color:var(--night); font-size: 26px; font-weight:950; }
.diagram-branches { display:grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 16px; }
.diagram-branches div, .diagram-data span { border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.07); padding: 14px; }
.diagram-branches span, .diagram-branches small { display:block; }
.diagram-branches small { margin-top:5px; color: rgba(255,249,234,.6); }
.diagram-data { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 18px; }
.diagram-data span { padding: 9px 11px; color: var(--lime); font-weight:900; }

.demo-tabs { display:grid; grid-template-columns: 250px 1fr; gap: 24px; }
.tab-buttons { display:grid; gap: 10px; align-content:start; }
.tab-buttons button, .billing-toggle button, .color-options button { border: 1px solid var(--line); border-radius: 999px; background: #fffaf0; padding: 13px 15px; color: var(--ink); font-weight:950; text-align:left; }
.tab-buttons button.active, .billing-toggle button.active, .color-options button.active { background: var(--night); color: #fff9ea; border-color: var(--night); }
.tab-panel { min-height: 280px; border-radius: 24px; background: linear-gradient(135deg, #fff, #f5eddd); padding: 28px; }
.tab-panel ul { display:grid; gap: 8px; margin-top: 20px; }

.white-label-grid, .roi-grid, .contact-grid { align-items:start; gap: 60px; }
.white-label-grid > *, .roi-grid > *, .contact-grid > * { flex: 1; }
.check-list { display:grid; gap: 13px; margin: 28px 0 0; padding:0; list-style:none; }
.check-list li { position:relative; padding-left: 32px; color: var(--ink); font-weight:850; line-height:1.45; }
.check-list li::before { position:absolute; left:0; top:1px; display:grid; width:20px; height:20px; place-items:center; border-radius:999px; background: var(--green); color:#fff; content:"✓"; font-size:12px; }
.brand-lab { border-radius: 34px; background: var(--paper); padding: 18px; box-shadow: var(--shadow); }
.brand-lab-controls { display:grid; gap: 14px; margin-bottom: 16px; }
.color-options { display:flex; flex-wrap:wrap; gap: 9px; }
.brand-preview { display:grid; grid-template-columns: 150px 1fr; min-height: 280px; overflow:hidden; border-radius: 28px; border: 1px solid var(--line); background:#fff; }
.brand-preview aside { display:flex; flex-direction:column; gap: 12px; padding: 20px; background: var(--brand-color); color:#fff; }
.brand-preview aside strong { display:grid; width: 58px; height:58px; place-items:center; border-radius: 20px; background: rgba(255,255,255,.16); }
.brand-preview main { display:grid; gap: 16px; padding: 22px; background: linear-gradient(135deg,#fff,#f4efe3); }
.brand-preview main i { border-radius: 18px; background: color-mix(in srgb, var(--brand-color) 18%, white); }
.security-grid { grid-template-columns: repeat(4,1fr); }
.security-card { background: #fffaf0; }

.roi-calculator { display:grid; gap: 22px; }
.roi-calculator label, .lead-form label, .brand-lab label { display:grid; gap: 9px; color: var(--ink); font-weight:950; }
input, textarea { width:100%; border:1px solid var(--line); border-radius: 16px; background:#fffaf0; padding: 14px 15px; color: var(--ink); outline:none; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(17,116,93,.12); }
input[type="range"] { padding:0; accent-color: var(--green); }
output { justify-self:start; border-radius:999px; background: var(--night); padding: 6px 10px; color: var(--lime); font-weight:950; }
.switch-line { grid-template-columns: auto 1fr; align-items:center; }
.switch-line input { width:22px; height:22px; accent-color: var(--green); }
.estimate-card { border-radius: 24px; background: var(--night); padding:24px; color:#fff9ea; }
.estimate-card span { display:block; color: rgba(255,249,234,.6); font-size:12px; font-weight:950; letter-spacing:.1em; text-transform:uppercase; }
.estimate-card strong { display:block; margin:8px 0; font-family:"Avenir Next","Trebuchet MS",sans-serif; font-size: 42px; letter-spacing:-.06em; }
.estimate-card small { color: rgba(255,249,234,.66); font-weight:850; }
.timeline { grid-template-columns: repeat(4,1fr); }
.billing-toggle { display:inline-flex; gap: 8px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 999px; padding: 6px; background: var(--paper); }
.billing-toggle button { text-align:center; border:0; }
.plans-grid { grid-template-columns: repeat(3,1fr); }
.plan-card { position:relative; }
.plan-card.featured { background: var(--night); color:#fff9ea; transform: translateY(-14px); }
.plan-card.featured p, .plan-card.featured li, .plan-card.featured small { color: rgba(255,249,234,.68); }
.plan-badge { display:inline-flex; border-radius:999px; background: var(--lime); padding:8px 11px; color: var(--night); font-size:12px; font-weight:950; }
.plan-card strong { display:block; margin-top: 24px; font-family:"Avenir Next","Trebuchet MS",sans-serif; font-size:44px; letter-spacing:-.06em; }
.plan-card small { color: var(--muted); font-weight:850; }
.plan-card ul { display:grid; gap: 9px; margin: 24px 0 0; padding-left:18px; }
.faq-list { display:grid; gap: 12px; }
.faq-item { width:100%; border:1px solid var(--line); border-radius: 22px; background: var(--paper); padding: 20px 22px; text-align:left; }
.faq-item span { display:block; font-size: 18px; font-weight:950; }
.faq-item p { display:none; margin: 12px 0 0; color: var(--muted); line-height:1.65; }
.faq-item.open p { display:block; }
.contact-copy { color: #fff9ea; }
.contact-copy .eyebrow { color: var(--lime); }
.contact-copy p { color: rgba(255,249,234,.72); }
.contact-section { background: var(--night); }
.lead-form { background: var(--paper); }
.field-row { gap: 14px; }
.mail-link { display:inline-flex; color: var(--green); font-weight:950; }
.form-status { margin:0; color: var(--green); font-weight:950; }
.site-footer { justify-content:space-between; gap:18px; background:#030a08; padding:28px clamp(18px,5vw,72px); color: rgba(255,249,234,.68); font-weight:850; }
.site-footer a { color: var(--lime); }
.reveal { opacity:0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity:1; transform: translateY(0); }
.delay-1 { transition-delay:.12s; } .delay-2 { transition-delay:.22s; } .delay-3 { transition-delay:.32s; }
@keyframes progressPulse { 0%,100% { transform: translateX(-10%); opacity:.65; } 50% { transform: translateX(30%); opacity:1; } }

@media (max-width: 1040px) {
  .hero-grid, .enterprise-grid { grid-template-columns: 1fr; }
  .module-grid, .security-grid, .timeline { grid-template-columns: repeat(2,1fr); }
  .white-label-grid, .roi-grid, .contact-grid { flex-direction: column; }
}
@media (max-width: 900px) {
  .nav-toggle { display:block; }
  .site-nav { position:fixed; inset: 72px 14px auto; display:none; flex-direction:column; align-items:stretch; border-radius:28px; background: rgba(7,19,15,.98); padding:14px; }
  body.nav-open .site-nav { display:flex; }
  .site-nav a { padding:15px; }
  .narrative-grid, .plans-grid, .demo-tabs { grid-template-columns: 1fr; }
  .proof-strip { flex-wrap:wrap; }
  .proof-strip div { min-width:50%; }
}
@media (max-width: 640px) {
  .site-header { top:10px; width: calc(100% - 20px); }
  .brand-copy small { display:none; }
  .hero-grid { min-height:auto; padding: 118px 0 58px; }
  h1 { font-size: clamp(44px, 15vw, 68px); }
  .metric-grid, .module-grid, .security-grid, .timeline { grid-template-columns:1fr; }
  .proof-strip { width:100%; margin-top:0; border-radius:0; }
  .proof-strip div { min-width:100%; border-right:0; border-bottom:1px solid var(--line); }
  .brand-preview { grid-template-columns: 86px 1fr; }
  .field-row, .site-footer { flex-direction:column; }
  .plan-card.featured { transform:none; }
  .narrative-section, .platform-section, .product-demo-section, .security-section, .implementation-section, .plans-section, .faq-section, .enterprise-section, .white-label-section, .roi-section, .contact-section { padding: 78px 0; }
}
