:root {
  --bg: #f5f8fc;
  --ink: #11283a;
  --muted: #4e6475;
  --brand: #0f5c99;
  --brand-2: #1ea672;
  --line: #c9dae8;
  --panel: #ffffff;
  --panel-alt: #e8f2fb;
  --shadow: 0 16px 30px rgba(14, 40, 66, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #d8eaff, transparent 42%),
    radial-gradient(circle at 100% 10%, #dcf8ed, transparent 38%),
    var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  margin: 0 0 0.65rem;
  line-height: 1.12;
}

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

.wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 248, 252, 0.82);
  backdrop-filter: blur(8px);
}

.topbar-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand span {
  color: var(--brand);
}

nav {
  display: flex;
  gap: 1.05rem;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  position: relative;
  padding: 5.4rem 0 3.4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(20, 81, 150, 0.08), rgba(27, 177, 119, 0.1));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
}

.pill {
  display: inline-block;
  border: 1px solid #9ac4e2;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #235f8e;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  max-width: 14ch;
  margin-top: 0.9rem;
}

.hero-copy p {
  max-width: 58ch;
}

.hero-card {
  background: linear-gradient(160deg, #0e3a5c, #145a7a);
  color: #eef8ff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.hero-illustration {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.cta-row,
.contact-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  border-radius: 12px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(125deg, var(--brand), #0b4d80);
  color: #f7fbff;
}

.btn-secondary {
  background: #ffffff;
  border-color: #a4c2d8;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #eaf4fc, #f8fcff);
}

.cards {
  display: grid;
  gap: 1rem;
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(16, 55, 85, 0.08);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.step-icon {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}

.step span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #d9eafb;
  font-weight: 800;
  color: #0f4f86;
  margin-bottom: 0.55rem;
}

.contact {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  background: linear-gradient(140deg, #0f2742, #124a5a);
  color: #eaf8ff;
  border-radius: 18px;
  padding: 1.5rem;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1rem 0 1.4rem;
}

.ai-chat-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: linear-gradient(125deg, var(--brand), #0b4d80);
  color: #f7fbff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 92, 153, 0.32);
  cursor: pointer;
}

.ai-chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 4.9rem;
  width: min(360px, calc(100vw - 1.6rem));
  height: 480px;
  max-height: 70vh;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.ai-chat-panel[hidden] {
  display: none;
}

.ai-chat-header {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-header h3 {
  margin: 0;
  font-size: 1rem;
}

.ai-chat-close {
  border: none;
  background: transparent;
  color: #52616b;
  font-weight: 700;
  cursor: pointer;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-msg {
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.ai-msg-user {
  margin-left: auto;
  max-width: 86%;
  background: #dbeeff;
  border: 1px solid #bfdcf6;
}

.ai-msg-ai {
  max-width: 90%;
  background: #f4f7fa;
  border: 1px solid #dce3ea;
}

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

.ai-chat-form input {
  min-width: 0;
  border: 1px solid #c8d3dc;
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  font: inherit;
}

.ai-chat-form button {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #0f5c99;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .four-col,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    max-width: 18ch;
  }
}

@media (max-width: 700px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 4.1rem;
  }

  .hero-grid,
  .four-col,
  .two-col,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ai-chat-panel {
    right: 0.8rem;
    bottom: 4.6rem;
    width: calc(100vw - 1.6rem);
  }
}
