:root{
  --bg:#020713;
  --bg-2:#051020;
  --panel:#071326;
  --panel-2:#091831;
  --line:rgba(93,145,255,.18);
  --text:#f6f9ff;
  --muted:#9eabc2;
  --blue:#1675ff;
  --blue-2:#0055ff;
  --cyan:#27a8ff;
  --radius:12px;
  --container:1380px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 68% 12%,rgba(0,80,255,.13),transparent 29%),
    radial-gradient(circle at 15% 55%,rgba(0,90,255,.08),transparent 32%),
    var(--bg);
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background-image:
    linear-gradient(rgba(52,109,220,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(52,109,220,.04) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,black,transparent 75%);
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.container{width:min(calc(100% - 80px),var(--container));margin:auto}
.section{position:relative;padding:82px 0}
.page-noise{
  position:fixed; inset:0; pointer-events:none; z-index:50; opacity:.03;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")
}
.cursor-glow{
  width:420px;height:420px;border-radius:50%;
  position:fixed;left:0;top:0;pointer-events:none;z-index:-1;
  background:radial-gradient(circle,rgba(0,96,255,.12),transparent 65%);
  transform:translate(-50%,-50%);
}
.site-header{
  position:sticky;top:0;z-index:40;
  background:rgba(2,7,19,.72);
  border-bottom:1px solid rgba(87,128,216,.08);
  backdrop-filter:blur(18px)
}
.nav-wrap{height:78px;display:flex;align-items:center;gap:42px}
.brand{display:inline-flex;flex-direction:column;line-height:.82;min-width:145px}
.brand-main{font-size:28px;font-weight:800;letter-spacing:-1.4px}
.brand-sub{font:600 9px/1.4 "JetBrains Mono";letter-spacing:3px;color:#238cff}
.main-nav{margin-left:auto;display:flex;gap:31px;font-size:13px}
.main-nav a{color:#dbe4f5;transition:.2s}
.main-nav a:hover{color:#2e8dff}
.btn{
  min-height:52px;padding:0 25px;border-radius:7px;border:1px solid transparent;
  display:inline-flex;align-items:center;justify-content:center;gap:18px;
  font-weight:700;font-size:13px;transition:.25s;white-space:nowrap
}
.btn-primary{background:linear-gradient(135deg,#1680ff,#0754f5);box-shadow:0 0 34px rgba(0,93,255,.28)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 0 48px rgba(0,93,255,.48)}
.btn-secondary{border-color:rgba(105,148,230,.25);background:rgba(4,13,28,.6)}
.btn-secondary:hover{border-color:#2589ff;background:rgba(11,35,73,.75)}
.btn-small{min-height:42px;padding:0 17px;font-size:11px;margin-left:10px}
.menu-toggle{display:none}
.hero{padding-top:40px}
.hero-grid{min-height:565px;display:grid;grid-template-columns:44% 56%;align-items:center}
.eyebrow{font:600 11px/1.2 "JetBrains Mono";letter-spacing:.8px;color:#1f8bff;margin-bottom:23px}
.dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:9px;background:#2295ff;box-shadow:0 0 10px #1686ff}
h1,h2,h3,p{margin-top:0}
h1{font-size:62px;line-height:1.08;letter-spacing:-3.5px;margin-bottom:22px}
h1 span{color:#257dff}
.hero-text{max-width:500px;color:#bbc5d8;font-size:16px;line-height:1.75;margin-bottom:29px}
.hero-actions{display:flex;gap:18px;margin-bottom:38px}
.hero-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:650px}
.hero-benefits div{display:flex;align-items:center;gap:12px;font-size:11px;line-height:1.55}
.icon-box,.service-icon{
  width:33px;height:33px;display:grid;place-items:center;flex:0 0 auto;
  border:1px solid rgba(44,131,255,.3);border-radius:8px;color:#2b92ff;background:rgba(10,53,118,.35)
}
.hero-visual{height:540px;position:relative;overflow:hidden}
#networkCanvas{position:absolute;inset:0;width:100%;height:100%}
.brain-glow{position:absolute;width:480px;height:350px;border-radius:50%;left:24%;top:18%;background:radial-gradient(circle,rgba(0,103,255,.28),rgba(0,68,255,.06) 40%,transparent 69%);filter:blur(12px)}
.ai-chip{
  position:absolute;left:52%;top:48%;transform:translate(-50%,-50%);
  width:100px;height:100px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;
  background:linear-gradient(145deg,#0b2e75,#05142f);border:2px solid #218cff;
  box-shadow:0 0 20px #006bff,0 0 70px rgba(0,83,255,.6),inset 0 0 18px rgba(43,142,255,.25)
}
.ai-chip::before,.ai-chip::after{content:"";position:absolute;inset:-14px;border:1px solid rgba(55,143,255,.28);border-radius:18px}
.ai-chip::after{inset:-27px;border-style:dashed;animation:spin 18s linear infinite}
.ai-chip span{font-weight:800;font-size:16px}.ai-chip small{font-size:6px;color:#69a8ff;letter-spacing:1px}.ai-chip strong{font-size:27px;color:#318cff;margin-top:7px}
@keyframes spin{to{transform:rotate(360deg)}}
.floating-card{
  position:absolute;min-width:160px;padding:14px 16px;border:1px solid rgba(68,132,236,.25);
  border-radius:10px;background:rgba(4,14,31,.78);backdrop-filter:blur(10px);
  display:flex;gap:11px;align-items:flex-start;box-shadow:0 12px 35px rgba(0,0,0,.25)
}
.floating-card b{font-size:10px}.floating-card small{display:block;color:#c0cae0;font-size:9px;margin-top:8px}
.mini-icon{color:#228aff}.card-1{left:10%;top:10%}.card-2{right:4%;top:12%}.card-3{left:6%;bottom:14%}.card-4{right:2%;bottom:25%}
.trust-row{border-top:1px solid rgba(84,124,203,.16);border-bottom:1px solid rgba(84,124,203,.11);min-height:104px;display:flex;align-items:center;gap:55px}
.trust-label{font:500 9px/1.8 "JetBrains Mono";letter-spacing:1px;color:#5c6f91}
.logo-strip{display:flex;align-items:center;justify-content:space-between;flex:1;color:#dce4f2;font-weight:600;font-size:20px;opacity:.8}
.services-section{padding-top:70px}
.section-heading h2,.project-copy h2,.cases-copy h2,.about-section h2{font-size:32px;letter-spacing:-1.2px;margin-bottom:0}
.services-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:24px}
.service-card,.case-card,.blog-card{
  position:relative;min-height:170px;padding:22px;border:1px solid var(--line);border-radius:var(--radius);
  background:linear-gradient(145deg,rgba(11,26,53,.88),rgba(4,13,28,.92));overflow:hidden
}
.service-card::after{content:"";position:absolute;width:150px;height:100px;right:-70px;top:-40px;background:#075eff;filter:blur(60px);opacity:.14}
.service-card:hover{transform:translateY(-5px);border-color:rgba(49,135,255,.48)}
.service-card{transition:.25s}
.service-card h3{font-size:15px;margin:15px 0 9px}.service-card p{font-size:12px;line-height:1.55;color:#b1bdd2;max-width:160px}.service-card a{position:absolute;right:20px;bottom:18px;color:#268bff}
.stats-panel{
  margin-top:14px;border:1px solid var(--line);border-radius:var(--radius);min-height:118px;
  display:grid;grid-template-columns:1.5fr repeat(4,1fr) 1.5fr;align-items:center;padding:20px 30px;background:rgba(5,16,34,.72)
}
.stats-panel code{font:500 9px/1.8 "JetBrains Mono";color:#1d67ba}
.stats-panel>div{text-align:center}.stats-panel strong{display:block;color:#2583ff;font-size:31px}.stats-panel strong::after{content:"+"}.stats-panel>div:nth-child(3) strong::after{content:"%"}.stats-panel>div:nth-child(4) strong::after{content:"K+"}.stats-panel>div:nth-child(5) strong::after{content:"%"}
.stats-panel span{font-size:10px;color:#bac4d8}
.project-grid{display:grid;grid-template-columns:34% 66%;gap:55px;align-items:center}
.project-copy p{color:#aab6cc;line-height:1.7;font-size:14px;max-width:390px;margin:22px 0}
.builder-panel{border:1px solid var(--line);border-radius:14px;padding:22px;background:rgba(6,17,36,.78)}
.builder-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:20px}
.builder-steps span{font-size:9px;color:#aab7cc;text-align:center;position:relative}
.builder-steps span:not(:last-child)::after{content:"";position:absolute;height:1px;width:42%;right:-21%;top:15px;background:#1e3e70}
.builder-steps i{width:31px;height:31px;border:1px solid #2e65aa;border-radius:50%;display:grid;place-items:center;margin:0 auto 9px;font-style:normal}
.builder-steps .active i{background:#137cff;box-shadow:0 0 20px rgba(19,124,255,.55);color:white}
.analysis-box{min-height:180px;border:1px solid var(--line);border-radius:10px;padding:22px 30px;display:grid;grid-template-columns:1fr 270px;align-items:center;overflow:hidden}
.analysis-box h4{font-size:13px}.pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:#2f91ff;box-shadow:0 0 0 0 rgba(47,145,255,.65);animation:pulse 1.8s infinite;margin-right:9px}
@keyframes pulse{70%{box-shadow:0 0 0 10px transparent}}
.analysis-box ul{list-style:none;padding:0;margin:18px 0 0}.analysis-box li{font-size:10px;color:#7688a9;margin:10px 0}.analysis-box li::before{content:"✓";color:#2588ff;border:1px solid #266aba;border-radius:50%;margin-right:10px;padding:1px 3px}
.orb{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;margin:auto;background:repeating-radial-gradient(circle,transparent 0 14px,rgba(31,126,255,.35) 15px 16px),radial-gradient(circle,#0855d8 0,transparent 66%);box-shadow:0 0 40px rgba(0,89,255,.4);animation:orb 5s ease-in-out infinite}
.orb span{font-size:30px;color:#45b7ff;text-shadow:0 0 16px #2d8cff}
@keyframes orb{50%{transform:scale(1.05) rotate(7deg)}}
.cases-grid{display:grid;grid-template-columns:1.05fr repeat(3,1.2fr);gap:14px}
.cases-copy{padding:16px 0}.cases-copy a{display:inline-block;margin-top:25px;color:#288cff;font-size:11px}
.case-card{min-height:245px}.case-metric span{font-size:9px;color:#8c9bb7;display:block}.case-metric strong{font-size:22px;display:block;margin-top:5px}
.chart{height:68px;margin:0 -5px 9px}.chart svg{width:100%;height:100%;overflow:visible}.chart polyline{fill:none;stroke:#1888ff;stroke-width:2}.chart circle{fill:#2ea1ff}
.case-card h3{font-size:14px;margin:10px 0}.case-card p{font-size:11px;color:#93a2bb;line-height:1.6}.case-card small{font-size:8px;border:1px solid var(--line);border-radius:10px;padding:4px 7px;color:#7f91ad}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;padding:45px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,rgba(10,28,58,.7),rgba(3,10,24,.7))}
.about-text p{color:#a9b6cc;line-height:1.8}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:25px}
.blog-card{min-height:190px}.blog-card span{font:600 9px "JetBrains Mono";color:#258cff}.blog-card h3{font-size:20px;line-height:1.35;margin:30px 0}.blog-card a{font-size:11px;color:#2d8eff}
.cta-panel{min-height:115px;border-radius:13px;padding:30px 72px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(100deg,#0a2b6c,#0b4fe5 70%,#0d7cff);box-shadow:0 16px 60px rgba(0,66,255,.22);overflow:hidden;position:relative}
.cta-panel::after{content:"";position:absolute;right:-40px;top:-100px;width:330px;height:250px;background:radial-gradient(circle,#45aaff,transparent 65%);opacity:.4}
.cta-panel h2{font-size:20px;margin-bottom:9px}.cta-panel p{font-size:11px;margin:0;color:#d7e5ff}.btn-light{position:relative;z-index:2;background:#147cff;border-color:#67b8ff}
.footer{display:flex;align-items:center;justify-content:space-between;padding:40px 0 0;color:#74839e;font-size:11px}
.chat-widget{position:fixed;right:20px;bottom:88px;width:285px;border:1px solid rgba(80,132,228,.28);border-radius:12px;background:rgba(5,15,34,.96);z-index:45;box-shadow:0 20px 50px rgba(0,0,0,.45);overflow:hidden;transition:.3s}
.chat-widget.closed{opacity:0;transform:translateY(20px) scale(.95);pointer-events:none}
.chat-head{padding:14px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.chat-head>div{display:grid;grid-template-columns:33px 1fr;column-gap:9px}.bot-icon{grid-row:1/3;width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#0b5ee7;font-size:9px}.chat-head b{font-size:10px}.chat-head small{font-size:8px;color:#57d286}.chat-close{background:none;border:0;color:#8ba4cc}
.chat-body{padding:15px}.chat-body p{font-size:11px;line-height:1.55}.chat-body button{width:100%;min-height:31px;margin-top:7px;border:1px solid var(--line);border-radius:16px;background:#08172f;color:#2b8aff;font-size:9px}
.chat-input{display:flex;padding:10px;border-top:1px solid var(--line)}.chat-input input{flex:1;background:#071326;border:1px solid var(--line);border-radius:18px;padding:10px;color:white;font-size:9px}.chat-input button{background:none;border:0;color:#258aff}
.chat-fab{position:fixed;right:22px;bottom:22px;width:55px;height:55px;border-radius:50%;border:0;background:#1269ff;color:white;font-size:25px;box-shadow:0 0 30px rgba(0,88,255,.55);z-index:44}
.project-modal{border:0;padding:0;background:transparent;color:white;width:min(760px,calc(100% - 30px))}
.project-modal::backdrop{background:rgba(0,4,12,.78);backdrop-filter:blur(7px)}
.modal-shell{position:relative;border:1px solid rgba(67,134,255,.35);border-radius:16px;padding:34px;background:#061126;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.modal-shell h2{font-size:28px}.modal-close{position:absolute;right:15px;top:12px;background:none;border:0;color:#8ba2c8;font-size:25px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{font-size:10px;color:#9fb0ca}.form-grid .full{grid-column:1/-1}
.form-grid input,.form-grid select,.form-grid textarea{width:100%;margin-top:8px;border:1px solid var(--line);border-radius:8px;background:#07162e;color:white;padding:13px;outline:none}.form-grid textarea{min-height:110px;resize:vertical}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#2689ff}
.form-submit{margin-top:18px}.form-note{font-size:9px;color:#6f819f;margin:12px 0 0}
.reveal{opacity:0;transform:translateY(20px);transition:opacity .65s ease,transform .65s ease}.reveal.visible{opacity:1;transform:none}
@media (max-width:1100px){
  .main-nav{display:none}.menu-toggle{display:block;margin-left:auto;background:none;border:0;width:40px}.menu-toggle span{display:block;height:2px;background:white;margin:7px}
  .main-nav.open{display:flex;position:absolute;top:78px;left:0;right:0;padding:25px 40px;background:#040c1b;flex-wrap:wrap}
  .services-grid{grid-template-columns:repeat(3,1fr)}.stats-panel{grid-template-columns:repeat(4,1fr)}.stats-panel code{display:none}
  .hero-grid{grid-template-columns:1fr}.hero-copy{padding-top:35px}.hero-visual{height:510px}.project-grid{grid-template-columns:1fr}.cases-grid{grid-template-columns:1fr 1fr}.cases-copy{grid-column:1/-1}
}
@media (max-width:720px){
  .container{width:min(calc(100% - 30px),var(--container))}.section{padding:58px 0}.header-cta{display:none}.nav-wrap{height:68px}.main-nav.open{top:68px;padding:20px 18px;gap:18px}
  h1{font-size:43px;letter-spacing:-2.2px}.hero{padding-top:20px}.hero-grid{min-height:auto}.hero-benefits{grid-template-columns:1fr 1fr}.hero-visual{height:410px;margin-top:10px}.floating-card{min-width:125px;padding:10px}.card-1{left:0}.card-2{right:0}.card-3{left:0}.card-4{right:0}.ai-chip{width:82px;height:82px}.trust-row{padding:20px 0;display:block}.trust-label{display:block;margin-bottom:20px}.logo-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;font-size:14px}
  .services-grid{grid-template-columns:1fr 1fr}.stats-panel{grid-template-columns:1fr 1fr;gap:25px}.project-copy h2,.section-heading h2,.cases-copy h2,.about-section h2{font-size:27px}.builder-steps{grid-template-columns:repeat(5,80px);overflow:auto;padding-bottom:8px}.analysis-box{grid-template-columns:1fr}.orb{width:120px;height:120px;margin-top:10px}.cases-grid,.about-grid,.blog-grid{grid-template-columns:1fr}.cases-copy{grid-column:auto}.about-grid{gap:25px;padding:28px}.cta-panel{padding:28px;display:block}.cta-panel .btn{margin-top:22px}.footer{gap:25px;align-items:flex-start;flex-direction:column}.chat-widget{width:calc(100% - 30px);right:15px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}
}
@media (max-width:480px){
  .services-grid{grid-template-columns:1fr}.hero-actions{flex-direction:column}.hero-actions .btn{width:100%}.hero-visual{height:360px}.floating-card{display:none}.logo-strip{grid-template-columns:1fr 1fr}
}

.chat-messages{height:235px;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:9px}
.chat-message{max-width:88%;padding:9px 11px;border-radius:10px;font-size:10px;line-height:1.5;white-space:pre-wrap}
.chat-message.assistant{align-self:flex-start;background:#0a1b38;border:1px solid var(--line);color:#dbe7fa}
.chat-message.user{align-self:flex-end;background:#1168e8;color:white}
.chat-message.typing{color:#7e94b7}
.chat-quick{padding:0 12px 10px;display:flex;gap:5px;flex-wrap:wrap}
.chat-quick button{border:1px solid var(--line);border-radius:14px;padding:6px 9px;background:#07162e;color:#3b94ff;font-size:8px}
.project-modal{width:min(920px,calc(100% - 24px));max-height:94vh}
.modal-shell{max-height:94vh;overflow-y:auto}
.quiz-top{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;margin-bottom:22px}
.quiz-progress-wrap{width:220px;font:500 9px "JetBrains Mono";color:#8fa3c2;text-align:right}
.quiz-progress{height:5px;border-radius:5px;background:#0a1b37;overflow:hidden;margin-top:10px}
.quiz-progress i{display:block;height:100%;width:14.285%;background:#1682ff;box-shadow:0 0 15px #1682ff;transition:.3s}
.quiz-step{display:none;min-height:390px}
.quiz-step.active{display:block}
.quiz-step h3{font-size:21px;margin-bottom:7px}
.quiz-help{font-size:11px;color:#8fa0bb;margin-bottom:18px}
.option-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.option-grid.compact{grid-template-columns:repeat(2,1fr)}
.quiz-option{display:block;cursor:pointer}
.quiz-option input{position:absolute;opacity:0;pointer-events:none}
.quiz-option span{display:block;min-height:70px;padding:15px;border:1px solid var(--line);border-radius:9px;background:#07162e;font-size:12px;transition:.2s}
.quiz-option span small{display:block;margin-top:7px;color:#8496b3;font-size:9px;line-height:1.45}
.quiz-option input:checked+span{border-color:#268aff;background:#0b2553;box-shadow:0 0 22px rgba(0,104,255,.18)}
.quiz-inline-label{display:block;margin-top:16px;font-size:10px;color:#9fb0ca}
.quiz-inline-label input{width:100%;margin-top:8px;border:1px solid var(--line);border-radius:8px;background:#07162e;color:white;padding:13px}
.quiz-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:18px}
#quizPrev{margin-right:auto}
#quizSubmit{display:none}
.quiz-status{min-height:23px;font-size:10px;color:#ff8080}
.quiz-status.success{color:#55dc9a}
.quiz-summary{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#06142b;font-size:10px;line-height:1.65;color:#9fb0ca}
.consent{display:flex!important;align-items:center;gap:10px}
.consent input{width:auto!important;margin:0!important}
@media(max-width:720px){
  .quiz-top{display:block}.quiz-progress-wrap{width:100%;text-align:left;margin-top:15px}
  .option-grid,.option-grid.compact{grid-template-columns:1fr}
  .quiz-step{min-height:auto}.quiz-actions .btn{padding:0 14px}
}

.quiz-controls{display:flex;align-items:flex-end;gap:14px}
.quiz-language-label{font-size:9px;color:#8fa3c2;display:flex;flex-direction:column;gap:7px}
.quiz-language{border:1px solid var(--line);border-radius:7px;background:#07162e;color:#fff;padding:9px 11px;font-size:10px;min-width:120px}
.quiz-option b{display:block;font-size:12px;font-weight:600}
@media(max-width:720px){
  .quiz-controls{align-items:flex-start;flex-wrap:wrap;margin-top:15px}
}


/* ===== Mobile horizontal overflow fix ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

img, svg, canvas, video, iframe {
  max-width: 100%;
}

.site-header,
main,
section,
footer,
.container,
.nav-wrap,
.hero-grid,
.project-grid,
.cases-grid,
.about-grid,
.blog-grid,
.services-grid,
.stats-panel,
.builder-panel,
.analysis-box,
.cta-panel,
.footer {
  min-width: 0;
  max-width: 100%;
}

.hero-copy,
.hero-visual,
.project-copy,
.builder-panel,
.case-card,
.service-card,
.blog-card,
.about-grid > *,
.analysis-box > * {
  min-width: 0;
}

.hero-visual {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#networkCanvas {
  display: block;
  max-width: 100%;
  touch-action: pan-y;
}

.main-nav.open {
  max-width: 100vw;
  overflow-x: hidden;
}

.project-modal {
  max-width: calc(100vw - 20px);
  margin: auto;
}

.modal-shell {
  width: 100%;
  max-width: 100%;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.quiz-inline-label input,
.quiz-language {
  min-width: 0;
  max-width: 100%;
}

.chat-widget {
  max-width: calc(100vw - 30px);
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .section {
    overflow: hidden;
  }

  .hero-grid,
  .project-grid,
  .cases-grid,
  .about-grid,
  .blog-grid,
  .services-grid {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-visual {
    width: 100%;
    height: 350px;
    margin-left: 0;
    margin-right: 0;
  }

  .brain-glow {
    left: 50%;
    transform: translateX(-50%);
    width: min(430px, 110vw);
  }

  .ai-chip {
    left: 50%;
  }

  .hero-benefits {
    width: 100%;
  }

  .trust-row {
    width: calc(100% - 24px);
  }

  .logo-strip {
    width: 100%;
    min-width: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    padding: 18px 12px;
    gap: 20px 8px;
  }

  .stats-panel > div {
    min-width: 0;
  }

  .project-grid {
    gap: 28px;
  }

  .builder-panel {
    width: 100%;
    padding: 14px;
    overflow: hidden;
  }

  .builder-steps {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 0 0 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .builder-steps span {
    flex: 0 0 92px;
    min-width: 92px;
    scroll-snap-align: start;
  }

  .builder-steps span:not(:last-child)::after {
    display: none;
  }

  .analysis-box {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  .orb {
    max-width: 120px;
  }

  .about-grid {
    padding: 24px 18px;
  }

  .cta-panel {
    width: 100%;
    padding: 26px 20px;
  }

  .footer {
    width: 100%;
  }

  .chat-widget {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .chat-fab {
    right: 14px;
  }

  .project-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 0;
  }

  .modal-shell {
    padding: 22px 14px;
    max-height: 92vh;
  }

  .quiz-top {
    width: 100%;
  }

  .quiz-controls {
    width: 100%;
  }

  .quiz-language {
    width: 100%;
  }

  .quiz-progress-wrap {
    width: 100%;
  }

  .option-grid,
  .option-grid.compact,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiz-option span {
    width: 100%;
  }

  .quiz-actions {
    position: sticky;
    bottom: -1px;
    background: #061126;
    margin: 0 -14px -22px;
    padding: 14px;
    z-index: 2;
    flex-wrap: wrap;
  }

  .quiz-actions .btn {
    min-width: 0;
    flex: 1 1 auto;
  }

  #quizPrev {
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 38px;
    letter-spacing: -1.7px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .logo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #quizSubmit {
    grid-column: 1 / -1;
  }
}


/* ===== Final spacing and mobile polish ===== */
:root{
  --mobile-gutter: 18px;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

.container {
  padding-left: 0;
  padding-right: 0;
}

.about-grid {
  padding: 45px;
}

.section,
.site-header,
footer {
  overflow-x: clip;
}

.hero-copy,
.section-heading,
.project-copy,
.cases-copy,
.about-grid,
.blog-card,
.case-card,
.service-card,
.cta-panel,
.footer {
  min-width: 0;
}

.hero-copy p,
.section-heading p,
.project-copy p,
.about-text p,
.case-card p,
.blog-card p,
.service-card p {
  overflow-wrap: anywhere;
}

.project-modal {
  width: min(920px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  margin: auto;
}

.modal-shell {
  width: 100%;
  max-width: 100%;
  padding-bottom: 96px;
}

.quiz-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: rgba(6, 17, 38, .98);
  backdrop-filter: blur(12px);
  box-shadow: 0 -10px 30px rgba(0,0,0,.35);
}

.quiz-actions .btn {
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff;
  min-height: 48px;
}

#quizSubmit {
  background: linear-gradient(135deg,#1680ff,#0754f5);
}

#quizNext {
  background: linear-gradient(135deg,#1680ff,#0754f5);
}

#quizPrev {
  background: rgba(9, 24, 49, .95);
  border-color: rgba(75, 137, 255, .35);
}

.quiz-step {
  scroll-margin-bottom: 110px;
}

.quiz-option span,
.form-grid input,
.form-grid select,
.form-grid textarea,
.quiz-inline-label input,
.quiz-language {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - (var(--mobile-gutter) * 2));
    max-width: calc(100% - (var(--mobile-gutter) * 2));
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .hero,
  .services-section,
  .project-section,
  .cases-section,
  .about-section,
  .blog-section,
  .cta-section {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-copy,
  .section-heading,
  .project-copy,
  .cases-copy {
    padding-left: 2px;
    padding-right: 2px;
  }

  h1,
  .section-heading h2,
  .project-copy h2,
  .cases-copy h2,
  .about-section h2 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .project-copy .btn,
  .cta-panel .btn {
    width: 100%;
    max-width: 100%;
  }

  .hero-benefits {
    padding-left: 0;
    padding-right: 0;
  }

  .trust-row {
    width: calc(100% - (var(--mobile-gutter) * 2));
    max-width: calc(100% - (var(--mobile-gutter) * 2));
  }

  .services-grid,
  .blog-grid,
  .cases-grid,
  .project-grid,
  .about-grid {
    gap: 14px;
  }

  .service-card,
  .case-card,
  .blog-card {
    padding: 20px 18px;
  }

  .stats-panel {
    padding: 20px 16px;
  }

  .builder-panel {
    padding: 16px;
  }

  .analysis-box {
    padding: 18px 16px;
  }

  .about-grid {
    padding: 24px 18px;
  }

  .cta-panel {
    padding: 26px 20px;
    border-radius: 12px;
  }

  .footer {
    padding-left: 2px;
    padding-right: 2px;
  }

  .project-modal {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    margin: 6px auto;
  }

  .modal-shell {
    max-height: calc(100vh - 12px);
    padding: 20px 16px 104px;
    border-radius: 14px;
  }

  .quiz-top {
    gap: 14px;
  }

  .quiz-step {
    padding-left: 1px;
    padding-right: 1px;
  }

  .quiz-option span {
    padding: 15px 14px;
  }

  .form-grid {
    gap: 13px;
  }

  .form-grid label,
  .quiz-inline-label {
    width: 100%;
    min-width: 0;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  .quiz-inline-label input {
    padding: 13px 12px;
    font-size: 16px;
  }

  .quiz-actions {
    left: 0;
    right: 0;
    margin: 18px -16px -104px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .quiz-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    font-size: 12px;
  }

  #quizPrev {
    grid-column: 1;
  }

  #quizNext {
    grid-column: 2;
  }

  #quizSubmit {
    grid-column: 1 / -1;
  }

  .chat-widget {
    left: 12px;
    right: 12px;
    width: auto;
  }
}

@media (max-width: 420px) {
  :root{
    --mobile-gutter: 16px;
  }

  h1 {
    font-size: 37px;
    line-height: 1.06;
  }

  .section-heading h2,
  .project-copy h2,
  .cases-copy h2,
  .about-section h2 {
    font-size: 26px;
  }

  .service-card,
  .case-card,
  .blog-card {
    padding: 18px 16px;
  }

  .modal-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quiz-actions {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* ===== Final quiz navigation button correction ===== */
.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quiz-actions .btn {
  min-width: 170px;
  min-height: 54px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  opacity: 1 !important;
  visibility: visible !important;
}

#quizPrev,
#quizPrev.btn-secondary {
  color: #ffffff !important;
  background: #0f2345 !important;
  border: 1px solid rgba(64, 150, 255, .42) !important;
  box-shadow: none !important;
}

#quizPrev:hover {
  color: #ffffff !important;
  background: #173463 !important;
  border-color: rgba(74, 160, 255, .7) !important;
  transform: translateY(-1px);
}

#quizNext,
#quizSubmit {
  color: #ffffff !important;
}

@media (max-width: 720px) {
  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .quiz-actions .btn {
    min-width: 0;
    width: 100%;
    min-height: 52px;
    font-size: 13px;
  }

  #quizPrev {
    grid-column: 1;
  }

  #quizNext {
    grid-column: 2;
  }

  #quizSubmit {
    grid-column: 1 / -1;
  }
}


/* ===== Technologies logo section ===== */
.technology-strip{
  border-top:1px solid rgba(84,124,203,.16);
  border-bottom:1px solid rgba(84,124,203,.12);
  padding:34px 0 28px;
}
.technology-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:22px;
}
.technology-kicker{
  font:600 10px/1.4 "JetBrains Mono",monospace;
  letter-spacing:1.4px;
  color:#348fff;
}
.technology-intro p{
  margin:0;
  color:#7687a5;
  font-size:11px;
}
.technology-logos{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}
.tech-logo{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px;
  border:1px solid rgba(79,132,228,.16);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(9,23,48,.72),rgba(4,12,27,.82));
  color:#9ba9bf;
  filter:grayscale(1);
  opacity:.72;
  transition:transform .25s ease,border-color .25s ease,opacity .25s ease,filter .25s ease,box-shadow .25s ease;
}
.tech-logo:hover{
  transform:translateY(-3px);
  border-color:rgba(45,139,255,.5);
  opacity:1;
  filter:none;
  color:#fff;
  box-shadow:0 12px 35px rgba(0,73,190,.18);
}
.tech-logo strong{
  font-size:13px;
  font-weight:650;
  white-space:nowrap;
}
.tech-mark{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 30px;
  border-radius:8px;
  background:#0a1d3d;
  border:1px solid rgba(77,142,255,.25);
  color:#56a5ff;
  font-weight:800;
  font-size:15px;
}
.tech-aws{font-size:9px;text-transform:lowercase}
.tech-stripe{font-style:italic}
.tech-twilio{font-size:18px;letter-spacing:-3px;padding-right:3px}
.tech-react{font-size:20px}
.technology-groups{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:14px;
}
.technology-groups article{
  padding:15px 17px;
  border:1px solid rgba(79,132,228,.12);
  border-radius:10px;
  background:rgba(5,15,32,.6);
}
.technology-groups span{
  display:block;
  font:600 9px/1.3 "JetBrains Mono",monospace;
  letter-spacing:.8px;
  color:#268aff;
  margin-bottom:8px;
}
.technology-groups p{
  margin:0;
  color:#8d9cb5;
  font-size:10px;
  line-height:1.6;
}
@media(max-width:1100px){
  .technology-logos{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:720px){
  .technology-strip{
    width:calc(100% - 32px);
    padding:26px 0 22px;
  }
  .technology-intro{
    display:block;
    padding:0 2px;
  }
  .technology-intro p{
    margin-top:8px;
    line-height:1.55;
  }
  .technology-logos{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .tech-logo{
    min-height:64px;
    justify-content:flex-start;
    padding:11px 12px;
  }
  .tech-logo strong{
    font-size:11px;
    white-space:normal;
  }
  .technology-groups{
    grid-template-columns:1fr;
  }
}


/* ===== Final readability and logo upgrade ===== */
:root{
  --container: 1480px;
}

body{
  font-size:18px;
}

.brand-with-logo{
  flex-direction:row;
  align-items:center;
  gap:16px;
  min-width:260px;
  line-height:1.1;
}

.brand-logo-wrap{
  width:86px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.brand-logo{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 0 12px rgba(31,126,255,.22));
  transition:transform .25s ease,filter .25s ease;
}

.brand-with-logo:hover .brand-logo{
  transform:scale(1.04);
  filter:drop-shadow(0 0 18px rgba(31,126,255,.42));
}

.brand-copy{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.brand-with-logo .brand-main{
  font-size:20px;
  letter-spacing:-.5px;
  line-height:1.1;
}

.brand-with-logo .brand-sub{
  font-size:8px;
  letter-spacing:1.5px;
}

.nav-wrap{
  height:92px;
}

.main-nav{
  gap:34px;
  font-size:15px;
}

.btn{
  min-height:62px;
  padding:0 30px;
  font-size:16px;
  border-radius:10px;
}

.btn-small{
  min-height:50px;
  padding:0 22px;
  font-size:14px;
}

.hero-grid{
  min-height:690px;
}

h1{
  font-size:clamp(58px,5vw,86px);
  line-height:1.03;
  letter-spacing:-4px;
}

.hero-text{
  max-width:620px;
  font-size:21px;
  line-height:1.75;
}

.eyebrow{
  font-size:13px;
  letter-spacing:1.1px;
}

.hero-benefits{
  max-width:760px;
  gap:24px;
}

.hero-benefits div{
  font-size:14px;
}

.icon-box,
.service-icon{
  width:48px;
  height:48px;
  border-radius:11px;
  font-size:22px;
}

.section-heading h2,
.project-copy h2,
.cases-copy h2,
.about-section h2{
  font-size:clamp(38px,3.1vw,54px);
  line-height:1.1;
}

.services-grid{
  gap:16px;
}

.service-card,
.case-card,
.blog-card{
  min-height:220px;
  padding:30px;
}

.service-card h3{
  font-size:20px;
  margin:20px 0 12px;
}

.service-card p,
.case-card p,
.blog-card p{
  font-size:15px;
  line-height:1.7;
}

.stats-panel{
  min-height:150px;
  padding:28px 34px;
}

.stats-panel strong{
  font-size:42px;
}

.stats-panel span{
  font-size:13px;
}

.project-copy p,
.about-text p{
  font-size:18px;
}

.builder-panel{
  padding:28px;
}

.builder-steps span{
  font-size:12px;
}

.builder-steps i{
  width:42px;
  height:42px;
  font-size:14px;
}

.analysis-box{
  min-height:230px;
  padding:30px 36px;
}

.analysis-box h4{
  font-size:17px;
}

.analysis-box li{
  font-size:14px;
}

.case-metric span{
  font-size:12px;
}

.case-metric strong{
  font-size:30px;
}

.case-card h3{
  font-size:19px;
}

.blog-card h3{
  font-size:27px;
}

.cta-panel{
  min-height:150px;
  padding:36px 74px;
}

.cta-panel h2{
  font-size:29px;
}

.cta-panel p{
  font-size:15px;
}

.chat-widget{
  width:360px;
}

.chat-head{
  padding:18px;
}

.chat-head b{
  font-size:13px;
}

.chat-head small{
  font-size:10px;
}

.chat-messages{
  height:300px;
  padding:18px;
  gap:12px;
}

.chat-message{
  font-size:14px;
  line-height:1.55;
  padding:12px 14px;
}

.chat-quick button{
  font-size:11px;
  padding:8px 11px;
}

.chat-input input{
  font-size:14px;
  padding:14px;
}

.chat-fab{
  width:68px;
  height:68px;
  font-size:31px;
}

.project-modal{
  width:min(1020px,calc(100% - 30px));
}

.modal-shell{
  padding:42px;
}

.modal-shell h2{
  font-size:36px;
}

.quiz-step h3{
  font-size:27px;
}

.quiz-help{
  font-size:14px;
}

.quiz-option span{
  min-height:88px;
  padding:20px;
  font-size:16px;
}

.quiz-option span small{
  font-size:12px;
}

.form-grid label,
.quiz-inline-label{
  font-size:13px;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.quiz-inline-label input,
.quiz-language{
  font-size:16px;
  padding:16px;
}

.quiz-actions .btn{
  min-height:58px;
  font-size:16px;
}

.technology-kicker{
  font-size:12px;
}

.technology-intro p{
  font-size:14px;
}

.tech-logo{
  min-height:88px;
  padding:16px;
}

.tech-logo strong{
  font-size:16px;
}

.tech-mark{
  width:40px;
  height:40px;
  flex-basis:40px;
  font-size:19px;
}

.technology-groups article{
  padding:20px;
}

.technology-groups span{
  font-size:11px;
}

.technology-groups p{
  font-size:13px;
}

.ai-chip-logo{
  width:120px;
  height:120px;
  padding:16px;
}

.ai-chip-logo img{
  width:74px;
  height:44px;
  object-fit:contain;
  margin-bottom:5px;
}

.ai-chip-logo strong{
  font-size:28px;
  margin:0;
}

.footer-brand{
  min-width:0;
}

@media(max-width:1100px){
  .brand-copy{display:none}
  .brand-with-logo{min-width:auto}
  .brand-logo-wrap{width:76px;height:48px}
}

@media(max-width:720px){
  body{font-size:16px}

  .nav-wrap{
    height:78px;
  }

  .brand-logo-wrap{
    width:72px;
    height:44px;
  }

  h1{
    font-size:clamp(44px,12vw,60px);
    line-height:1.04;
    letter-spacing:-2.5px;
  }

  .hero-text{
    font-size:18px;
  }

  .eyebrow{
    font-size:11px;
  }

  .hero-benefits{
    grid-template-columns:1fr 1fr;
    gap:18px;
  }

  .hero-benefits div{
    font-size:13px;
  }

  .icon-box,
  .service-icon{
    width:44px;
    height:44px;
    font-size:20px;
  }

  .section-heading h2,
  .project-copy h2,
  .cases-copy h2,
  .about-section h2{
    font-size:34px;
  }

  .service-card,
  .case-card,
  .blog-card{
    min-height:200px;
    padding:24px 20px;
  }

  .service-card h3{
    font-size:19px;
  }

  .service-card p,
  .case-card p,
  .blog-card p{
    font-size:15px;
  }

  .stats-panel strong{
    font-size:36px;
  }

  .project-copy p,
  .about-text p{
    font-size:17px;
  }

  .builder-panel{
    padding:18px;
  }

  .analysis-box{
    padding:22px 18px;
  }

  .chat-widget{
    width:auto;
    left:12px;
    right:12px;
  }

  .chat-message{
    font-size:14px;
  }

  .modal-shell{
    padding:24px 16px 108px;
  }

  .modal-shell h2{
    font-size:29px;
  }

  .quiz-step h3{
    font-size:23px;
  }

  .quiz-option span{
    min-height:78px;
    font-size:15px;
  }

  .technology-logos{
    grid-template-columns:1fr 1fr;
  }

  .tech-logo{
    min-height:76px;
  }

  .tech-logo strong{
    font-size:14px;
  }
}

@media(max-width:420px){
  h1{
    font-size:42px;
  }

  .hero-benefits{
    grid-template-columns:1fr;
  }

  .technology-logos{
    grid-template-columns:1fr;
  }

  .tech-logo{
    justify-content:flex-start;
  }
}


/* ===== FINAL MOBILE MENU + BUTTON VISIBILITY FIX ===== */

/* All interactive buttons must remain readable */
.btn,
.btn:link,
.btn:visited,
button.btn,
a.btn {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

.btn-primary,
.btn-light,
#quizNext,
#quizSubmit,
.form-submit {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1680ff, #0754f5) !important;
  border-color: rgba(85, 164, 255, .65) !important;
}

.btn-secondary,
#quizPrev {
  color: #ffffff !important;
  background: #0b1d3b !important;
  border: 1px solid rgba(85, 151, 255, .42) !important;
}

.btn-primary span,
.btn-secondary span,
.btn-light span,
#quizNext span,
#quizSubmit span,
#quizPrev span {
  color: inherit !important;
  opacity: 1 !important;
}

/* Mobile menu trigger */
.menu-toggle {
  position: relative;
  z-index: 1002;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 0;
  border-radius: 3px;
  background: #ffffff;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .site-header {
    overflow: visible !important;
  }

  .nav-wrap {
    position: relative;
  }

  .menu-toggle {
    display: flex !important;
    margin-left: auto;
  }

  .main-nav {
    display: none !important;
    position: fixed !important;
    top: 78px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px !important;
    flex-direction: column !important;
    gap: 6px !important;
    border: 1px solid rgba(75, 139, 255, .32) !important;
    border-radius: 14px !important;
    background: rgba(3, 11, 25, .98) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .58) !important;
    backdrop-filter: blur(18px) !important;
    z-index: 1001 !important;
  }

  .main-nav.open {
    display: flex !important;
  }

  .main-nav a {
    display: flex !important;
    align-items: center !important;
    min-height: 50px !important;
    width: 100% !important;
    padding: 0 15px !important;
    border-radius: 9px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: rgba(8, 24, 51, .45) !important;
  }

  .main-nav a:hover,
  .main-nav a:active {
    background: rgba(19, 91, 207, .28) !important;
    color: #ffffff !important;
  }

  body.menu-open {
    overflow: hidden !important;
  }
}

@media (max-width: 720px) {
  .main-nav {
    top: 78px !important;
  }

  .hero-actions .btn,
  .project-copy .btn,
  .cta-panel .btn,
  .quiz-actions .btn {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .quiz-actions {
    background: rgba(6, 17, 38, .99) !important;
  }

  .quiz-actions .btn {
    min-height: 54px !important;
    border-radius: 10px !important;
  }
}


/* ===== PRODUCTION FINAL: compact footer, reliable menu, visible buttons ===== */

.footer-compact{
  margin-top:28px;
  padding:30px 0 18px;
  border-top:1px solid rgba(77,132,224,.16);
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);
  gap:28px 48px;
  align-items:start;
  min-height:0 !important;
}

.footer-profile{
  max-width:680px;
}

.footer-profile p{
  margin:16px 0 0;
  color:#8d9bb4;
  font-size:14px;
  line-height:1.7;
}

.footer-links{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.footer-links a{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border:1px solid rgba(79,143,255,.24);
  border-radius:9px;
  background:rgba(7,21,45,.74);
  color:#eaf2ff !important;
  font-size:14px;
  font-weight:650;
  transition:.2s ease;
}

.footer-links a:hover{
  transform:translateY(-2px);
  border-color:rgba(64,145,255,.55);
  background:rgba(12,39,82,.9);
}

.footer-bottom{
  grid-column:1/-1;
  padding-top:18px;
  border-top:1px solid rgba(77,132,224,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:#687994;
  font-size:12px;
}

.footer-bottom a{
  color:#8faeff !important;
}

/* remove excessive empty footer/CTA space */
.cta-section{
  padding-bottom:34px !important;
  min-height:0 !important;
}

.footer,
footer{
  min-height:0 !important;
}

@media(max-width:720px){
  .footer-compact{
    grid-template-columns:1fr;
    gap:24px;
    padding:24px 0 14px;
  }

  .footer-links{
    grid-template-columns:1fr 1fr;
  }

  .footer-bottom{
    grid-column:auto;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
}

@media(max-width:420px){
  .footer-links{
    grid-template-columns:1fr;
  }
}

/* hard guarantee for button legibility */
.btn,
button.btn,
a.btn,
#quizPrev,
#quizNext,
#quizSubmit{
  color:#fff !important;
  opacity:1 !important;
  visibility:visible !important;
}

#quizPrev{
  background:#0f2345 !important;
  border:1px solid rgba(76,153,255,.48) !important;
}

#quizNext,
#quizSubmit,
.btn-primary{
  background:linear-gradient(135deg,#1680ff,#0754f5) !important;
  border-color:rgba(87,168,255,.62) !important;
}

/* reliable mobile navigation */
@media(max-width:1100px){
  .menu-toggle{
    display:flex !important;
    pointer-events:auto !important;
  }

  .main-nav{
    display:none !important;
  }

  .main-nav.open{
    display:flex !important;
  }
}




/* Chat is implemented in chat.css. Keep the page from scrolling horizontally. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/* ===== Critical reliability fix =====
   Content must never disappear when JavaScript or IntersectionObserver fails. */
.reveal,
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Keep the hero and all sections in normal document flow. */
main,
.hero,
.hero-grid,
.hero-copy,
.hero-visual,
.services-section,
.project-section,
.cases-section,
.about-section,
.blog-section,
.cta-section {
  visibility: visible !important;
}
/* Отступы внутри блока About */
#about .container.about-grid {
  padding: 45px !important;
}

@media (max-width: 720px) {
  #about .container.about-grid {
    padding: 24px 18px !important;
  }
}