:root {
  color-scheme: dark;
  --bg-deep: #04111d;
  --bg-mid: #082438;
  --panel: rgba(4, 18, 31, 0.78);
  --panel-border: rgba(124, 218, 255, 0.23);
  --text: #f4f8fb;
  --muted: #b8c9d5;
  --accent: #56d4ff;
  --accent-strong: #13b6ec;
  --focus: #ffcf5a;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(rgba(4, 17, 29, 0.08), rgba(4, 17, 29, 0.14)),
    url("../img/clean-tech-background-v3.png?v=4") center top / cover fixed no-repeat,
    #e7e3df;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 13, 23, 0.08), transparent 42%, rgba(1, 13, 23, 0.05));
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  background: rgba(3, 18, 30, 0.06);
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  top: 12px;
  right: max(14px, calc((100vw - 1120px) / 2));
  z-index: 2;
  display: flex;
  width: 126px;
  height: 140px;
  margin: 0;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: 126px;
  height: 140px;
  border-radius: 14px;
  background-color: rgba(235, 232, 228, 0.92);
  background-image: url("../img/logopersonalstationdevelopers3.png?v=4");
  background-position: right -7px top -32px;
  background-repeat: no-repeat;
  background-size: 1230px auto;
  box-shadow: 0 10px 28px rgba(3, 17, 29, 0.18);
}

.hero {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(116px, 15vh, 142px) 0 clamp(24px, 4vh, 44px);
  place-items: center;
}

.hero-card {
  display: flex;
  width: min(720px, 100%);
  min-height: 0;
  padding: clamp(28px, 5vw, 58px);
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: rgba(3, 17, 29, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.contact-button {
  display: inline-flex;
  align-self: flex-start;
  min-height: 50px;
  margin-top: 30px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #02131e;
  background: linear-gradient(135deg, #8ee8ff, var(--accent-strong));
  box-shadow: 0 14px 34px rgba(19, 182, 236, 0.24);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(19, 182, 236, 0.34);
}

.links-row {
  display: flex;
  margin-top: 30px;
  gap: 10px;
  flex-wrap: wrap;
}

.links-row a {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.links-row a:hover {
  color: var(--text);
  border-color: rgba(86, 212, 255, 0.54);
  background: rgba(86, 212, 255, 0.09);
}

.links-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.b144-mark {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.site-footer {
  display: flex;
  padding-block: 22px 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: #eaf2f6;
  border: 1px solid rgba(124, 218, 255, 0.18);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(3, 17, 29, 0.94);
  font-size: 0.78rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.88);
  flex-wrap: wrap;
}

.site-footer a {
  text-decoration-color: rgba(143, 165, 180, 0.45);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 26px, 1120px);
  }

  .site-header {
    top: 4px;
    right: 10px;
    display: flex;
    width: 100px;
    height: 112px;
  }

  .brand-logo {
    display: block;
    width: 100px;
    height: 112px;
    background-position: right -5px top -26px;
    background-size: 1024px auto;
  }

  .hero {
    padding: 124px 0 30px;
  }

  .hero-card {
    min-height: 0;
    padding: 26px 21px;
    border-radius: 22px;
  }

  .contact-button {
    align-self: stretch;
  }

  .links-row {
    gap: 8px;
  }

  .links-row a {
    min-height: 40px;
    padding-inline: 12px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  body {
    background-attachment: scroll;
    background-position: 54% center;
    background-size: auto 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  .hero-card,
  .links-row a {
    border-color: rgba(255, 255, 255, 0.65);
  }

  .intro,
  .links-row a,
  .site-footer {
    color: #eef7fb;
  }
}
