:root {
  --blue: #1769ff;
  --blue-dark: #0b4bd4;
  --navy: #071a3d;
  --navy-soft: #102b58;
  --text: #10213f;
  --muted: #66738c;
  --line: #dfe7f2;
  --surface: #ffffff;
  --surface-soft: #f5f8fd;
  --green: #16a36a;
  --orange: #f27a1a;
  --red: #cc3838;
  --purple: #7b4ce2;
  --shadow: 0 24px 70px rgba(13, 44, 91, 0.13);
  --shadow-soft: 0 12px 35px rgba(13, 44, 91, 0.09);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(223,231,242,.8);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: white; font-size: 25px; font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(145deg, #1e7cff, #0643b6);
  box-shadow: 0 8px 22px rgba(23,105,255,.28);
}
.brand-name { font-size: 25px; color: var(--blue); letter-spacing: -.7px; }
.brand-name span { color: var(--navy); }
.main-nav { display: flex; align-items: center; gap: 30px; color: #43516a; font-weight: 650; }
.main-nav > a:hover { color: var(--blue); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 28px; color: var(--navy); cursor: pointer; }

.button {
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 14px 30px rgba(23,105,255,.25); }
.button-primary:hover { box-shadow: 0 17px 36px rgba(23,105,255,.33); }
.button-secondary { color: var(--navy); background: #fff; border-color: var(--line); box-shadow: var(--shadow-soft); }
.button-ghost { color: var(--blue); background: #edf4ff; border-color: #d8e7ff; }
.button-small { min-height: 42px; padding: 0 18px; border-radius: 12px; }
.button-full { width: 100%; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #27c779; box-shadow: 0 0 0 5px rgba(39,199,121,.13); display: inline-block; }

.hero { position: relative; overflow: hidden; padding: 82px 0 98px; background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(#cbdcff 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .6; }
.hero-orb-one { width: 420px; height: 420px; background: radial-gradient(circle, rgba(23,105,255,.18), transparent 68%); top: -90px; right: 5%; }
.hero-orb-two { width: 320px; height: 320px; background: radial-gradient(circle, rgba(123,76,226,.11), transparent 68%); bottom: -100px; left: 4%; }
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 850; }
.hero h1, .section-heading h2, .about-section h2 { margin: 16px 0 22px; line-height: 1.08; letter-spacing: -.045em; color: var(--navy); }
.hero h1 { font-size: clamp(42px, 5vw, 68px); max-width: 710px; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; color: #4a5a75; font-size: 14px; font-weight: 650; }
.hero-visual { position: relative; }
.hero-image-card { overflow: hidden; border: 1px solid rgba(210,223,241,.9); border-radius: 30px; background: #fff; box-shadow: var(--shadow); transform: rotate(.6deg); }
.hero-image-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.floating-note { position: absolute; display: flex; flex-direction: column; min-width: 170px; padding: 15px 18px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); }
.floating-note strong { color: var(--navy); }
.floating-note span { color: var(--muted); font-size: 13px; }
.floating-note-top { top: 8%; right: -35px; }
.floating-note-bottom { left: -35px; bottom: 8%; }

.section { padding: 100px 0; }
.section-soft { background: var(--surface-soft); }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-heading.compact { margin-bottom: 42px; }
.section-heading h2, .about-section h2 { font-size: clamp(34px, 4vw, 50px); }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module-card { position: relative; overflow: hidden; min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 26px rgba(18,46,88,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.module-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-soft); border-color: #cbdcf6; }
.module-card::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: var(--module-soft); right: -75px; top: -70px; }
.module-icon { position: relative; z-index: 1; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: var(--module-color); background: var(--module-soft); }
.module-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.module-status { position: absolute; z-index: 2; top: 25px; right: 25px; padding: 5px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 850; color: var(--module-color); background: var(--module-soft); }
.module-card h3 { margin: 24px 0 11px; color: var(--navy); font-size: 24px; }
.module-card p { margin: 0 0 26px; color: var(--muted); }
.module-card-action { position: absolute; left: 28px; right: 28px; bottom: 27px; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: var(--module-color); font-weight: 800; cursor: pointer; }
.module-card-action span:last-child { font-size: 20px; transition: transform .2s ease; }
.module-card:hover .module-card-action span:last-child { transform: translateX(5px); }

.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.benefit-number { display: block; color: var(--blue); font-weight: 900; font-size: 13px; letter-spacing: .12em; }
.benefit-card h3 { margin: 45px 0 12px; color: var(--navy); font-size: 23px; }
.benefit-card p { margin: 0; color: var(--muted); }
.about-section { color: #fff; background: linear-gradient(135deg, #071a3d, #0d3474); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-section .eyebrow { color: #8db7ff; }
.about-section h2 { color: #fff; margin-bottom: 0; }
.about-copy p { margin: 0 0 28px; color: #cbd7ea; font-size: 18px; }

.site-footer { padding: 65px 0 22px; color: #9eabc1; background: #06142f; }
.footer-grid { display: flex; justify-content: space-between; gap: 50px; }
.brand-footer .brand-name span { color: #fff; }
.footer-grid p { max-width: 430px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-links a:hover, .footer-button:hover { color: #fff; }
.footer-button { padding: 0; border: 0; color: inherit; background: none; cursor: pointer; }
.footer-bottom { margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); font-size: 13px; }

.chat-launcher { position: fixed; z-index: 70; right: 24px; bottom: 24px; min-height: 58px; padding: 0 20px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 18px 45px rgba(11,75,212,.35); font-weight: 800; cursor: pointer; }
.chat-launcher-icon { font-size: 21px; }
.chat-notification { position: absolute; top: -7px; right: -6px; width: 24px; height: 24px; display: grid; place-items: center; color: #fff; background: #e24444; border: 3px solid #fff; border-radius: 50%; font-size: 11px; }
.chat-widget { position: fixed; z-index: 80; right: 24px; bottom: 96px; width: min(390px, calc(100vw - 28px)); height: min(640px, calc(100vh - 125px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 26px 80px rgba(6,27,65,.25); opacity: 0; visibility: hidden; transform: translateY(18px) scale(.98); transition: .2s ease; }
.chat-widget.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-header { min-height: 78px; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: linear-gradient(135deg, #0c2a62, #1769ff); }
.chat-header strong { display: block; font-size: 16px; }
.chat-header span { display: flex; align-items: center; gap: 8px; color: #dce9ff; font-size: 12px; }
.chat-header .status-dot { width: 7px; height: 7px; box-shadow: none; }
.chat-close { width: 36px; height: 36px; border: 0; border-radius: 10px; color: #fff; background: rgba(255,255,255,.12); font-size: 25px; cursor: pointer; }
.chat-intro { padding: 25px; overflow-y: auto; }
.chat-avatar { width: 58px; height: 58px; margin-bottom: 18px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 18px; font-size: 27px; font-weight: 900; }
.chat-intro h3 { margin: 0 0 8px; color: var(--navy); }
.chat-intro p { margin: 0 0 23px; color: var(--muted); font-size: 14px; }
.chat-form { display: grid; gap: 14px; }
.chat-form label, .login-card label, .settings-form label { display: grid; gap: 7px; color: #35445e; font-size: 13px; font-weight: 750; }
.chat-form small { color: var(--muted); font-weight: 500; }
input, textarea, select { width: 100%; color: var(--text); background: #fff; border: 1px solid #cfdaea; border-radius: 12px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
input { min-height: 47px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,255,.1); }
.chat-conversation { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px 16px; background: #f5f8fd; }
.chat-message { max-width: 82%; margin-bottom: 11px; }
.chat-message.user { margin-left: auto; }
.chat-message-bubble { padding: 11px 13px; border-radius: 15px; color: #263753; background: #fff; box-shadow: 0 4px 12px rgba(30,53,88,.08); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.user .chat-message-bubble { color: #fff; background: var(--blue); border-bottom-right-radius: 5px; }
.chat-message.admin .chat-message-bubble { border-bottom-left-radius: 5px; }
.chat-message-time { margin-top: 4px; color: #8b97aa; font-size: 10px; }
.chat-message.user .chat-message-time { text-align: right; }
.chat-compose { display: flex; gap: 9px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-compose textarea { min-height: 47px; max-height: 110px; resize: none; }
.chat-compose button { width: 48px; height: 48px; flex: 0 0 48px; border: 0; border-radius: 13px; color: #fff; background: var(--blue); font-size: 19px; cursor: pointer; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 680px; margin-inline: auto; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .main-nav { position: absolute; left: 14px; right: 14px; top: 68px; padding: 18px; display: none; flex-direction: column; align-items: stretch; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 58px 0 72px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 17px; }
  .floating-note { display: none; }
  .section { padding: 72px 0; }
  .module-grid, .benefit-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 25px; }
  .footer-grid { flex-direction: column; }
  .chat-launcher { right: 14px; bottom: 14px; width: 56px; height: 56px; min-height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .chat-launcher-text { display: none; }
  .chat-widget { right: 14px; bottom: 80px; }
}

@media (max-width: 460px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .module-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 22px; }
}
