:root {
  --brand: #3b4fd4;
  --brand-dark: #2e3eb8;
  --hero-glow: #d4cfec;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --white-5: rgb(255 255 255 / 0.05);
  --white-10: rgb(255 255 255 / 0.1);
  --white-20: rgb(255 255 255 / 0.2);
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: #f8fafc;
  background: linear-gradient(to bottom right, var(--brand), var(--brand-dark));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:has(dialog[open]) { overflow: hidden; }

::selection { background: #fff; color: var(--brand); }

/* ── Icons: local SVGs used as masks, so they take the text color ── */
.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.i-crown    { --icon: url(/icons/crown.svg); }
.i-pen      { --icon: url(/icons/pen.svg); }
.i-phone    { --icon: url(/icons/phone.svg); }
.i-star     { --icon: url(/icons/star.svg); }
.i-chevron  { --icon: url(/icons/chevron.svg); }
.i-close    { --icon: url(/icons/close.svg); }
.i-check    { --icon: url(/icons/check.svg); }
.i-chat     { --icon: url(/icons/chat.svg); }
.i-cup      { --icon: url(/icons/cup.svg); }
.i-notebook { --icon: url(/icons/notebook.svg); }
.i-users    { --icon: url(/icons/users.svg); }
.i-sun      { --icon: url(/icons/sun.svg); }
.i-bus      { --icon: url(/icons/bus.svg); }
.i-planet   { --icon: url(/icons/planet.svg); }
.i-brain    { --icon: url(/icons/brain.svg); }

/* ── Background effects ── */
.bg-dots {
  position: fixed;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image: radial-gradient(var(--white-10) 1px, transparent 1px);
  background-size: 24px 24px;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}
.glow-top    { top: -5rem; right: -5rem; width: 24rem; height: 24rem; background: var(--brand); opacity: 0.5; }
.glow-bottom { bottom: -5rem; left: -5rem; width: 20rem; height: 20rem; background: var(--hero-glow); opacity: 0.2; }

main, footer { position: relative; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  text-align: center;
}

.logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2.5rem; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--brand);
}
.logo-mark .icon { width: 28px; height: 28px; }

.logo-text {
  font: 700 1.5rem/1 var(--font-heading);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
}

h1 {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  font: 700 2.25rem/1.1 var(--font-heading);
  letter-spacing: -0.025em;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(to right, var(--blue-200), #fff);
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.625;
  color: var(--blue-100);
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  font: 600 0.875rem/1.25rem var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary { background: #fff; color: var(--brand); }
.btn-primary:hover { background: var(--blue-50); box-shadow: 0 10px 15px -3px var(--white-10); }
.btn-ghost { background: var(--white-10); border-color: var(--white-20); color: #fff; }
.btn-ghost:hover { background: var(--white-20); }

/* ── Sections ── */
.section { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem 6rem; }
.section-faq { max-width: 42rem; padding-bottom: 7rem; }

.section-head { margin-bottom: 2.5rem; text-align: center; }
.section-head h2 { margin: 0 0 0.5rem; font: 700 1.875rem/2.25rem var(--font-heading); color: #fff; }
.section-head p { margin: 0; font-size: 0.875rem; color: var(--blue-200); }

/* ── Reviews ── */
.reviews { display: grid; gap: 1rem; }

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  background: var(--white-10);
  backdrop-filter: blur(4px);
}
.card > p { margin: 0; font-size: 0.875rem; line-height: 1.625; color: var(--blue-100); }

.card-head { display: flex; align-items: center; gap: 0.75rem; }
.card-name { margin: 0; font-size: 0.875rem; font-weight: 600; color: #fff; }
.card-role { margin: 0; font-size: 0.75rem; color: var(--blue-200); }

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--white-20);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.stars { display: flex; gap: 2px; margin-left: auto; color: #fde047; }
.stars .icon { width: 14px; height: 14px; }

/* ── FAQ ── */
.faq { display: grid; gap: 0.75rem; }

details { border: 1px solid var(--white-10); border-radius: 1rem; overflow: hidden; }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s;
}
summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--white-5); }
summary .icon { width: 20px; height: 20px; color: var(--blue-200); transition: transform 0.2s; }
details[open] summary .icon { transform: rotate(180deg); }

details > p, details > ul {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--blue-100);
}

.extras { display: grid; gap: 0.5rem; padding-top: 0.25rem; list-style: none; }
.extras li { display: flex; align-items: flex-start; gap: 0.75rem; line-height: 1.43; }
.extras .icon { margin-top: 1px; color: var(--blue-200); }

/* ── Footer ── */
footer {
  padding-bottom: 2rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(191 219 254 / 0.4);
}

/* ── Floating button ── */
.fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: var(--brand);
  font: 600 0.875rem/1.25rem var(--font-sans);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  cursor: pointer;
  transition: all 0.3s;
}
.fab:hover { background: var(--blue-50); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.fab span { display: none; }

/* ── Lead dialog ── */
dialog {
  width: calc(100% - 2rem);
  max-width: 28rem;
  margin: auto auto 1rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  color: var(--gray-800);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
dialog::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(4px); }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right, var(--brand), var(--brand-dark));
}
.dialog-head h2 { margin: 0; font: 700 1.125rem/1.75rem var(--font-heading); color: #fff; }
.dialog-head p { margin: 0; font-size: 0.875rem; color: var(--blue-200); }
.dialog-head form { display: flex; }

.close {
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.7);
  cursor: pointer;
  transition: color 0.15s;
}
.close:hover { color: #fff; }
.close .icon { width: 24px; height: 24px; }

.lead-form { display: grid; gap: 1rem; padding: 1.5rem; }

label { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); }
label small { margin-left: 0.25rem; font-size: 0.75rem; font-weight: 400; color: var(--gray-400); }

input, textarea {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  outline: none;
  font: 400 0.875rem/1.25rem var(--font-sans);
  color: var(--gray-800);
  resize: none;
  transition: all 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
input:focus, textarea:focus { border-color: rgb(59 79 212 / 0.5); box-shadow: 0 0 0 2px rgb(59 79 212 / 0.1); }

.error { margin: 0; font-size: 0.875rem; color: #ef4444; }

.submit {
  width: 100%;
  padding: 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--brand);
  color: #fff;
  font: 600 0.875rem/1.25rem var(--font-sans);
  cursor: pointer;
  transition: background-color 0.15s;
}
.submit:hover { background: var(--brand-dark); }
.submit:disabled { opacity: 0.5; }

.success { padding: 2.5rem 1.5rem; text-align: center; }
.success .icon { display: block; width: 56px; height: 56px; margin: 0 auto 1rem; color: #22c55e; }
.success h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--gray-800); }
.success p { margin: 0 0 1.5rem; font-size: 0.875rem; color: var(--gray-500); }
.success .submit { width: auto; padding: 0.625rem 1.5rem; }

/* ── Larger screens ── */
@media (min-width: 640px) {
  .fab span { display: inline; }
  dialog { margin: auto; }
}

@media (min-width: 768px) {
  h1 { font-size: 3.75rem; }
  .hero-text { font-size: 1.125rem; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  summary { font-size: 1rem; }
}
