/* ===== ZigIT Landing (mobile-first, cleaned) ===== */
:root {
  --bg: #f6f8fb;
  --surface: #fff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;
  --brand: #0ea5e9;
  --brand-strong: #0284c7;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
  --maxw: 1080px;
  --topbar-h: 56px;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: var(--brand-strong);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== TOP BAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(2, 8, 23, 0.04);
  padding: 0;
}
@media (max-width: 700px) {
  .topbar {
    padding: 10px 0px;
  }
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px 12px;
  min-height: var(--topbar-h);
  padding: 8px 0;
}
.topbar__info {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.info-label {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.info-value {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.topbar__cta {
  display: flex;
  align-items: start;
  justify-content: flex-end;
}
.hide-on-phone {
  display: none;
}

/* tablet & up: inline layout */
@media (min-width: 700px) {
  .container {
    padding: 0 24px;
  }
  .topbar__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 64px;
  }
  .topbar__info {
    grid-template-columns: repeat(3, auto);
    gap: 0 20px;
    align-items: center;
  }
  .info-item {
    font-size: 14px;
  }
  .info-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 32vw;
    line-height: 22px;
  }
  .hide-on-phone {
    display: inline-flex;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--topbar-h));
  min-height: calc(100dvh - var(--topbar-h));
  min-height: calc(100vh - var(--topbar-h));
  display: grid;
  align-items: center;
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(14, 165, 233, 0.2),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at -10% 10%,
      rgba(2, 132, 199, 0.18),
      transparent 50%
    ),
    #eef4fb;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: image-set(
    url("/assets/images/clean-tech-2400.webp") type("image/webp"),
    url("/assets/images/clean-tech-2400.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(90%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.85)
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 44px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-strong);
  margin-bottom: 10px;
}
.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.18);
}
h1 {
  font-size: clamp(28px, 6.2vw, 56px);
  line-height: 1.12;
  margin: 0 0 12px;
}
.lead {
  font-size: clamp(15px, 3.8vw, 19px);
  max-width: 65ch;
  color: var(--muted);
  margin: 0 0 22px;
}

@media (min-width: 768px) {
  .hero__inner {
    padding: 80px 0 56px;
  }
}
@media (min-width: 1024px) {
  .hero {
    min-height: calc(99vh - var(--topbar-h));
  }
  .hero__inner {
    padding: 96px 0 72px;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
}

/* ===== CTA BAR (mobile) ===== */
.cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  padding: 0px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  padding-bottom: env(safe-area-inset-bottom);
}
.cta-bar__inner {
  padding: 12px 0;
}
.show-on-phone {
  display: block;
}
@media (min-width: 700px) {
  .cta-bar,
  .show-on-phone {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}
.btn--primary:hover {
  background: var(--brand-strong);
  text-decoration: none;
}
.btn--primary:focus {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 2px;
}
.btn--block {
  display: block;
  width: 100%;
}

/* ===== FORM / MODAL ===== */
.section-title {
  font-size: clamp(20px, 3.6vw, 28px);
  margin: 0 0 8px;
}
.section-sub {
  color: var(--muted);
  margin: 0 0 20px;
}
.field {
  position: relative;
}
input,
textarea {
  appearance: none;
  width: calc(100% - 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
  outline: none;
}
textarea {
  min-height: 140px;
  resize: vertical;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.modal.is-open {
  display: block;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.55);
  backdrop-filter: blur(1px);
}
.modal__dialog {
  position: relative;
  z-index: 61;
  margin: 10vh auto;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.modal__close:hover {
  background: #f8fafc;
}
@media (max-width: 700px) {
  .modal__dialog {
    margin: 0;
    min-height: 100dvh;
    max-width: none;
    border-radius: 0;
    padding: 18px 16px 24px;
    display: flex;
    flex-direction: column;
  }
  .modal__dialog form {
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
