:root {
  --bg: #010b16;
  --text: #f4f8fb;
  --muted: #aebbc5;
  --line: rgba(93, 151, 187, .25);
  --cyan: #0fb7f4;
  --cyan-soft: #77ddff;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 48%, rgba(0, 121, 190, .12), transparent 33%),
    linear-gradient(90deg, rgba(1, 11, 22, .58), transparent 55%);
}

#network {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .8;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(28px, 4.4vw, 76px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(1, 9, 18, .72), rgba(1, 9, 18, .22));
  position: relative;
  z-index: 3;
}

.brand {
  display: inline-block;
}

.brand img {
  display: block;
  width: clamp(250px, 23vw, 350px);
  height: auto;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #d8e1e7;
  font-size: clamp(.96rem, 1.15vw, 1.12rem);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.phone svg { width: 23px; height: 23px; fill: var(--cyan); }
.phone:hover, .phone:focus-visible { color: var(--cyan-soft); transform: translateY(-1px); }

.hero {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(400px, .78fr) minmax(520px, 1.22fr);
  align-items: center;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, var(--bg) 0%, rgba(1,11,22,.92) 25%, rgba(1,11,22,.28) 54%, rgba(1,11,22,.02) 100%),
    url("assets/cogittrm-hero-construction-hd.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-copy {
  grid-column: 1;
  position: relative;
  max-width: 780px;
  padding: clamp(30px, 5vh, 68px) 20px clamp(30px, 5vh, 68px) clamp(42px, 8.5vw, 145px);
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
  z-index: 3;
}

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan-soft);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(15,183,244,.12), 0 0 16px var(--cyan);
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 5.2vw, 6rem);
  font-weight: 430;
  line-height: 1.04;
  letter-spacing: -.045em;
}
h1 span { color: var(--cyan); text-shadow: 0 0 28px rgba(15,183,244,.22); }
.accent {
  width: 94px;
  height: 2px;
  margin: clamp(22px, 3.2vh, 34px) 0;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(15,183,244,.7);
}
.lead, .support {
  max-width: 620px;
  margin: 0;
  color: #dce4e9;
  font-size: clamp(1.02rem, 1.22vw, 1.2rem);
  line-height: 1.58;
}
.support { margin-top: 4px; color: var(--muted); }

.site-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(28px, 4.4vw, 76px);
  border-top: 1px solid var(--line);
  color: #7f909c;
  background: rgba(1, 8, 15, .56);
  font-size: .82rem;
  position: relative;
  z-index: 3;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 26px; }
.site-footer a { color: #91a3ae; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--cyan-soft); }

.legal-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.legal-header .brand img { width: clamp(210px, 20vw, 285px); }
.back-link, .legal-main a { color: var(--cyan-soft); }
.back-link { text-decoration: none; white-space: nowrap; }
.back-link:hover, .back-link:focus-visible { text-decoration: underline; }
.legal-main {
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 0 80px;
  line-height: 1.75;
}
.legal-main h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 6vw, 4.8rem); }
.legal-intro { max-width: 700px; margin: 0; color: #c9d4db; font-size: clamp(1.08rem, 2vw, 1.25rem); }
.updated { margin: 14px 0 46px; color: var(--cyan-soft); font-size: .9rem; }
.legal-main section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal-main h2 { margin: 0 0 16px; font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; }
.legal-main p { margin: 0 0 14px; color: var(--muted); }
.legal-main p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .page-shell { height: auto; }
  .site-header { min-height: 96px; }
  .hero { min-height: calc(100dvh - 152px); display: flex; align-items: flex-end; }
  .hero-art {
    background-image:
      linear-gradient(180deg, rgba(1,11,22,.08) 5%, rgba(1,11,22,.6) 52%, var(--bg) 88%),
      linear-gradient(90deg, rgba(1,11,22,.18), transparent),
      url("assets/cogittrm-hero-construction-hd.jpg");
    background-position: center, center, 64% center;
    background-size: cover;
  }
  .hero-copy { width: 100%; max-width: 700px; padding: 36vh 28px 44px; }
}

@media (max-width: 760px) {
  #network { opacity: .62; }
  .page-shell { height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
  .site-header { min-height: 78px; padding: 7px 16px; }
  .brand img { width: clamp(190px, 55vw, 230px); }
  .phone { width: 40px; height: 40px; flex: 0 0 auto; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
  .phone span { display: none; }
  .phone svg { width: 20px; height: 20px; }
  .hero { min-height: 0; align-items: center; }
  .hero-art {
    background-image:
      linear-gradient(180deg, rgba(1,11,22,.04) 0%, rgba(1,11,22,.18) 30%, rgba(1,11,22,.92) 67%, var(--bg) 91%),
      url("assets/cogittrm-hero-construction-hd.jpg");
    background-position: center, 63% top;
    background-size: cover, auto 64%;
    background-repeat: no-repeat;
  }
  .hero-copy { max-width: 610px; padding: clamp(132px, 18vh, 205px) 22px clamp(14px, 2.5vh, 24px); }
  .eyebrow { margin-bottom: 11px; font-size: .61rem; letter-spacing: .12em; }
  h1 { max-width: 560px; font-size: clamp(2.35rem, 10vw, 3.35rem); line-height: 1.02; }
  .accent { width: 72px; margin-block: 17px; }
  .lead, .support { max-width: 560px; font-size: .9rem; line-height: 1.43; }
  .support { margin-top: 5px; }
  .site-footer { min-height: 58px; flex-direction: row; text-align: center; gap: 10px; padding: 9px 16px; font-size: .7rem; }
  .site-footer p { max-width: 210px; text-align: left; }
  .site-footer nav { gap: 16px; flex-wrap: nowrap; justify-content: center; }
  .legal-header { min-height: 78px; padding: 8px 18px; }
  .legal-header .brand img { width: 190px; }
  .legal-main { width: min(100% - 36px, 880px); padding-top: 42px; }
  .legal-main h1 { font-size: 2.75rem; }
  .updated { margin-bottom: 36px; }
  .legal-main section { padding: 26px 0; }
}

@media (max-width: 420px) {
  .site-header { padding-inline: 13px; }
  .brand img { width: 185px; }
  .phone { width: 38px; height: 38px; }
  .hero-copy { padding: clamp(122px, 16vh, 174px) 18px 18px; }
  h1 { font-size: clamp(2.28rem, 11.8vw, 3.05rem); }
  .lead, .support { font-size: .84rem; }
  .site-footer { gap: 12px; padding-inline: 14px; }
  .site-footer p { display: none; }
  .site-footer nav { width: 100%; gap: 24px; }
}

@media (max-width: 760px) and (max-height: 720px) {
  .page-shell { height: auto; overflow: visible; }
  .hero { min-height: 640px; }
  .hero-copy { padding-top: 180px; }
}

@media (max-height: 720px) and (min-width: 901px) {
  .site-header { min-height: 88px; }
  .brand img { width: 270px; }
  .hero-copy { padding-block: 20px; }
  .eyebrow { margin-bottom: 10px; }
  h1 { font-size: clamp(3rem, 4.7vw, 4.8rem); }
  .accent { margin-block: 18px; }
  .lead, .support { font-size: .96rem; line-height: 1.45; }
  .site-footer { min-height: 48px; padding-block: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  #network { display: none; }
}
