:root {
  color-scheme: light;
  --paper: #f3f7f7;
  --ink: #111b22;
  --muted: #42545b;
  --night: #0d1b24;
  --teal: #46b7bf;
  --teal-light: #a8e5e7;
  --border: #c9dcde;
  --header-height: 72px;
  --gutter: clamp(14px, 4vw, 64px);
  --pad: clamp(25px, 5.1vw, 82px);
  --radius: clamp(19px, 2.1vw, 32px);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid #1b747c;
  outline-offset: 4px;
}

.frame { width: min(calc(100% - 2 * var(--gutter)), 1440px); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e3eeee;
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  position: relative;
  display: block;
  justify-self: start;
  background: #fff;
  width: 93px;
  aspect-ratio: 117 / 64;
  overflow: hidden;
}

.brand img { position: absolute; width: 185.47%; height: auto; left: -47%; top: -136%; }

.site-header nav { display: flex; gap: clamp(18px, 3.2vw, 51px); }
.site-header nav a, .header-contact, .site-footer > a:last-child { text-decoration: none; font-weight: 600; font-size: .9rem; }
.site-header nav a:hover, .site-footer > a:last-child:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-contact { display: flex; align-items: center; gap: 12px; justify-self: end; white-space: nowrap; padding: 10px 13px; border: 1px solid var(--border); border-radius: 8px; }
.header-contact:hover { background: #e2f3f4; }
.header-contact span { color: #1b737a; }

main.frame { display: grid; gap: clamp(14px, 2.2vw, 31px); padding-block: 14px 0; }

.panel {
  border-radius: var(--radius);
  min-width: 0;
  min-height: max(540px, calc(100svh - var(--header-height) - 28px));
  display: grid;
  align-items: center;
  gap: clamp(24px, 4.5vw, 78px);
  padding: var(--pad);
  scroll-snap-align: start;
}

.panel > * { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #23626a;
  font-size: clamp(.69rem, 1.2vw, .8rem);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.45;
  margin-bottom: clamp(15px, 2vw, 24px);
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 11px;
  height: 10px;
  background: var(--teal);
  clip-path: polygon(0 0, 64% 0, 100% 50%, 64% 100%, 0 100%, 36% 50%);
}

h1, h2 { font-weight: 670; line-height: 1; letter-spacing: -.052em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.2vw, 5.7rem); }
h1 em { display: block; font-style: normal; color: var(--teal-light); }
h2 { font-size: clamp(2.5rem, 4.7vw, 5rem); }
h3 { font-size: clamp(1.06rem, 1.7vw, 1.32rem); line-height: 1.23; letter-spacing: -.02em; }
.lead { margin-top: clamp(17px, 2.2vw, 30px); max-width: 44ch; font-size: clamp(1rem, 1.45vw, 1.22rem); line-height: 1.55; color: var(--muted); }

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(28px, 6svh, 72px);
  background: var(--night);
  color: #f4fbfb;
}

.hero .eyebrow, .process .eyebrow { color: var(--teal-light); }
.hero .lead, .process .lead { color: #ccdcdf; }
.hero :focus-visible, .process :focus-visible { outline-color: var(--teal-light); }
.hero-content { position: relative; z-index: 1; }

.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 49%;
  background: linear-gradient(90deg, #0d1b24 0%, #0d1b2440 24%, transparent 58%),
    linear-gradient(0deg, #0d1b2454, transparent 56%),
    url('../img/server-room.webp') center center / cover no-repeat,
    #13313a;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  vertical-align: top;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  font-size: .97rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary { margin-top: clamp(22px, 3vw, 37px); background: var(--teal); color: #09252c; }
.button-primary:hover { background: #80d6d9; }
.hero-note { margin-top: 13px; color: #c4d7db; font-size: .88rem; }

.tasks { grid-template-columns: .9fr 1.1fr; background: #fff; border: 1px solid #deeaeb; }
.task-list { display: grid; gap: 11px; }
.task {
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr);
  gap: 15px;
  padding: clamp(15px, 1.8vw, 26px);
  background: #f5fafa;
  border: 1px solid #dceaea;
  border-radius: 13px;
}

.task-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 8px;
  background: #d6f0f1;
  color: #195961;
  font-size: 1.45rem;
  line-height: 1;
}

.task p, .steps p { font-size: .97rem; line-height: 1.48; margin-top: 5px; }
.task p { color: var(--muted); }

.process { grid-template-columns: .95fr 1.05fr; background: #14323c; color: #f4fbfb; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; border-bottom: 1px solid #ffffff3b; }
.steps li {
  counter-increment: steps;
  position: relative;
  padding: clamp(15px, 2vw, 27px) 0 clamp(15px, 2vw, 27px) 49px;
  border-top: 1px solid #ffffff3b;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(15px, 2vw, 27px);
  color: var(--teal-light);
  font: 600 1rem/1.5 'Consolas', monospace;
}

.steps p { color: #d2e4e5; }
.contact { grid-template-columns: 1fr 1fr; background: #d8f0f1; color: #11272f; }
.brief { background: #fff; padding: clamp(20px, 3.3vw, 48px); border-radius: 16px; }
.brief ul { margin: 17px 0 0; padding-left: 1.14em; display: grid; gap: 8px; color: var(--muted); line-height: 1.45; }
.brief li::marker { color: #277a82; }
.button-outline { margin-top: 24px; background: #fff; color: #15545c; border-color: #86b6bb; }
.button-outline:hover { background: #e8f7f7; }
.copy-status { min-height: 1.35em; margin-top: 8px; color: #235f66; font-size: .86rem; }
.copy-status:empty { min-height: 0; margin-top: 0; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 18px; }
.site-footer .brand { width: 66px; border-radius: 5px; }

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1.35fr .65fr; }
  .hero-media { left: 43%; }
}

@media (max-width: 740px) {
  :root { --header-height: 62px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .site-header nav { display: none; }
  .brand { width: 80px; }
  .panel { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .hero { padding-bottom: clamp(170px, 48vw, 290px); }
  .hero-media {
    inset: auto 0 0;
    height: clamp(190px, 52vw, 315px);
    background-image: linear-gradient(180deg, #0d1b24 0%, #0d1b240d 47%), url('../img/server-room.webp');
    background-position: center 56%;
  }
  .header-contact { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
