/* ===================== TOKENS ===================== */
:root {
  --bg: #E6E6E6;
  --ink: #44546B;
  --primary: #12A7D8;
  --accent: #18CDA6;

  --white: #ffffff;
  --ink-soft: #6a778c;
  --line: #d7dbe2;
  --shadow-sm: 0 4px 14px rgba(68, 84, 107, 0.08);
  --shadow-md: 0 14px 40px rgba(68, 84, 107, 0.14);
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

/* ===================== BASE ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(18, 167, 216, .32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 167, 216, .4); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { display: inline-flex; }
.logo__text { font-weight: 500; font-size: 19px; color: var(--ink); letter-spacing: .2px; }
.logo__text strong { font-weight: 800; margin-left: 3px; }
.logo__text--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .18s ease; }
.nav__link:hover { color: var(--primary); }
.nav__cta { margin-left: 6px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(24, 205, 166, .18), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(18, 167, 216, .16), transparent 60%),
    #fff;
  padding: 72px 0 84px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(18, 167, 216, .1);
  border: 1px solid rgba(18, 167, 216, .25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
}
.hero__lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  margin-top: 40px;
  display: flex;
  gap: 34px;
  list-style: none;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-size: 24px; font-weight: 800; color: var(--primary); }
.hero__stats span { font-size: 13px; color: var(--ink-soft); }

/* Phone mockup */
.hero__visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 290px;
  background: #fff;
  border-radius: 40px;
  padding: 16px 14px;
  box-shadow: var(--shadow-md), 0 0 0 10px #fff, 0 0 0 12px var(--line);
}
.phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #fff; border-radius: 0 0 16px 16px; z-index: 2;
}
.phone__screen {
  background: linear-gradient(180deg, #f3f7fb, #eef2f6);
  border-radius: 28px;
  padding: 40px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ui-card { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.ui-card--head { display: flex; align-items: center; gap: 10px; }
.ui-card--head b { font-size: 14px; display: block; }
.ui-card--head small { color: var(--ink-soft); font-size: 12px; }
.ui-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); flex: none; }
.ui-card--bill { display: flex; align-items: center; justify-content: space-between; background: var(--grad); color: #fff; }
.ui-card--bill small { opacity: .85; font-size: 12px; display: block; }
.ui-card--bill b { font-size: 20px; }
.ui-btn { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ui-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13px; box-shadow: var(--shadow-sm); }
.ui-row em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--ink); }
.ui-ico { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.ui-ico--water { background: rgba(18,167,216,.18); }
.ui-ico--power { background: rgba(24,205,166,.2); }
.ui-ico--gas { background: rgba(68,84,107,.15); }
.ui-card--note { border: 1.5px dashed var(--accent); background: rgba(24,205,166,.08); }
.ui-card--note b { font-size: 13px; display: block; }
.ui-card--note small { color: var(--accent); font-weight: 700; font-size: 12px; }

/* ===================== SECTIONS ===================== */
.section { padding: 86px 0; }
.section--tint { background: linear-gradient(180deg, #fff, var(--bg)); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.4px; }
.section__sub { margin-top: 12px; font-size: 17px; color: var(--ink-soft); }

/* ===================== GRID / CARDS ===================== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(18, 167, 216, .1); color: var(--primary);
  margin-bottom: 16px;
}
.card:hover .card__icon { background: var(--grad); color: #fff; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ===================== SPLIT ===================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__text { order: 2; }
.split__text .section__title { text-align: left; }

.checklist { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 16px;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"),
    var(--grad);
  background-repeat: no-repeat;
  background-position: center;
}

/* Split media decorations */
.split__media { display: flex; flex-direction: column; gap: 16px; }
.stack-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
}
.stack-card--1 { margin-right: 40px; }
.stack-card--2 { margin-left: 40px; }
.stack-card--3 { margin-right: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--primary { background: var(--primary); }
.dot--accent { background: var(--accent); }

/* Dashboard */
.dash {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-md);
}
.dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash__pill { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(24,205,166,.12); padding: 4px 12px; border-radius: 999px; }
.dash__bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; margin-bottom: 22px; }
.dash__bars span { flex: 1; height: var(--h); background: var(--grad); border-radius: 8px 8px 0 0; opacity: .85; }
.dash__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.dash__row b { font-size: 18px; }
.dash__tag { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.dash__tag--ok { color: var(--accent); background: rgba(24,205,166,.12); }
.dash__tag--wait { color: var(--primary); background: rgba(18,167,216,.12); }
.dash__tag--new { color: var(--ink-soft); background: rgba(68,84,107,.1); }

/* ===================== TABS / MODULES ===================== */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}
.tab {
  font-family: inherit;
  font-size: 15px; font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.tab:hover { color: var(--primary); border-color: var(--primary); }
.tab.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(18,167,216,.3); }

.tabs__panel { display: none; animation: fade .35s ease; }
.tabs__panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.module__intro { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.module__intro h3 { font-size: 26px; font-weight: 800; }
.module__intro p { color: var(--ink-soft); margin-top: 8px; }

.feature {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid transparent;
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--line); }
.feature h4 { font-size: 17px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid rgba(68,84,107,.1); }
.feature--company h4 { color: var(--primary); border-color: rgba(18,167,216,.25); }
.feature--resident h4 { color: var(--accent); border-color: rgba(24,205,166,.3); }

.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink); }
.bullets li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ===================== CTA ===================== */
.cta { padding: 20px 0; }
.cta__inner {
  background: var(--grad);
  border-radius: 28px;
  padding: 46px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta__inner h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.cta__inner p { opacity: .92; margin-top: 6px; font-size: 17px; }

/* ===================== FORM / CONTACTS ===================== */
.contacts { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.contacts li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; }
.contacts li a:hover { color: var(--primary); }
.contacts__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(18,167,216,.1); color: var(--primary); flex: none;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form__row { margin-bottom: 16px; }
.form label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.form input, .form textarea {
  width: 100%;
  margin-top: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .18s ease, background .18s ease;
  resize: vertical;
}
.form input:focus, .form textarea:focus { border-color: var(--primary); background: #fff; }
.form__note { margin-top: 14px; text-align: center; font-weight: 700; color: var(--accent); }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 54px 0 26px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand { max-width: 360px; }
.footer__brand p { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.65); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px 28px; align-content: flex-start; }
.footer__nav a { font-weight: 600; color: rgba(255,255,255,.8); transition: color .18s ease; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom { padding-top: 22px; font-size: 14px; color: rgba(255,255,255,.55); }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__text { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 10px; }
  .burger { display: flex; }

  .section { padding: 62px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .module { padding: 24px; }
  .cta__inner { padding: 34px 26px; text-align: center; justify-content: center; }
  .stack-card--1, .stack-card--2, .stack-card--3 { margin: 0; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero__stats { gap: 22px; }
  .phone { width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
