:root {
  --bg: #071214;
  --bg-2: #0c1c20;
  --panel: #102a30;
  --panel-2: #16363d;
  --stroke: rgba(138, 199, 203, 0.25);
  --text: #eef8f7;
  --muted: #a8bec0;
  --aqua: #49d6cf;
  --blue: #4f8dff;
  --lime: #a7e36b;
  --amber: #ffc857;
  --danger: #ff6b6b;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 15% 10%, rgba(73, 214, 207, 0.15), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(79, 141, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #071214 0%, #0c1b1f 52%, #061012 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 18, 20, 0.84);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(73, 214, 207, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(73, 214, 207, 0.72) 46%, rgba(73, 214, 207, 0.72) 54%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(79, 141, 255, 0.72) 46%, rgba(79, 141, 255, 0.72) 54%, transparent 55%),
    rgba(73, 214, 207, 0.09);
}

.brand-mark::after {
  position: absolute;
  inset: 13px;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 24px rgba(73, 214, 207, 0.75);
  content: "";
}

.brand strong {
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand strong span {
  color: var(--aqua);
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-header nav {
  display: flex;
  gap: 22px;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.signin,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 850;
}

.signin,
.button.primary {
  color: #021314;
  background: linear-gradient(180deg, #8af7ee 0%, #49d6cf 100%);
  box-shadow: 0 16px 34px rgba(73, 214, 207, 0.24);
}

.button.secondary {
  color: var(--text);
  border: 1px solid rgba(79, 141, 255, 0.5);
  background: rgba(79, 141, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  min-height: calc(100vh - 76px);
  padding: 34px clamp(18px, 5vw, 72px) 58px;
}

.hero-panel {
  min-height: calc(100vh - 168px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(73, 214, 207, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(16, 42, 48, 0.86), rgba(8, 22, 25, 0.92));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6.2vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.lead,
.section-copy p,
.field-copy p,
.automation-copy p,
.process-map p,
.doc-grid p,
.assistant-stack p {
  color: var(--muted);
}

.lead {
  max-width: 760px;
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.incident-console {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 168px);
  padding: 18px;
  border: 1px solid rgba(73, 214, 207, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(8, 24, 28, 0.94);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
}

.console-header,
.route-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.console-header {
  color: var(--muted);
}

.console-header b {
  color: var(--lime);
}

.loss-card {
  padding: 20px;
  border: 1px solid rgba(255, 107, 107, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(73, 214, 207, 0.08));
}

.loss-card span {
  color: var(--danger);
  font-weight: 900;
}

.loss-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.console-grid div,
.route-list p,
.equipment-dock p {
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(16, 42, 48, 0.76);
}

.console-grid div {
  min-height: 96px;
  padding: 14px;
}

.console-grid small {
  display: block;
  color: var(--muted);
}

.console-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--aqua);
  font-size: 1.9rem;
  line-height: 1;
}

.drying-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  min-height: 152px;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(4, 14, 16, 0.6);
}

.drying-chart span {
  flex: 1;
  min-height: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--aqua));
  box-shadow: 0 0 18px rgba(73, 214, 207, 0.22);
}

.bar-74 {
  height: 74%;
}

.bar-68 {
  height: 68%;
}

.bar-48 {
  height: 48%;
}

.bar-36 {
  height: 36%;
}

.bar-24 {
  height: 24%;
}

.bar-14 {
  height: 14%;
}

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

.route-list p {
  margin: 0;
  padding: 12px 14px;
}

.route-list span {
  color: var(--amber);
}

.command-section,
.documentation-section,
.automation-section,
.fieldwork-section {
  padding: 92px clamp(18px, 5vw, 72px);
}

.section-copy,
.automation-copy {
  max-width: 880px;
}

.process-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.process-map article,
.doc-grid article,
.assistant-stack article {
  min-height: 248px;
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 54, 61, 0.86), rgba(12, 29, 34, 0.86));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.process-map span,
.assistant-stack span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-bottom: 20px;
  border-radius: 999px;
  padding: 0 12px;
  color: #021314;
  background: var(--aqua);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fieldwork-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.field-visual {
  min-height: 530px;
  padding: 22px;
  border: 1px solid rgba(79, 141, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 24, 28, 0.96), rgba(12, 36, 42, 0.92));
  box-shadow: var(--shadow);
}

.map-surface {
  position: relative;
  height: 360px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 38% 46%, rgba(79, 141, 255, 0.13), transparent 28%);
  background-size: 38px 38px, 38px 38px, auto;
}

.zone {
  position: absolute;
  border: 1px solid rgba(73, 214, 207, 0.62);
  background: rgba(73, 214, 207, 0.1);
}

.zone-a {
  left: 14%;
  top: 17%;
  width: 34%;
  height: 44%;
}

.zone-b {
  right: 16%;
  top: 28%;
  width: 30%;
  height: 32%;
}

.zone-c {
  left: 28%;
  bottom: 13%;
  width: 46%;
  height: 22%;
}

.sensor {
  position: absolute;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: #021314;
  background: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 0 0 9px rgba(167, 227, 107, 0.12);
}

.sensor-a {
  left: 29%;
  top: 27%;
}

.sensor-b {
  right: 26%;
  top: 39%;
}

.sensor-c {
  left: 54%;
  bottom: 16%;
  background: var(--amber);
}

.equipment-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.equipment-dock p {
  display: grid;
  min-height: 118px;
  margin: 0;
  place-items: center;
  text-align: center;
}

.equipment-dock strong {
  color: var(--aqua);
  font-size: 2.4rem;
  line-height: 1;
}

.equipment-dock span {
  color: var(--muted);
}

.field-copy ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.field-copy li {
  position: relative;
  padding-left: 30px;
  color: #ccdddd;
}

.field-copy li::before {
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 14px;
  height: 14px;
  border: 2px solid var(--aqua);
  border-radius: 999px;
  content: "";
}

.doc-grid,
.assistant-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.doc-grid article {
  min-height: 220px;
}

.automation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
  background:
    linear-gradient(90deg, rgba(79, 141, 255, 0.08), transparent 35%, rgba(73, 214, 207, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.assistant-stack {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.assistant-stack article {
  min-height: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  background: #050e10;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer strong {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero,
  .fieldwork-section,
  .automation-section {
    grid-template-columns: 1fr;
  }

  .incident-console,
  .hero-panel {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 34px;
    min-height: 0;
  }

  .console-grid,
  .process-map,
  .doc-grid,
  .equipment-dock {
    grid-template-columns: 1fr;
  }

  .field-visual {
    min-height: 430px;
  }

  .map-surface {
    height: 280px;
  }

  .site-footer {
    flex-direction: column;
  }
}

.signin-body {
  min-height: 100vh;
}

.signin-main {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: start center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.signin-card {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(73, 214, 207, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(73, 214, 207, 0.12), transparent 34%),
    rgba(7, 18, 20, 0.92);
  box-shadow: var(--shadow);
}

.signin-card h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.signin-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form input {
  min-height: 48px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(4, 14, 16, 0.82);
  font: inherit;
}

.auth-form input:focus {
  border-color: rgba(73, 214, 207, 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(73, 214, 207, 0.12);
}

.auth-form .button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-error {
  min-height: 1.5em;
  margin: 0;
  color: var(--amber);
  font-weight: 900;
}
