:root {
  --ink: #edf6ff;
  --muted: #9eb0c9;
  --night: #050a17;
  --night-soft: #0a1328;
  --panel: rgba(12, 28, 55, 0.82);
  --line: rgba(124, 194, 255, 0.24);
  --cyan: #34b8ff;
  --cyan-bright: #67d7ff;
  --amber: #ffbe6b;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 88% 7%, rgba(27, 125, 233, 0.16), transparent 28rem),
    radial-gradient(circle at 8% 36%, rgba(0, 183, 255, 0.09), transparent 23rem),
    linear-gradient(135deg, #050a17 0%, #08152c 52%, #050a17 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.section,
.emergency,
.staff,
.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(124, 194, 255, 0.12);
}

.brand {
  width: fit-content;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: 0;
}

.brand strong {
  color: var(--cyan);
  font-weight: 750;
}

.site-nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a,
.header-link,
.site-footer a:not(.brand) {
  transition: color 180ms ease;
}

.site-nav a:hover,
.header-link:hover,
.site-footer a:not(.brand):hover {
  color: var(--cyan-bright);
}

.header-link {
  justify-self: end;
  color: var(--cyan-bright);
  font-size: 0.9rem;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(650px, 78svh);
  align-items: center;
  padding: 64px max(24px, calc((100% - var(--max-width)) / 2));
  background: #08152c url("assets/alexos-hero-future.png") center right / auto 100% no-repeat;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(5, 10, 23, 0.88), rgba(5, 10, 23, 0.65) 38%, transparent 67%);
}

.hero-copy {
  width: min(46%, 530px);
}

.hero h1 {
  margin-bottom: 18px;
  font-size: 5.5rem;
}

.hero-subtitle {
  margin-bottom: 24px;
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-bright);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 4rem;
  letter-spacing: 0;
}

h1 span {
  color: var(--cyan);
}

.hero-description {
  max-width: 550px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.93rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #03101c;
  background: var(--cyan-bright);
}

.button-primary:hover {
  background: #a0e9ff;
}

.button-quiet {
  border-color: rgba(116, 202, 255, 0.42);
  color: var(--ink);
  background: rgba(9, 31, 58, 0.35);
}

.button-quiet:hover {
  border-color: var(--cyan-bright);
  background: rgba(25, 82, 136, 0.32);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 0;
  color: #b6c5d8;
  font-size: 0.83rem;
}

.hero-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65dfb5;
  box-shadow: 0 0 0 5px rgba(101, 223, 181, 0.12);
}

.section {
  padding-block: 88px;
}

.section-heading {
  max-width: 750px;
}

.section-heading.narrow {
  max-width: 640px;
}

.section-heading h2,
.emergency h2,
.staff h2 {
  margin-bottom: 16px;
  font-size: 2.75rem;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.staff p:not(.eyebrow) {
  color: var(--muted);
}

.resident-path {
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
  margin: 46px 0 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 220px;
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(150deg, rgba(18, 53, 94, 0.52), rgba(5, 16, 35, 0.52));
}

.steps li::after {
  position: absolute;
  width: 9px;
  height: 9px;
  top: -5px;
  right: 25px;
  border-radius: 50%;
  content: "";
  background: var(--cyan-bright);
  box-shadow: 0 0 18px var(--cyan);
}

.steps span,
.card-number,
.news-date {
  color: var(--cyan-bright);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.steps h3,
.capability-card h3,
.news-card h3 {
  margin: 28px 0 11px;
  font-size: 1.25rem;
}

.steps p,
.capability-card p:not(.card-number),
.news-card p:not(.news-date) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.resident-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 28px;
  color: var(--cyan-bright);
  font-weight: 700;
}

.resident-link:hover {
  color: #a0e9ff;
}

.emergency {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  padding: 36px 40px;
  border: 1px solid rgba(255, 190, 107, 0.55);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(88, 49, 12, 0.78), rgba(24, 28, 37, 0.92));
}

.emergency .eyebrow {
  color: #ffd28f;
}

.emergency h2 {
  margin-bottom: 9px;
}

.emergency p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: #e3caa5;
}

.emergency-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 220px;
}

.emergency-number {
  display: block;
  padding: 11px 14px;
  border: 1px solid rgba(255, 210, 143, 0.6);
  border-radius: 5px;
  color: #fff5e5;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.15;
}

.emergency-number span {
  display: block;
  margin-top: 4px;
  color: #e3caa5;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.emergency-number.secondary {
  border-color: rgba(255, 210, 143, 0.3);
}

.capabilities {
  padding-top: 110px;
}

.capability-grid,
.news-grid {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.capability-grid {
  grid-template-columns: repeat(4, 1fr);
}

.capability-card,
.news-card {
  min-height: 220px;
  padding: 23px;
  border: 1px solid rgba(113, 185, 247, 0.18);
  border-radius: 7px;
  background: rgba(12, 29, 57, 0.66);
}

.capability-card h3 {
  margin-top: 31px;
}

.news {
  padding-top: 28px;
}

.row-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.52fr);
  gap: 44px;
  align-items: end;
}

.row-heading > p {
  margin: 0 0 16px;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-card {
  min-height: 205px;
  border-top-color: rgba(103, 215, 255, 0.58);
}

.news-card h3 {
  margin-top: 22px;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
  gap: 76px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 21px 34px 21px 0;
  cursor: pointer;
  color: #f5f9ff;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 21px;
  right: 5px;
  content: "+";
  color: var(--cyan-bright);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 700px;
  margin: -2px 0 21px;
  color: var(--muted);
  font-size: 0.94rem;
}

.staff {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 80px;
  padding: 48px 50px;
  border: 1px solid rgba(103, 215, 255, 0.27);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(12, 53, 100, 0.76), rgba(7, 17, 39, 0.83));
}

.staff > div {
  max-width: 730px;
}

.staff h2 {
  max-width: 620px;
}

.staff p:not(.eyebrow) {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 0.85fr);
  gap: 24px;
  padding: 42px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand p {
  max-width: 265px;
  margin: 12px 0 0;
  font-size: 0.85rem;
}

.footer-label {
  margin-bottom: 10px;
  color: #dceaff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  color: var(--cyan-bright);
  font-size: 0.92rem;
}

.footer-extra-link {
  display: block;
  margin-top: 10px;
}

.requisites-page {
  width: min(calc(100% - 32px), 960px);
  margin-inline: auto;
  padding-block: 64px;
}

.requisites-page h1 { font-size: 2.5rem; }
.requisites-lead { max-width: 740px; color: var(--muted); }
.requisites-section { padding-block: 32px; border-top: 1px solid var(--line); margin-top: 32px; }
.requisites-section h2 { font-size: 1.5rem; overflow-wrap: anywhere; }
.requisites-list { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px 24px; }
.requisites-list dt { color: var(--muted); }
.requisites-list dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.account-number { color: var(--cyan-bright); font-weight: 700; }
@media (max-width: 600px) {
  .requisites-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .requisites-list dd { margin-bottom: 16px; }
}

.copyright {
  grid-column: 1 / -1;
  margin: 27px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 194, 255, 0.1);
  color: #72849d;
  font-size: 0.76rem;
}

.privacy-page {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(180px, 1fr);
  gap: 64px;
  min-height: calc(100vh - 146px);
  padding-block: 88px;
}

.residents-page {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
  padding-block: 82px;
}

.residents-intro {
  max-width: 760px;
  padding-bottom: 78px;
}

.residents-intro h1 {
  max-width: 740px;
  font-size: 3.75rem;
}

.residents-intro > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.resident-guide {
  padding-block: 56px;
  border-top: 1px solid var(--line);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.guide-list li {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(12, 29, 57, 0.66);
}

.guide-list span {
  color: var(--cyan-bright);
  font-size: 0.78rem;
  font-weight: 750;
}

.guide-list h3 {
  margin: 25px 0 11px;
  font-size: 1.2rem;
}

.guide-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.resident-note {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-block: 26px 78px;
  padding: 42px;
  border: 1px solid rgba(103, 215, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(12, 53, 100, 0.68), rgba(7, 17, 39, 0.84));
}

.resident-note > div {
  max-width: 710px;
}

.resident-note h2 {
  margin-bottom: 13px;
  font-size: 2rem;
}

.resident-note p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.resident-emergency {
  width: 100%;
}

.privacy-page h1 {
  margin-bottom: 25px;
  font-size: 3.5rem;
}

.privacy-page h2 {
  margin: 35px 0 12px;
  font-size: 1.35rem;
}

.privacy-page p,
.privacy-page li {
  color: var(--muted);
}

.privacy-page ul {
  padding-left: 22px;
}

.privacy-aside {
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.privacy-aside p:last-child {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-block: 16px;
    row-gap: 16px;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .hero-copy {
    width: 49%;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }


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

  .faq,
  .privacy-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 680px) {
  .site-header,
  .section,
  .emergency,
  .staff,
  .site-footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    min-height: 68px;
  }

  .header-link {
    font-size: 0.78rem;
  }

  .hero {
    align-items: end;
    min-height: 0;
    padding: 235px 16px 32px;
    background-size: auto 280px;
    background-position: 75% top;
  }

  .hero::before {
    background: linear-gradient(180deg, transparent 130px, #08152c 275px);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-status {
    font-size: 0.75rem;
  }

  .privacy-page {
    width: calc(100% - 32px);
  }

  .hero-description {
    font-size: 0.98rem;
  }





  .section {
    padding-block: 62px;
  }

  .section-heading h2,
  .emergency h2,
  .staff h2 {
    font-size: 2rem;
  }

  .privacy-page h1 {
    font-size: 2.5rem;
  }

  .steps,
  .news-grid,
  .capability-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 31px;
  }

  .steps li,
  .capability-card,
  .news-card {
    min-height: 0;
  }

  .emergency,
  .row-heading,
  .staff {
    grid-template-columns: 1fr;
  }

  .emergency {
    padding: 30px 24px;
  }

  .emergency-actions {
    min-width: 0;
  }

  .faq {
    gap: 20px;
  }

  .staff {
    display: grid;
    margin-bottom: 54px;
    padding: 34px 25px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding-top: 32px;
  }

  .footer-brand,
  .copyright {
    grid-column: 1 / -1;
  }

  .privacy-page {
    min-height: auto;
    padding-block: 55px;
  }

  .residents-page {
    width: calc(100% - 32px);
    padding-block: 55px;
  }

  .residents-intro {
    padding-bottom: 54px;
  }

  .residents-intro h1 {
    font-size: 2.5rem;
  }

  .guide-list {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .guide-list li {
    min-height: 0;
  }

  .resident-note {
    display: grid;
    gap: 25px;
    margin-block: 20px 54px;
    padding: 30px 24px;
  }

  .resident-note h2 {
    font-size: 1.7rem;
  }
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 5px;
}

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

  *, *::before, *::after {
    transition: none !important;
  }
}
