:root {
  --text: #0c1f2e;
  --muted: #4a6578;
  --line: #c9d8e3;
  --primary: #0a6b6b;
  --primary-deep: #084848;
  --accent: #0ea5a0;
  --accent-soft: #d7f5f2;
  --sky: #e8f2f8;
  --mist: #f3f7fa;
  --paper: #ffffff;
  --ink: #062033;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --sans: "Lexend", "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(6, 32, 51, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(14, 165, 160, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(56, 132, 184, 0.12), transparent 50%),
    linear-gradient(180deg, var(--sky) 0%, var(--mist) 42%, #eef4f8 100%);
  background-attachment: fixed;
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 216, 227, 0.7);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; }

.hero {
  position: relative;
  overflow: hidden;
  color: #f4fbfd;
  padding: 72px 0 70px;
  background:
    linear-gradient(135deg, rgba(6, 32, 51, 0.92) 0%, rgba(8, 72, 72, 0.88) 48%, rgba(10, 107, 107, 0.85) 100%),
    radial-gradient(circle at 20% 20%, rgba(14, 165, 160, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(56, 132, 184, 0.3), transparent 45%),
    #062033;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 160, 0.35), transparent 70%);
  animation: orbFloat 9s var(--ease) infinite alternate;
  pointer-events: none;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(48px, 24px, 0); }
}

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 40px, 0) scale(1.08); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.hero-copy {
  animation: riseIn 0.7s var(--ease) both;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.hero-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(28px, 6.5vw, 46px);
  line-height: 1.12;
  color: #f7fcfc;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(26px, 5vw, 34px);
  margin: 0 0 24px;
  color: var(--ink);
}

h3 {
  font-size: 20px;
  margin: 10px 0 8px;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 160, 0.18);
  border: 1px solid rgba(167, 243, 238, 0.35);
  color: #9ff0ea;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.45;
}

.lead {
  color: #c7dde6;
  font-size: 18px;
  max-width: 38em;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  color: #e4f1f5;
}

.checklist li {
  position: relative;
  margin: 10px 0;
  padding-left: 32px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 5px var(--primary);
}

.note {
  color: #9eb8c6;
  font-size: 13px;
  letter-spacing: 0.01em;
  margin-top: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(201, 216, 227, 0.9);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-card {
  color: var(--text);
  border: 1px solid rgba(14, 165, 160, 0.25);
  box-shadow: 0 24px 50px rgba(6, 32, 51, 0.22);
  scroll-margin-top: 84px;
  animation: riseIn 0.8s var(--ease) 0.12s both;
}

.form-card h2 {
  font-size: clamp(22px, 5vw, 28px);
  margin-bottom: 8px;
  color: var(--ink);
}

.form-card p { color: var(--muted); }

label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #b7c9d6;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--sans);
  background: #f8fbfd;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230a6b6b' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #f8fbfd;
  padding-right: 36px;
}

textarea { min-height: 120px; resize: vertical; }

input:not([type="checkbox"]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.2);
}

.checkbox {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.checkbox .check-mark {
  grid-column: 1;
  grid-row: 1;
  width: 26px;
  height: 26px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.checkbox .check-mark::after {
  content: "";
  width: 7px;
  height: 13px;
  margin-top: -2px;
  border: solid transparent;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox input[type="checkbox"]:checked + .check-mark {
  background: var(--primary);
  border-color: var(--primary-deep);
}

.checkbox input[type="checkbox"]:checked + .check-mark::after {
  border-color: #fff;
}

.checkbox input[type="checkbox"]:focus-visible + .check-mark {
  box-shadow: 0 0 0 3px rgba(14, 165, 160, 0.35);
}

.checkbox span:last-child { min-width: 0; }
.form-card .btn { width: 100%; text-align: center; }

.btn {
  border: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 14px 20px;
  min-height: 48px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--sans);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 12px 28px rgba(10, 107, 107, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 16px 32px rgba(10, 107, 107, 0.34);
}

.btn-small {
  margin: 0;
  padding: 10px 16px;
  font-size: 14px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
  flex-shrink: 0;
}

.btn-small:hover {
  background: var(--primary);
  color: #fff;
  filter: none;
}

.hp { display: none !important; }

.section {
  padding: 72px 0;
  background: transparent;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(232, 242, 248, 0.9));
  border-block: 1px solid rgba(201, 216, 227, 0.55);
}

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

.grid-3 .card {
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.grid-3 .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(6, 32, 51, 0.12);
}

.num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
}

.faq details {
  border: 1px solid rgba(201, 216, 227, 0.9);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details[open] {
  border-color: rgba(14, 165, 160, 0.45);
  box-shadow: 0 10px 24px rgba(6, 32, 51, 0.06);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--display);
  letter-spacing: -0.02em;
}

.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.footer {
  background:
    linear-gradient(160deg, #062033 0%, #084848 100%);
  color: #b7cdd8;
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 160, 0.28), transparent 70%);
  pointer-events: none;
}

.footer .container { position: relative; z-index: 1; }
.footer h2 { color: #f4fbfd; }
.footer a { color: #7ee7e0; overflow-wrap: anywhere; }
.wa-footer { font-weight: 700; }

.wa-float {
  position: fixed;
  z-index: 91;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  min-width: 56px;
  padding: 0 18px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.wa-float:hover { color: #fff; background: #1ebe5d; }
.wa-float svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}
.wa-float span { white-space: nowrap; }

body:has(#chatBox.open) .wa-float {
  visibility: hidden;
  pointer-events: none;
}

.chat-widget {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--primary-deep));
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(8, 72, 72, 0.35);
}

.chat-box {
  display: none;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(6, 32, 51, 0.28);
  overflow: hidden;
  margin-bottom: 10px;
}

.chat-box.open { display: flex; flex-direction: column; }

.chat-head {
  background: linear-gradient(135deg, #062033, #0a6b6b);
  color: #f4fbfd;
  padding: 14px 44px 14px 16px;
  display: grid;
  gap: 2px;
  position: relative;
}

.chat-head strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.chat-head span {
  font-size: 12px;
  opacity: .95;
  color: #c7dde6;
}

.chat-close {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #f4fbfd;
  font-size: 28px;
  cursor: pointer;
}

.chat-body {
  background: #eef6f8;
  max-height: 290px;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.msg {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.msg.bot { background: #fff; color: var(--text); border: 1px solid #d5e4ec; }
.msg.user {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  margin-left: auto;
  max-width: 88%;
}

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

.chat-input-wrap input { min-height: 48px; }

.chat-input-wrap button {
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  padding: 10px 14px;
  min-height: 48px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}

.chat-options {
  padding: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.chat-options button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px;
  min-height: 48px;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chat-options button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 980px) {
  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 36px; }
  .section { padding: 44px 0; }
  body { padding-bottom: 150px; }
  .hero::after { width: 260px; height: 260px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 24px); }
  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 0 12px;
  }
  .brand { font-size: 16px; gap: 8px; }
  .brand-logo { width: 30px; height: 30px; }
  .btn-small {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .hero-brand { font-size: 26px; }
  .hero-brand img { width: 40px; height: 40px; }
  .eyebrow { letter-spacing: 0.05em; font-size: 11px; }
  .lead { font-size: 16px; }
  .card, .form-card { padding: 18px 16px; }
  .form-card { scroll-margin-top: 120px; }
  .checkbox { font-size: 14px; }
  .faq details { padding-right: 72px; }
  .footer { padding: 36px 0 120px; }
  .wa-float {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 56px;
    width: auto;
    border-radius: 16px;
    font-size: 18px;
    padding: 0 20px;
    gap: 10px;
  }
  .wa-float svg { width: 30px; height: 30px; }
  .chat-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .chat-widget:has(.chat-box.open) {
    inset: 0;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    padding: env(safe-area-inset-top) 0 0;
    background: rgba(6, 32, 51, 0.45);
    align-items: stretch;
  }
  .chat-widget:has(.chat-box.open) .chat-toggle { display: none; }
  .chat-box {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    height: min(100dvh, 100%);
  }
  .chat-box.open {
    height: 100%;
    max-height: 100dvh;
  }
  .chat-body { flex: 1; max-height: none; }
}

@media (max-width: 400px) {
  .container { width: calc(100% - 20px); }
  h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
