:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111214;
  --panel-strong: #17191d;
  --text: #f7f7f4;
  --muted: #c0c4cc;
  --muted-strong: #d7dbe2;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #8fd8ff;
  --accent-strong: #c8efff;
  --danger: #ff6b6b;
  --shadow: rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 216, 255, 0.14), transparent 33rem),
    linear-gradient(180deg, #050505 0%, #0a0b0d 48%, #050505 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.side-ribbons {
  position: fixed;
  top: -4rem;
  bottom: -4rem;
  z-index: -2;
  width: 14rem;
  pointer-events: none;
  opacity: 0.68;
  filter: drop-shadow(0 1.6rem 2.2rem rgba(0, 0, 0, 0.75));
}

.side-ribbons-left {
  left: -7.5rem;
}

.side-ribbons-right {
  right: -7.5rem;
  transform: scaleX(-1);
}

.ribbon {
  position: absolute;
  display: block;
  width: 4.8rem;
  height: 38rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 16%, rgba(255, 255, 255, 0.8) 48%, rgba(255, 255, 255, 0.95) 58%, rgba(196, 204, 214, 0.82) 100%),
    linear-gradient(180deg, #ffffff 0%, #dfe3e8 42%, #ffffff 100%);
  box-shadow:
    inset 1.1rem 0 1.7rem rgba(255, 255, 255, 0.46),
    inset -1rem 0 1.5rem rgba(122, 132, 145, 0.48),
    0 2rem 4rem rgba(0, 0, 0, 0.55);
}

.ribbon-a {
  top: 5rem;
  left: 0.2rem;
  transform: rotate(22deg);
}

.ribbon-b {
  top: 16rem;
  left: 4.6rem;
  height: 44rem;
  transform: rotate(-24deg);
}

.ribbon-c {
  top: 40rem;
  left: 1.4rem;
  height: 30rem;
  transform: rotate(18deg);
  opacity: 0.72;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(72rem, calc(100% - 2rem));
  min-height: 4.75rem;
  margin: 0 auto;
  padding: 0.8rem 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.78);
  box-shadow: 0 1rem 2rem var(--shadow);
}

.main-nav a,
.language-toggle,
.ghost-action,
.primary-action,
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.main-nav a {
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.language-toggle {
  gap: 0.55rem;
  border-color: rgba(143, 216, 255, 0.28);
  background: rgba(143, 216, 255, 0.1);
  color: var(--accent-strong);
}

.language-toggle span:first-child {
  color: var(--text);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.25rem auto;
  background: var(--text);
}

main {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - 5rem);
  padding: 4rem 0 6rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-shadow: 0 0.35rem 1.6rem rgba(0, 0, 0, 0.9);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: 5.5rem;
  line-height: 0.95;
}

.hero-slogan {
  max-width: 42rem;
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1.22;
  font-weight: 700;
}

.hero-subtitle,
.about-grid p,
.person-card p,
.project-card p,
.contact-section h2 {
  color: var(--muted);
  line-height: 1.72;
}

.hero-subtitle {
  max-width: 38rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-action {
  border-color: rgba(143, 216, 255, 0.44);
  background: linear-gradient(180deg, rgba(230, 249, 255, 0.98), rgba(143, 216, 255, 0.88));
  color: #050505;
  font-weight: 800;
  box-shadow: 0 0.9rem 2rem rgba(143, 216, 255, 0.18);
}

.ghost-action {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.danger-action {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd6d6;
}

.primary-action:hover,
.ghost-action:hover,
.danger-action:hover,
.language-toggle:hover {
  transform: translateY(-1px);
}

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28rem;
}

.logo-stage img {
  position: relative;
  width: min(25rem, 78%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2rem;
  object-fit: cover;
  box-shadow:
    0 2.4rem 5rem rgba(0, 0, 0, 0.72),
    0 0 3rem rgba(255, 255, 255, 0.08);
}

.logo-halo {
  position: absolute;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 57%),
    conic-gradient(from 120deg, rgba(255, 255, 255, 0), rgba(143, 216, 255, 0.2), rgba(255, 255, 255, 0));
  filter: blur(1px);
}

.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1.1;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 2rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.metrics div,
.person-card,
.project-card,
.admin-card,
.admin-login {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: 0 1.4rem 3.5rem var(--shadow);
}

.metrics div {
  min-height: 8rem;
  padding: 1.2rem;
}

.metrics strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

.person-card,
.project-card {
  min-height: 18rem;
  padding: 1.4rem;
}

.person-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
  font-weight: 900;
}

.person-card h3,
.project-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 2.2rem;
  margin-bottom: 1.2rem;
}

.project-type,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-type {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted-strong);
}

.status-badge {
  border: 1px solid rgba(143, 216, 255, 0.32);
  background: rgba(143, 216, 255, 0.1);
  color: var(--accent-strong);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 1.2rem;
  border: 1px solid rgba(143, 216, 255, 0.34);
  border-radius: 999px;
  background: rgba(143, 216, 255, 0.1);
  color: var(--accent-strong);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.maintenance-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.92);
}

.maintenance-screen[hidden] {
  display: none;
}

.maintenance-panel {
  width: min(32rem, 100%);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel-strong);
  text-align: center;
}

.maintenance-panel img {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.4rem;
  border-radius: 1rem;
  object-fit: cover;
}

.maintenance-panel h2 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.admin-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.admin-shell {
  width: min(74rem, 100%);
}

.admin-login {
  width: min(27rem, 100%);
  margin: 0 auto;
  padding: 2rem;
}

.admin-login img {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.4rem;
  border-radius: 0.9rem;
}

.admin-login h1,
.admin-header h1 {
  margin-bottom: 1.5rem;
  font-size: 2.4rem;
}

.admin-login form,
.status-card {
  display: grid;
  gap: 1rem;
}

.admin-login label,
.field-label {
  color: var(--muted-strong);
  font-weight: 700;
}

.admin-login input,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

.admin-login input {
  min-height: 3rem;
  padding: 0 0.9rem;
}

.admin-card textarea {
  resize: vertical;
  padding: 0.9rem;
}

.admin-message {
  min-height: 1.4rem;
  margin-bottom: 0;
  color: var(--muted);
}

.admin-dashboard[hidden],
.admin-login[hidden] {
  display: none;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.admin-header h1 {
  margin-bottom: 0;
}

.admin-header-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

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

.admin-card {
  min-height: 16rem;
  padding: 1.3rem;
}

.wide-card {
  grid-column: span 3;
}

.status-card h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 4rem;
  height: 2.2rem;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.switch span::after {
  position: absolute;
  top: 0.28rem;
  left: 0.28rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--text);
  content: "";
  transition: transform 160ms ease;
}

.switch input:checked + span {
  border-color: rgba(255, 107, 107, 0.42);
  background: rgba(255, 107, 107, 0.18);
}

.switch input:checked + span::after {
  transform: translateX(1.78rem);
  background: #ffd6d6;
}

.stats-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.stats-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.stats-list dt {
  color: var(--muted);
}

.stats-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.security-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.security-list li {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .side-ribbons {
    width: 8rem;
    opacity: 0.26;
  }

  .side-ribbons-left {
    left: -5rem;
  }

  .side-ribbons-right {
    right: -5rem;
  }

  .hero,
  .about-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .project-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .contact-section {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 4.5rem;
    right: 0;
    display: none;
    width: min(21rem, calc(100vw - 2rem));
    align-items: stretch;
    flex-direction: column;
    border-radius: 0.75rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .language-toggle {
    justify-content: flex-start;
    width: 100%;
    border-radius: 0.55rem;
  }

  h1 {
    font-size: 3.6rem;
  }

  .hero-slogan {
    font-size: 1.35rem;
  }

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

  .metrics,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .logo-stage {
    min-height: 18rem;
  }

  .site-footer,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .admin-header-actions,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .ghost-action,
  .danger-action {
    width: 100%;
  }

  h1 {
    font-size: 3rem;
  }
}
