:root{
  --purple:#6D28D9; --purple-dark:#5B21B6; --purple-glow:rgba(109,40,217,.12);
  --navy:#1a1f2e; --navy-border:#2d3348;
  --green:#10B981; --green-dim:rgba(16,185,129,.12);
  --red:#DC2626; --red-dim:rgba(220,38,38,.10);
  --orange:#D97706;
  --bg:#d5d8e2; --surface:#fafafa; --surface2:#edeef2; --surface3:#dfe0e6;
  --text:#1c1c1e; --text2:#34383d;
  --border:rgba(28,28,30,.10); --border2:rgba(28,28,30,.16);
  --radius:14px; --shadow:0 1px 3px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.05);
  --shadow-lg:0 6px 24px rgba(0,0,0,.12),0 1px 4px rgba(0,0,0,.06);
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'DM Sans',-apple-system,'Segoe UI',sans-serif;font-size:15px;color:var(--text);background:var(--bg);}
h1,h2,h3{font-family:'Montserrat',sans-serif;font-weight:900;}
sup{font-size:.6em;vertical-align:super;line-height:0;}

/* ── NAV ── */
nav{position:sticky;top:0;z-index:100;background:var(--navy);display:flex;align-items:center;justify-content:space-between;padding:0 40px;height:68px;box-shadow:0 2px 12px rgba(0,0,0,.25);}
.nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none;}
.nav-brand{font-family:'Montserrat';font-weight:900;font-size:17px;color:#fff;}
.nav-brand em{color:#B794F4;font-style:normal;}
.nav-links{display:flex;align-items:center;gap:24px;}
.nav-links a{color:rgba(255,255,255,.9);text-decoration:none;font-size:14px;font-weight:700;}
.nav-links a:hover,.nav-links a.active{color:#fff;}
.nav-cta{background:var(--purple)!important;color:#fff!important;padding:9px 20px;border-radius:8px;}
.nav-cta:hover{background:var(--purple-dark)!important;}

/* ── HERO (home) ── */
.hero{background:linear-gradient(135deg,var(--navy) 0%,#232a3f 100%);padding:76px 40px 64px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;}
.hero::before{content:'';position:absolute;top:-100px;right:-100px;width:460px;height:460px;background:radial-gradient(circle,rgba(109,40,217,.22) 0%,transparent 70%);border-radius:50%;}
.hero-content{position:relative;z-index:1;max-width:860px;}
.hero-badge{display:inline-block;background:rgba(109,40,217,.2);border:1px solid var(--purple);color:#C4B5FD;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:6px 14px;border-radius:20px;margin-bottom:20px;}
.hero h1{font-size:44px;color:#fff;line-height:1.15;margin-bottom:16px;}
.hero h1 span{color:#B794F4;}
.hero-motto{font-size:16px;font-weight:700;color:#B794F4;margin-bottom:12px;}
.hero p{font-size:16px;color:rgba(255,255,255,.92);line-height:1.7;margin-bottom:20px;}
.hero-btns{display:flex;gap:14px;flex-wrap:wrap;}
.hero-upsell{font-size:14px;color:rgba(255,255,255,.88);margin-top:16px;}
.hero-upsell a{color:#B794F4;font-weight:700;text-decoration:none;}
.hero-stats{display:flex;flex-wrap:wrap;gap:24px 28px;margin-top:36px;}
.stat-num{font-family:'Montserrat';font-size:22px;font-weight:900;color:#B794F4;white-space:nowrap;}
.stat-label{font-size:14px;color:rgba(255,255,255,.85);text-transform:uppercase;letter-spacing:.03em;margin-top:2px;font-weight:600;white-space:nowrap;}

.btn-primary{background:var(--purple);color:#fff;padding:13px 28px;border-radius:8px;font-weight:700;font-size:15px;text-decoration:none;display:inline-block;border:none;cursor:pointer;}
.btn-primary:hover{background:var(--purple-dark);}
.btn-outline{background:transparent;color:#fff;padding:13px 28px;border-radius:8px;font-weight:700;font-size:15px;text-decoration:none;border:2px solid rgba(255,255,255,.35);display:inline-block;}
.btn-outline:hover{border-color:#B794F4;color:#B794F4;}
.btn-secondary{background:var(--navy);color:#fff;padding:13px 28px;border-radius:8px;font-weight:700;font-size:15px;text-decoration:none;display:inline-block;}
.btn-secondary:hover{background:#232a3f;}

/* ── PAGE HERO (inner pages) ── */
.page-hero{background:linear-gradient(135deg,var(--navy) 0%,#232a3f 100%);padding:56px 40px;text-align:center;}
.page-hero h1{font-size:34px;color:#fff;margin-bottom:10px;}
.page-hero p{font-size:15px;color:rgba(255,255,255,.92);max-width:560px;margin:0 auto;line-height:1.65;}

/* ── SECTION SHARED ── */
.section-label{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--purple-dark);margin-bottom:8px;}
.grid-head h2{font-size:30px;color:var(--text);margin-bottom:8px;}
.grid-head h3{font-family:'DM Sans';font-weight:800;}
.grid-head p{font-size:15px;color:var(--text2);max-width:600px;line-height:1.6;}

/* ── INFO GRID (ambops-style compact cards) ── */
.grid-wrap{max-width:1180px;margin:0 auto;padding:44px 32px 68px;}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px;}
.info-card{background:var(--surface);border:1px solid var(--border2);border-radius:var(--radius);padding:24px 22px;box-shadow:var(--shadow);transition:transform .18s,box-shadow .18s;}
.info-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);}
.info-icon{width:46px;height:46px;border-radius:12px;background:var(--purple-glow);color:var(--purple);display:flex;align-items:center;justify-content:center;font-size:21px;margin-bottom:14px;}
.info-card h3{font-family:'DM Sans';font-size:16px;font-weight:800;color:var(--text);margin-bottom:6px;}
.info-card>p{font-size:14px;color:var(--text2);line-height:1.55;margin-bottom:14px;}
.info-list{list-style:none;}
.info-list li{font-size:14px;color:var(--text);padding:5px 0 5px 22px;position:relative;}
.info-list li::before{content:'✓';position:absolute;left:0;color:var(--green);font-weight:800;}

/* ── SERVICE PAGE CARDS (inner service pages) ── */
.services-page{max-width:1100px;margin:0 auto;padding:56px 32px;}
.svc-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px;}
.svc-card{background:var(--surface);border:1px solid var(--border2);border-radius:var(--radius);padding:30px 26px;box-shadow:var(--shadow);}
.svc-icon{font-size:32px;margin-bottom:14px;}
.svc-card h3{font-size:19px;font-weight:800;color:var(--text);margin-bottom:10px;}
.svc-card p{font-size:14px;color:var(--text2);line-height:1.7;margin-bottom:14px;}
.svc-card ul{list-style:none;}
.svc-card ul li{font-size:14px;color:var(--text2);padding:6px 0 6px 22px;position:relative;border-bottom:1px solid var(--border);}
.svc-card ul li:last-child{border-bottom:none;}
.svc-card ul li::before{content:'✓';position:absolute;left:0;color:var(--green);font-weight:700;}
.svc-cta{background:var(--purple-glow);border-radius:var(--radius);padding:36px;text-align:center;margin-top:40px;}
.svc-cta h3{font-size:22px;color:var(--text);margin-bottom:10px;}
.svc-cta p{font-size:14px;color:var(--text2);margin-bottom:20px;}

/* ── POWERED BY / COMMAND CENTER PAGE ── */
.hub-section{max-width:1180px;margin:0 auto;padding:8px 32px 68px;}
.tier-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px;}
.tier-card{background:var(--surface2);border:1px solid var(--border2);border-radius:12px;padding:18px 20px;}
.tier-card.tier-card-highlight{background:var(--purple-glow);border-color:var(--purple);}
.tier-label{font-size:13px;font-weight:800;color:var(--text);margin-bottom:6px;}
.tier-card p{font-size:14px;color:var(--text2);line-height:1.5;}
.hub-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:32px;}
.hub-tile{background:var(--surface);border:1px solid var(--border2);border-radius:var(--radius);padding:22px 18px;box-shadow:var(--shadow);position:relative;}
.hub-tile .info-icon{margin-bottom:12px;}
.hub-tile h4{font-size:15px;font-weight:800;margin-bottom:6px;}
.hub-tile p{font-size:14px;color:var(--text2);line-height:1.55;}
.dp-box{margin-top:28px;background:var(--navy);border-radius:18px;padding:36px;color:#fff;display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;}
.dp-box h3{font-size:22px;margin-bottom:10px;}
.dp-box p{font-size:14px;color:rgba(255,255,255,.92);line-height:1.65;margin-bottom:14px;}
.dp-list{list-style:none;}
.dp-list li{font-size:14px;color:rgba(255,255,255,.95);padding:6px 0 6px 22px;position:relative;}
.dp-list li::before{content:'✓';position:absolute;left:0;color:#4ade80;font-weight:800;}

/* ── PRODUCT SCREENSHOTS ── */
.dash-feature{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;margin-top:36px;}
.dash-feature-text .grid-head{margin-bottom:0;}
.screenshot-frame{border-radius:14px;overflow:hidden;box-shadow:var(--shadow-lg);border:1px solid var(--border2);}
.screenshot-frame img{display:block;width:100%;height:auto;}
@media(max-width:900px){ .dash-feature{grid-template-columns:1fr;} }

/* ── ABOUT PAGE ── */
.about-page{max-width:1100px;margin:0 auto;padding:56px 32px;}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;}
.about-visual{background:linear-gradient(135deg,var(--navy) 0%,#232a3f 100%);border-radius:16px;padding:36px 30px;}
.about-visual-item{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.1);}
.about-visual-item:last-child{border-bottom:none;}
.about-dot{width:9px;height:9px;background:#B794F4;border-radius:50%;flex-shrink:0;}
.about-visual-item span{font-size:14px;color:rgba(255,255,255,.95);}
.about-text h2{font-size:26px;color:var(--text);margin-bottom:14px;}
.about-text p{font-size:15px;color:var(--text2);line-height:1.75;margin-bottom:14px;}
.about-highlights{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px;}
.ah{background:var(--purple-glow);border-radius:10px;padding:16px;}
.ah-num{font-family:'Montserrat';font-size:22px;font-weight:900;color:var(--purple-dark);}
.ah-label{font-size:13px;color:var(--text);font-weight:600;margin-top:2px;}
.advantage-box{margin-top:56px;background:var(--navy);border-radius:16px;padding:44px 36px;color:#fff;}
.advantage-box h2{font-size:26px;color:#fff;margin-bottom:20px;}
.advantage-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.advantage-tile{background:rgba(255,255,255,.07);border-radius:10px;padding:20px;}
.advantage-tile .ic{font-size:20px;margin-bottom:8px;}
.advantage-tile h4{font-size:14px;font-weight:800;color:#fff;margin-bottom:6px;}
.advantage-tile p{font-size:14px;color:rgba(255,255,255,.92);line-height:1.6;}

/* ── CONTACT PAGE ── */
.contact-page{max-width:960px;margin:0 auto;padding:56px 32px;}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;}
.cinfo h2{font-size:22px;color:var(--text);margin-bottom:14px;}
.cinfo p{font-size:14px;color:var(--text2);line-height:1.7;margin-bottom:22px;}
.cdetail{display:flex;align-items:flex-start;gap:14px;margin-bottom:16px;}
.cdetail-icon{width:38px;height:38px;background:var(--purple-glow);color:var(--purple);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0;}
.cdetail-text{font-size:14px;color:var(--text2);line-height:1.55;}
.cdetail-text strong{display:block;color:var(--text);font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px;}
.cform{display:flex;flex-direction:column;gap:12px;}
.cform input,.cform select,.cform textarea{width:100%;padding:11px 14px;border:1px solid var(--border2);border-radius:8px;font-size:14px;font-family:inherit;color:var(--text);background:var(--surface);outline:none;transition:border-color .2s;}
.cform input:focus,.cform select:focus,.cform textarea:focus{border-color:var(--purple);}
.cform textarea{resize:vertical;min-height:90px;}
.cform button{background:var(--navy);color:#fff;border:none;padding:13px;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;font-family:'Montserrat';transition:background .2s;}
.cform button:hover{background:var(--purple);}
.form-success{display:none;background:var(--green-dim);border:1px solid var(--green);border-radius:8px;padding:20px;text-align:center;color:var(--text);font-weight:600;font-size:15px;}
.form-error{color:#b91c1c;}

/* ── FOOTER ── */
footer{background:var(--navy);padding:36px 130px 36px 40px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;}
@media(max-width:900px){ footer{padding:28px 20px 110px;} }
.footer-brand{display:flex;align-items:center;gap:10px;}
.footer-info{font-size:14px;color:rgba(255,255,255,.9);line-height:1.8;text-align:center;}
.footer-info a{color:#B794F4;text-decoration:none;}
.footer-right{font-size:14px;color:rgba(255,255,255,.78);}

/* ── SOPHIE CHAT WIDGET ── */
.sophie-bubble{position:fixed;bottom:26px;right:26px;width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--purple-dark));box-shadow:0 6px 20px rgba(109,40,217,.4);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:500;border:3px solid #fff;overflow:hidden;}
.sophie-bubble img{width:100%;height:100%;object-fit:cover;object-position:top center;}
.sophie-dot{position:absolute;top:0;right:0;width:15px;height:15px;border-radius:50%;background:#4ade80;border:2px solid #fff;box-shadow:0 0 0 rgba(74,222,128,.5);animation:pulse 2s infinite;}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(74,222,128,.5);}70%{box-shadow:0 0 0 8px rgba(74,222,128,0);}100%{box-shadow:0 0 0 0 rgba(74,222,128,0);}}
.sophie-panel{position:fixed;bottom:102px;right:26px;width:360px;max-height:520px;background:var(--surface);border-radius:20px;box-shadow:var(--shadow-lg);z-index:501;display:none;flex-direction:column;overflow:hidden;border:1px solid var(--border2);}
.sophie-panel.show{display:flex;}
.sophie-head{background:var(--navy);padding:16px 18px;display:flex;align-items:center;gap:12px;}
.sophie-head img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:top center;border:2px solid var(--purple);}
.sophie-head-text{flex:1;}
.sophie-head-text .name{color:#fff;font-weight:800;font-size:15px;}
.sophie-head-text .status{color:#4ade80;font-size:12px;font-weight:600;display:flex;align-items:center;gap:5px;}
.sophie-head-text .status::before{content:'';width:7px;height:7px;border-radius:50%;background:#4ade80;}
.sophie-close{background:rgba(255,255,255,.1);border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:14px;}
.sophie-body{flex:1;overflow-y:auto;padding:18px;background:var(--surface2);}
.msg{max-width:85%;padding:11px 14px;border-radius:14px;font-size:14px;line-height:1.5;margin-bottom:12px;}
.msg.bot{background:var(--surface);border:1px solid var(--border2);border-top-left-radius:4px;}
.msg.user{background:var(--purple);color:#fff;border-top-right-radius:4px;margin-left:auto;}
.msg.typing{color:var(--text2);letter-spacing:2px;animation:sophie-typing-pulse 1.2s infinite;}
@keyframes sophie-typing-pulse{0%,100%{opacity:.4;}50%{opacity:1;}}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 16px;}
.chip{background:var(--surface);border:1px solid var(--purple);color:var(--purple-dark);font-size:13px;font-weight:700;padding:7px 12px;border-radius:99px;cursor:pointer;text-decoration:none;display:inline-block;}
.chip:hover{background:var(--purple-glow);}
.sophie-input{display:flex;gap:8px;padding:14px;background:var(--surface);border-top:1px solid var(--border2);}
.sophie-input input{flex:1;padding:11px 14px;border-radius:99px;border:1px solid var(--border2);background:var(--surface2);font-size:14px;font-family:inherit;}
.sophie-input input:focus{outline:none;border-color:var(--purple);}
.sophie-input button{width:40px;height:40px;border-radius:50%;background:var(--purple);color:#fff;border:none;cursor:pointer;font-size:16px;flex-shrink:0;}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  nav{padding:0 20px;}
  .hero{flex-direction:column;text-align:center;padding:48px 24px;}
  .hero-stats{justify-content:center;}
  .info-grid,.tier-row,.hub-grid,.svc-grid,.about-grid,.contact-grid,.advantage-grid{grid-template-columns:1fr;}
  .info-list[style*="column-count"]{column-count:1!important;}
  .dp-box{grid-template-columns:1fr;}
  .services-page,.about-page,.contact-page,.grid-wrap,.hub-section{padding-left:20px;padding-right:20px;}
  .page-hero{padding:44px 20px;}
  .page-hero h1{font-size:26px;}
  footer{flex-direction:column;text-align:center;}
  .sophie-panel{width:calc(100vw - 32px);right:16px;}
}
