:root {
  --bg: #050d22;
  --bg-2: #081634;
  --panel: rgba(18, 40, 86, .45);
  --border: rgba(40, 219, 238, .18);
  --cyan: #12E4E7;
  --cyan-2: #28DBEE;
  --blue: #21A7EF;
  --violet: #7552EF;
  --text: #EAF4FF;
  --soft: #A9BEDD;
  --grad: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 52%, var(--violet) 100%);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(33,167,239,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(117,82,239,.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--cyan-2); }
a:hover { color: #fff; }
.text-soft { color: var(--soft) !important; }
.text-cyan { color: var(--cyan); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mw-700 { max-width: 700px; }

.glass {
  background: var(--panel);
  border: 0;
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* Buttons */
.btn-grad {
  background: linear-gradient(90deg, #6ff1f5, #43c6f5);
  color: #04122e; font-weight: 700; border: 0;
  border-radius: 999px; padding-inline: 1.6rem;
  box-shadow: 0 0 25px rgba(40,219,238,.45);
  transition: transform .2s, box-shadow .2s;
}
.btn-grad:hover, .btn-grad:focus { color: #04122e; transform: translateY(-2px); box-shadow: 0 0 35px rgba(40,219,238,.7); background: linear-gradient(90deg, #8af5f8, #5fd0f7); }
.btn-outline-light { border-radius: 999px; border-color: rgba(255,255,255,.35); }
.btn-lg { padding-block: .8rem; }

/* Navbar */
.navbar { transition: background .3s, padding .3s; padding-block: 1rem; }
.navbar.scrolled { background: rgba(5,13,34,.85); backdrop-filter: blur(12px); padding-block: .5rem; border-bottom: 1px solid var(--border); }
.navbar .nav-link { color: var(--soft); font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--cyan-2); }
.navbar-brand img { height: 40px; width: auto; }
@media (max-width: 991.98px) {
  .navbar-collapse { background: rgba(5,13,34,.96); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; margin-top: .75rem; }
}
.lang-switch .btn { color: var(--soft); border: 1px solid var(--border); padding: .2rem .65rem; }
.lang-switch .btn.lang-active { background: var(--grad); color: #fff; border-color: transparent; }

/* Hero */
.hero { position: relative; padding: 9rem 0 6rem; overflow: hidden; }
.hero-logo { max-width: 340px; width: 75%; height: auto; }
.hero h1 { font-weight: 800; letter-spacing: -.02em; }
.underline { width: 260px; max-width: 70%; height: 6px; border-radius: 6px; background: var(--grad); box-shadow: 0 0 20px rgba(40,219,238,.6); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.glow-1 { width: 460px; height: 460px; background: var(--blue); top: 10%; right: -120px; }
.glow-2 { width: 300px; height: 300px; background: var(--violet); bottom: -80px; left: 30%; opacity: .25; }

.hero-visual { position: relative; }
.doc-icons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.doc-icons span {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 1.8rem;
  border-radius: 14px; background: rgba(20,45,95,.6); border: 1px solid rgba(40,219,238,.35);
  box-shadow: 0 0 20px rgba(33,167,239,.35); color: #fff; animation: float 6s ease-in-out infinite;
}
.doc-icons span:nth-child(2) { animation-delay: -1s; } .doc-icons span:nth-child(3) { animation-delay: -2s; }
.doc-icons span:nth-child(4) { animation-delay: -3s; } .doc-icons span:nth-child(5) { animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.chat-card { padding: 1.5rem; }
.chat-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ef08a; box-shadow: 0 0 8px #3ef08a; }
.bubble { padding: .8rem 1rem; border-radius: 1rem; margin-bottom: .75rem; max-width: 88%; font-size: .95rem; }
.bubble.user { margin-left: auto; background: rgba(33,167,239,.25); border: 1px solid rgba(33,167,239,.4); border-bottom-right-radius: .25rem; }
.bubble.bot { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-bottom-left-radius: .25rem; }
.bubble .src { display: block; margin-top: .4rem; font-size: .8rem; color: var(--cyan-2); }
.chat-input { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--border); color: var(--soft); font-size: .9rem; }
.chat-input i { color: var(--cyan); flex: none; }
.chat-input .ci-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-right: .75rem; }

/* Animated chat preview (enabled by JS via .chat-anim; static without JS) */
.chat-slot { position: relative; }
.chat-anim .bubble { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.chat-anim .bubble.show { opacity: 1; transform: none; }
.chat-anim .ci-typed { display: none; }
.chat-anim.typing-on .ci-text { display: none; }
.chat-anim.typing-on .ci-typed { display: flex; justify-content: flex-end; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; margin-right: .75rem; color: var(--text); }
.ci-typed::after { content: ""; flex: none; width: 2px; height: 1.1em; margin-left: 2px; align-self: center; background: var(--cyan); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat-input i.sent { animation: send .45s ease; }
@keyframes send { 40% { transform: translateX(6px) scale(1.25); color: #fff; } }
.typing-dots { position: absolute; top: 0; left: 0; display: inline-flex; gap: 5px; padding: 1rem 1.1rem; border-radius: 1rem; border-bottom-left-radius: .25rem; background: rgba(255,255,255,.06); border: 1px solid var(--border); opacity: 0; transition: opacity .25s; }
.typing-dots.show { opacity: 1; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-2); animation: dot 1.2s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: .15s; } .typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* Sections */
.section { padding: 6rem 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(8,22,52,.7), transparent); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 700; color: var(--cyan-2); margin-bottom: .5rem; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-head .eyebrow { margin-bottom: .5rem; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 1rem 0 0; }

.card-svc { padding: 2rem; }
.card-svc .icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; color: var(--cyan); background: rgba(18,228,231,.08); border: 1px solid var(--border); margin-bottom: 1.25rem; }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 1.8rem; margin-bottom: .5rem; }
.list-check li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: -.05rem; color: var(--cyan); font-size: 1.2rem; }
.list-check.big li { font-size: 1.15rem; margin-bottom: .9rem; }

/* Flow */
.flow { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.5rem; text-align: center; }
.flow-step { flex: 1; }
.flow-core { padding: 1.75rem 1.25rem; border-radius: 1.25rem; background: rgba(18,40,86,.7); }
.flow-arrow { font-size: 2rem; color: var(--cyan); }
.icon-lg { font-size: 3rem; color: #fff; margin-bottom: .5rem; }
@media (max-width: 767.98px) {
  .flow { flex-direction: column; padding: 1.75rem; }
  .flow-arrow { transform: rotate(90deg); }
}
.step { height: 100%; padding: 1.5rem; border-left: 2px solid var(--border); }
.step span { display: block; font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1rem; }
.stat { padding: 1.75rem 1.25rem; container-type: inline-size; height: 100%; display: flex; flex-direction: column; justify-content: center; }
/* labels always on one line: font scales with the tile width */
.stat .num + div { white-space: nowrap; font-size: clamp(.8rem, 5.6cqi, 1rem); }
@media (max-width: 575.98px) { .stats { grid-template-columns: 1fr; } }
.stat .num { white-space: nowrap; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; margin-bottom: .35rem; }

/* Pricing */
.price-card { padding: 2rem; position: relative; }
.price-card .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: var(--cyan); background: rgba(18,228,231,.08); border: 1px solid var(--border); margin-bottom: 1rem; }
.price-step { position: absolute; top: 1.5rem; right: 1.5rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .7rem; }
.price-tag { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.2; margin: .25rem 0 .75rem; }
.option-card { padding: 1.75rem; }
.option { height: 100%; display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 1rem; background: rgba(5,13,34,.45); }
.option i { font-size: 1.4rem; color: var(--cyan); margin-bottom: .25rem; }

/* Use cases */
.uc-team { padding: 2rem; }
.uc-card { padding: 1.75rem; }
.uc-card .icon, .uc-team .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: var(--cyan); background: rgba(18,228,231,.08); margin-bottom: 1rem; }
.dept { padding: 1.1rem 1.25rem .35rem; border-radius: 1rem; background: rgba(5,13,34,.45); }
.dept + .dept { margin-top: 1rem; }
.dept-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .9rem; }
.dept-head i { color: var(--cyan); font-size: 1.1rem; }
.dept .bubble { font-size: .9rem; }
.url-pill { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; padding: .55rem 1.1rem; border-radius: 999px; background: rgba(5,13,34,.6); font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.url-pill i { color: #3ef08a; font-size: .85rem; }
@media (max-width: 575.98px) { .uc-team { padding: 1.5rem; } .dept { padding-inline: 1rem; } }

/* Pricing example */
.example-card { padding: 2rem; }
.calc { display: grid; gap: .1rem; }
.calc > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.calc dt { font-weight: 400; color: var(--soft); }
.calc dd { margin: 0; font-weight: 700; white-space: nowrap; text-align: right; }
.calc .calc-total { border-bottom: 0; padding-top: .9rem; }
.calc .calc-total dt { color: var(--text); font-weight: 700; }
.calc .calc-total dd { font-size: 1.5rem; font-weight: 800; }
@media (max-width: 575.98px) { .example-card { padding: 1.5rem; } .calc > div { flex-direction: column; gap: 0; } .calc dd { text-align: left; } }

/* Glossary "?" buttons */
.term { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; min-width: 16px; min-height: 16px; margin-left: .2em; padding: 0; vertical-align: super; font-size: .6em; line-height: 1; border: 0; border-radius: 50%; background: rgba(40,219,238,.18); color: var(--cyan); cursor: help; transition: background .2s, color .2s; }
.term::before { content: "?"; font-weight: 800; font-size: .8em; }
.term:hover, .term:focus-visible { background: var(--cyan-2); color: #04122e; outline: none; }
h1 .term, h2 .term, h3 .term, .num .term { font-size: .4em; }
#termBody p:last-child { margin-bottom: 0; }

.cta-band { padding: 5rem 0; background: radial-gradient(600px 220px at 50% 50%, rgba(33,167,239,.25), transparent 70%); border-block: 1px solid var(--border); }

/* Form */
.form-control, .form-control:focus {
  background: rgba(5,13,34,.6); color: var(--text); border: 1px solid rgba(40,219,238,.25); border-radius: .75rem;
}
.form-control:focus { border-color: var(--cyan-2); box-shadow: 0 0 0 .2rem rgba(40,219,238,.2); }
.form-check-input { background-color: rgba(5,13,34,.6); border-color: rgba(40,219,238,.4); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.req { color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-img { border-radius: .5rem; border: 1px solid var(--border); background: #0b1d42; }
.captcha-input { max-width: 180px; text-transform: uppercase; letter-spacing: .2em; }
.contact-mail { display: inline-flex; gap: .6rem; align-items: center; font-size: 1.4rem; font-weight: 600; text-decoration: none; margin-top: 1.25rem; }
.alert-ok { background: rgba(62,240,138,.12); border: 1px solid rgba(62,240,138,.4); color: #b8ffd6; border-radius: .75rem; padding: .8rem 1rem; }
.alert-err { background: rgba(255,90,110,.12); border: 1px solid rgba(255,90,110,.4); color: #ffc7cf; border-radius: .75rem; padding: .8rem 1rem; }

/* Footer */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); background: rgba(3,8,22,.6); }
.footer img { max-width: 100%; height: 56px; width: auto; }
.footer a { color: var(--soft); text-decoration: none; }
.footer a:hover { color: var(--cyan-2); }
.footer .social { display: flex; gap: .6rem; justify-content: flex-start; }
.footer .social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: rgba(18,40,86,.45); font-size: 1.1rem; color: var(--text); transition: color .2s, border-color .2s, box-shadow .2s; }
.footer .social a:hover { color: var(--cyan); border-color: var(--cyan-2); box-shadow: 0 0 15px rgba(40,219,238,.35); }
@media (min-width: 768px) { .footer .social { justify-content: flex-end; } }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 1080; left: 1rem; right: 1rem; bottom: 1rem; max-width: 1000px; margin-inline: auto; padding: 1.25rem 1.5rem; background: rgba(8,22,52,.95); }

/* Modals */
.modal-content { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: 1.25rem; }
.modal-header, .modal-footer { border-color: var(--border); }
.owner-list dt { color: var(--soft); font-weight: 500; }
.owner-list dd a { text-decoration: none; }
.modal-body h6 { color: var(--text); margin-top: 1rem; }

@media (max-width: 575.98px) {
  .captcha-input { max-width: none; flex-basis: 100%; }
  .hero { padding: 7rem 0 4rem; }
  .section { padding: 4rem 0; }
  .doc-icons span { width: 50px; height: 50px; font-size: 1.4rem; }
  .card-svc { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
