:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: rgba(17, 24, 39, 0.64);
  --line: rgba(17, 24, 39, 0.16);
  --teal: #04a6a6;
  --coral: #ff6b4a;
  --violet: #6c5ce7;
  --lime: #b7e43c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(4, 166, 166, 0.12), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(255, 107, 74, 0.13), transparent 28%),
    linear-gradient(180deg, #f9fbff, var(--bg));
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hero,
.focus,
.contact {
  padding: clamp(1.25rem, 3vw, 2.6rem);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.2rem;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.brand-row strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
}

.brand-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.78fr);
  gap: clamp(1.5rem, 4vw, 4.2rem);
  align-items: center;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
}

h1 {
  margin-top: 0.85rem;
  font-size: clamp(4.3rem, 13vw, 9.5rem);
  line-height: 0.84;
  overflow-wrap: anywhere;
}

h2 {
  margin-top: 0.75rem;
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.lead {
  max-width: 38rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.76;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  gap: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.84rem 1.05rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  will-change: transform;
}

.button.primary {
  color: #fff;
  border-color: transparent;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.button.ghost {
  border-color: rgba(4, 166, 166, 0.28);
}

.button:hover,
.button:focus-visible {
  transform: translate3d(0, -3px, 0);
}

.button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-board {
  min-height: 34rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.4rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 5.5rem;
  gap: 0.8rem;
}

.meter,
.console-screen,
.switch-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.meter {
  position: relative;
  overflow: hidden;
}

.meter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 13px, rgba(17, 24, 39, 0.08) 13px 14px);
}

.meter span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  width: 58%;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--teal);
}

.meter.wide {
  grid-column: span 4;
}

.meter.tall {
  grid-row: span 2;
}

.meter:nth-child(2) span {
  width: 72%;
  background: var(--coral);
}

.meter.tall span {
  width: 0.75rem;
  height: 62%;
  background: var(--violet);
}

.console-screen {
  grid-column: span 5;
  grid-row: span 3;
  padding: 0.9rem;
  background: #111827;
  overflow: hidden;
}

.screen-top {
  height: 0.7rem;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--teal), var(--coral));
}

.screen-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.screen-grid i {
  display: block;
  min-height: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(4, 166, 166, 0.24), transparent),
    rgba(255, 255, 255, 0.04);
}

.screen-grid i:nth-child(2n) {
  background:
    linear-gradient(135deg, rgba(255, 107, 74, 0.2), transparent),
    rgba(255, 255, 255, 0.05);
}

.switch-row {
  grid-column: span 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.8rem;
}

.switch-row span {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) 0 44%, var(--lime) 44% 100%);
}

.focus {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.focus-inner,
.contact-box {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.focus-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 1rem;
  align-items: start;
}

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

.panel {
  min-height: 17rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.panel span {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel:nth-child(2) span {
  color: var(--coral);
}

.panel:nth-child(3) span {
  color: var(--violet);
}

.panel p,
.contact-copy p,
label,
.form-note {
  color: var(--muted);
  line-height: 1.7;
}

.panel p {
  margin-top: 0.9rem;
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  align-items: start;
}

.contact-copy,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
}

.contact-copy {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.contact-copy p:last-child {
  margin-top: 1rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
}

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

label {
  display: grid;
  gap: 0.5rem;
}

label span {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  min-height: 9.5rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(4, 166, 166, 0.52);
  box-shadow: 0 0 0 4px rgba(4, 166, 166, 0.12);
}

.form-note {
  min-height: 1.5rem;
  margin: 0;
}

.site-footer {
  display: grid;
  place-items: center;
  padding: 1.3rem;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-shell,
  .focus-inner,
  .contact-box,
  .panel-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .control-board {
    min-height: 28rem;
  }

  .panel {
    min-height: 12rem;
  }
}

@media (max-width: 560px) {
  .brand-row {
    display: grid;
  }

  h1 {
    font-size: 3.2rem;
  }

  .control-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 4.5rem;
  }

  .meter.wide,
  .meter.tall,
  .console-screen,
  .switch-row {
    grid-column: span 2;
  }

  .console-screen {
    grid-row: span 3;
  }

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