:root {
  --ink: #101820;
  --muted: #64717f;
  --paper: #fbfcf7;
  --surface: #ffffff;
  --line: #dfe6de;
  --yellow: #f6c343;
  --green: #0f7c72;
  --blue: #2458a6;
  --red: #d65b3d;
  --shadow: 0 24px 70px rgba(16, 24, 32, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, .035) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 32, .035) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf5 0%, #f4f8f2 48%, #edf5f8 100%);
  background-size: 44px 44px, 44px 44px, auto;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.bg-grid,
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.particles span {
  position: absolute;
  left: var(--left);
  bottom: -30px;
  width: 3px;
  height: 34px;
  border-radius: 99px;
  background: linear-gradient(var(--yellow), transparent);
  opacity: .5;
  animation: spark var(--duration) linear var(--delay) infinite;
}

@keyframes spark {
  from { transform: translateY(0) rotate(12deg); opacity: 0; }
  15% { opacity: .65; }
  to { transform: translateY(-105vh) rotate(12deg); opacity: 0; }
}

.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 24, 32, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 50px rgba(16, 24, 32, .1);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, .96);
}

.brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #101820;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yellow), #fff4a7 45%, var(--green));
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, .1);
  flex: 0 0 auto;
}

.brand strong,
.admin-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.brand small,
.admin-brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.site-nav li a {
  color: #293643;
  font-size: 14px;
  font-weight: 700;
}

.site-nav li a:hover {
  color: var(--green);
}

.nav-actions,
.hero-actions,
.emergency-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.floating a,
.floating button {
  border: 0;
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-weight: 900;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(16, 24, 32, .13);
}

.whatsapp,
.float-whatsapp {
  color: #fff;
  background: #20bf63;
}

.nav-call {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  background: var(--ink);
}

main section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  align-items: center;
  gap: 52px;
  padding-top: 150px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #234038;
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.split-section h2,
.section-head h2,
.emergency h2,
.admin-top h1,
.login-card h1 {
  letter-spacing: 0;
  line-height: .98;
  font-weight: 900;
}

.hero h1 {
  max-width: 840px;
  font-size: clamp(48px, 7vw, 92px);
}

.hero h1 span {
  color: var(--green);
}

.hero p,
.split-section p,
.section-head p,
.emergency p {
  max-width: 740px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 24, 32, .15);
}

.primary {
  color: #101820;
  background: linear-gradient(135deg, var(--yellow), #ffe889);
}

.light {
  color: #fff;
  background: var(--green);
}

.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}

.hero-panel {
  min-height: 440px;
  position: relative;
  padding: 32px;
  border: 1px solid rgba(16, 24, 32, .09);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 15%, rgba(246, 195, 67, .42), transparent 32%),
    linear-gradient(145deg, #11222d, #133f43 62%, #2458a6);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.meter {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 18px auto 44px;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(var(--yellow) 0 72%, rgba(255, 255, 255, .12) 72%);
  position: relative;
}

.meter:before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #132935;
}

.meter strong,
.meter small {
  position: relative;
  z-index: 1;
}

.meter strong {
  font-size: 38px;
}

.meter small {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.panel-lines {
  display: grid;
  gap: 12px;
}

.panel-lines i {
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .08));
}

.panel-lines i:nth-child(2) { width: 78%; }
.panel-lines i:nth-child(3) { width: 58%; }
.panel-lines i:nth-child(4) { width: 86%; }

.status-card {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.status-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .72);
}

.stats-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat,
.card,
.feature,
.process-card,
.testimonial,
.contact-info,
.contact-form,
.faq-list details,
footer,
.panel,
.login-card {
  border: 1px solid rgba(16, 24, 32, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 46px rgba(16, 24, 32, .07);
}

.stat {
  padding: 22px;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-head h2,
.split-section h2,
.emergency h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-head p {
  margin-inline: auto;
}

.service-grid,
.feature-grid,
.process-grid,
.testimonial-grid,
.footer-grid,
.tool-grid,
.pdf-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.market-grid {
  grid-template-columns: .85fr 1.15fr;
}

.card,
.feature,
.process-card,
.testimonial {
  padding: 28px;
}

.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffe48d;
  font-weight: 900;
  font-size: 24px;
}

.card h3,
.feature h3,
.process-card h3,
.contact-info h3,
.contact-form h3,
footer h3 {
  margin-bottom: 13px;
  font-size: 22px;
}

.card p,
.feature p,
.process-card p,
.testimonial p,
.contact-info,
footer p {
  color: var(--muted);
  line-height: 1.75;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr .85fr;
  align-items: center;
  gap: 36px;
}

.about-card {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 34px;
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(246, 195, 67, .38), transparent 34%),
    linear-gradient(145deg, #101820, #0f7c72);
  box-shadow: var(--shadow);
}

.bolt-scene {
  width: 190px;
  height: 190px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 13px;
  margin-bottom: 24px;
}

.bolt-scene span {
  display: block;
  border-radius: 99px 99px 8px 8px;
  background: linear-gradient(var(--yellow), #fff7bd);
}

.bolt-scene span:nth-child(1) { height: 62%; }
.bolt-scene span:nth-child(2) { height: 96%; }
.bolt-scene span:nth-child(3) { height: 74%; }

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.process-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
}

.emergency {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 40px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #101820, #0f7c72 62%, #2458a6);
  box-shadow: var(--shadow);
}

.emergency span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 900;
}

.emergency p {
  color: rgba(255, 255, 255, .76);
}

.stars {
  margin-bottom: 16px;
  color: #e7a72f;
  letter-spacing: 2px;
}

.testimonial strong,
.testimonial span {
  display: block;
}

.testimonial strong {
  margin-top: 20px;
}

.testimonial span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 12px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.faq-list details {
  padding: 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
}

.contact-info,
.contact-form {
  padding: 30px;
}

.tool-card,
.pdf-card,
.market-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(16, 24, 32, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 46px rgba(16, 24, 32, .07);
}

.tool-card h3,
.pdf-card h3,
.market-card h3 {
  font-size: 22px;
}

.tool-card label span {
  margin-bottom: 6px;
}

.tool-card input,
.tool-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  outline: none;
}

.tool-card output {
  display: block;
  min-height: 64px;
  padding: 14px;
  border-radius: var(--radius);
  color: #123b35;
  background: #e6f5ed;
  line-height: 1.55;
  font-weight: 800;
}

.pdf-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pdf-card span {
  width: max-content;
  padding: 7px 9px;
  border-radius: var(--radius);
  color: #101820;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.pdf-card p,
.market-card p {
  color: var(--muted);
  line-height: 1.65;
}

.market-card strong {
  display: block;
  color: var(--blue);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
}

.market-card > span {
  display: block;
  color: var(--green);
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.rate-list {
  display: grid;
  gap: 10px;
}

.rate-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rate-list span {
  color: var(--muted);
  font-weight: 900;
}

.rate-list strong {
  color: var(--ink);
  font-size: 22px;
}

.contact-info a,
.contact-info span {
  display: block;
  margin-top: 13px;
}

.contact-info a {
  color: var(--green);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.login-card input,
.admin-content input,
.admin-content textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  outline: none;
}

.contact-form textarea,
.admin-content textarea {
  min-height: 140px;
  resize: vertical;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 36px;
  padding: 30px;
}

.map-wrap {
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.copyright {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 25;
}

.float-chat,
.float-call {
  color: #101820;
  background: var(--yellow);
}

.chat-widget {
  position: fixed;
  right: 78px;
  bottom: 16px;
  width: min(390px, calc(100vw - 32px));
  height: 520px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(16, 24, 32, .09);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .2s ease;
  z-index: 30;
}

.chat-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--green));
  border-radius: var(--radius) var(--radius) 0 0;
}

.chat-head p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .74);
}

.chat-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, .14);
}

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

.chat-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: var(--radius);
  line-height: 1.55;
}

.chat-message.bot {
  align-self: flex-start;
  background: #f1f5f2;
}

.chat-message.user {
  align-self: flex-end;
  color: #fff;
  background: var(--green);
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
}

.chat-form button {
  width: 48px;
  border: 0;
  border-radius: var(--radius);
  color: #101820;
  background: var(--yellow);
  font-size: 24px;
  cursor: pointer;
}

.admin-body {
  background: #eef4f2;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  padding: 30px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #40505b;
  font-size: 13px;
  font-weight: 900;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.alert {
  padding: 13px 15px;
  border-radius: var(--radius);
  font-weight: 800;
}

.alert.success {
  color: #0f5132;
  background: #dff6e6;
}

.alert.error {
  color: #842029;
  background: #f8d7da;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.admin-sidebar a {
  padding: 12px 13px;
  border-radius: var(--radius);
  color: #33414d;
  font-weight: 800;
}

.admin-sidebar a:hover {
  background: #edf5f1;
}

.admin-content {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.admin-top,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel {
  padding: 24px;
}

.panel-title {
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

.rows {
  display: grid;
  gap: 14px;
}

.row-item {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf8;
}

.row-item .wide {
  grid-column: auto;
}

.mini,
.danger {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.mini {
  background: #dff6e6;
  color: #0f5132;
}

.danger {
  color: #842029;
  background: #f8d7da;
}

@media (max-width: 980px) {
  .site-nav ul {
    display: none;
  }

  .hero,
  .split-section,
  .contact-grid,
  .emergency,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
  }

  .service-grid,
  .feature-grid,
  .process-grid,
  .testimonial-grid,
  .footer-grid,
  .tool-grid,
  .pdf-grid,
  .market-grid,
  .stats-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .row-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav {
    top: 8px;
    width: calc(100% - 16px);
  }

  .brand small,
  .icon-btn {
    display: none;
  }

  .hero {
    padding-top: 116px;
  }

  main section {
    width: min(100% - 24px, 1180px);
    padding: 70px 0;
  }

  .hero-panel {
    min-height: 360px;
    padding: 22px;
  }

  .emergency {
    padding: 26px;
  }

  .hero-actions,
  .emergency-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .chat-widget {
    inset: 0;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 0;
  }

  .chat-head {
    border-radius: 0;
  }

  .admin-content {
    padding: 14px;
  }
}
