:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #f7f9ff;
  --muted: #aeb8cc;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --silver: #e6ebf5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.13), transparent 30rem),
    linear-gradient(135deg, #05070d 0%, #0a0f1f 46%, #05070d 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 13, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  box-shadow: 0 10px 32px rgba(34, 211, 238, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-call {
  color: var(--text) !important;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  padding: 86px 0 70px;
}

.hero-grid,
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #8fdcff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.hero-lede,
.section p,
.service-card p,
.steps p,
.proof-card p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-lede {
  font-size: 19px;
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 30px;
}

.btn {
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.22);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span,
.tech-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.07);
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.glass-panel,
.floating-card,
.service-card,
.proof-card,
.steps article,
.contact-card,
.inquiry-form {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.main-panel {
  border-radius: 8px;
  padding: 22px;
  min-height: 430px;
}

.panel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric-grid div,
.code-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.45);
  padding: 18px;
}

.metric-grid small {
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  font-size: 25px;
  margin-top: 8px;
}

.code-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(5, 7, 13, 0.52);
  background-size: 32px 32px;
}

.code-card span {
  color: #8fdcff;
  font-weight: 800;
  margin-bottom: 10px;
}

.floating-card {
  position: absolute;
  right: -12px;
  border-radius: 8px;
  padding: 16px;
  width: 210px;
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  color: var(--muted);
  margin-top: 6px;
}

.security-card {
  top: 70px;
}

.mobile-card {
  bottom: 38px;
  left: -18px;
  right: auto;
}

.section {
  padding: 78px 0;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  border-radius: 8px;
  padding: 22px;
  min-height: 260px;
}

.service-card.featured {
  grid-column: span 2;
}

.service-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: #8fdcff;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proof-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proof-card,
.steps article,
.contact-card,
.inquiry-form {
  border-radius: 8px;
  padding: 24px;
}

.proof-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  font-weight: 900;
  margin-bottom: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-methods a,
.contact-methods span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.inquiry-form {
  display: grid;
  gap: 16px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--silver);
  font-weight: 700;
}

.inquiry-form input,
.inquiry-form textarea,
.chat-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.64);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}

.inquiry-form textarea {
  resize: vertical;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: var(--text);
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.32);
  cursor: pointer;
  font-weight: 900;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 50;
  width: min(390px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 124px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 12, 24, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chat-widget.is-open {
  display: flex;
}

.chat-widget header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.chat-widget header strong,
.chat-widget header span {
  display: block;
}

.chat-widget header span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.chat-close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 86%;
  border-radius: 8px;
  padding: 12px 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.message.bot {
  align-self: flex-start;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.08);
}

.message.user {
  align-self: flex-end;
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-form button {
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .proof-section,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 12, 24, 0.98);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid,
  .section {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 43px;
  }

  .services-grid,
  .proof-section,
  .steps {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: auto;
  }

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

  .floating-card {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .hero-visual {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
  }

  .chat-widget {
    right: 14px;
    bottom: 88px;
  }
}
