:root {
  --primary: #dfb8f6;
  --on-primary: #412356;
  --primary-container: #593a6e;
  --on-primary-container: #f3daff;

  --background: #161217;
  --on-background: #e9e0e8;

  --surface-container-low: #1e1a20;
  --surface-container: #221e24;
  --surface-container-lowest: #100d12;

  --on-surface: #e9e0e8;
  --on-surface-variant: #cdc3ce;

  --outline: #968e98;
  --outline-variant: #4b454d;

  --scrim: rgba(0, 0, 0, 0.4);
  --shadow: 0 14px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(1200px 800px at 75% -10%, rgba(223, 184, 246, 0.12), transparent 60%),
    radial-gradient(900px 600px at 10% 15%, rgba(223, 184, 246, 0.08), transparent 60%),
    var(--background);
  color: var(--on-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: inherit;
}

::selection {
  background: rgba(223, 184, 246, 0.25);
}

/* Loading */
html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(15, 15, 15, 1);
  transition: opacity 600ms ease, visibility 600ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader__inner {
  text-align: center;
  padding: 24px;
}

.page-loader__brand {
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  font-size: clamp(16px, 1.2vw + 10px, 22px);
}

.page-loader__line {
  width: 84px;
  height: 1px;
  margin: 18px auto 0;
  background: rgba(223, 184, 246, 0.9);
  transform-origin: left;
  animation: loaderLine 1.25s ease-in-out infinite;
}

@keyframes loaderLine {
  0% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
}

/* Header */
.site-header {
  background: rgba(34, 30, 36, 0.1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 69, 77, 0.6);
}

.site-logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 24px;
  color: var(--on-surface);
}

.site-nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--on-surface-variant);
  padding: 0.25rem 0;
  transition: color 160ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--on-surface);
}

.btn-contact {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: 1px solid rgba(223, 184, 246, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(223, 184, 246, 0.32);
}

.btn-contact:focus-visible {
  outline: 2px solid rgba(223, 184, 246, 0.6);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 9vh, 8rem) 0 5rem;
  background-image: url("../img/hero-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(223, 184, 246, 0.9);
}

.hero-title {
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(3rem, 6vw + 1rem, 6rem);
  color: var(--on-background);
}

.hero-subtitle {
  max-width: 48rem;
  font-size: 18px;
  line-height: 1.8;
  color: var(--on-surface-variant);
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid rgba(223, 184, 246, 0.45);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  filter: saturate(1.05);
}

.btn-primary-cta:focus-visible {
  outline: 2px solid rgba(223, 184, 246, 0.7);
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  background: rgba(34, 30, 36, 0.5);
  color: var(--on-surface);
  border: 1px solid rgba(75, 69, 77, 0.7);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(223, 184, 246, 0.3);
  background: rgba(34, 30, 36, 0.7);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(223, 184, 246, 0.95);
}

.scroll-indicator__text {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
}

.scroll-indicator__line {
  width: 1px;
  height: 44px;
  background: rgba(223, 184, 246, 0.85);
  transform-origin: top;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0.3);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.3);
    opacity: 0.35;
  }
}

/* Sections */
.section {
  padding: 120px 0;
}

@media (max-width: 991.98px) {
  .section {
    padding: 88px 0;
  }
}

#mission,
#services,
#news,
#company,
#contact {
  scroll-margin-top: 92px;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--primary);
}

.section-title {
  font-weight: 300;
  font-size: clamp(2rem, 2.4vw + 1.2rem, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.section-title--center {
  text-align: center;
}

.section-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--on-surface-variant);
}

.section-caption {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.8;
}

/* Mission media */
.media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(75, 69, 77, 0.65);
  background: rgba(34, 30, 36, 0.5);
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.media-frame--wide {
  aspect-ratio: 16 / 10;
}

.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Services */
.section-services {
  background: var(--surface-container-low);
  border-top: 1px solid rgba(75, 69, 77, 0.55);
  border-bottom: 1px solid rgba(75, 69, 77, 0.55);
}

.service-card {
  border-radius: 16px;
  padding: 28px 26px;
  background: rgba(34, 30, 36, 0.85);
  border: 1px solid rgba(75, 69, 77, 0.7);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 184, 246, 0.28);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(223, 184, 246, 0.08);
  border: 1px solid rgba(223, 184, 246, 0.2);
  margin-bottom: 18px;
  font-size: 22px;
}

.service-card__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--on-surface);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.service-card__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--on-surface-variant);
}

/* News */
.news-wrap {
  max-width: 800px;
}

.news-title {
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.news-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(75, 69, 77, 0.8);
}

.news-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.news-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--on-surface);
  transition: opacity 160ms ease, transform 160ms ease;
}

.news-link:hover {
  opacity: 0.92;
  transform: translateX(2px);
}

.news-text {
  font-size: 18px;
  line-height: 1.5;
}

.news-link i {
  color: var(--on-surface-variant);
}

/* Company */
.company-panel {
  border-radius: 16px;
  background: rgba(34, 30, 36, 0.6);
  border: 1px solid rgba(75, 69, 77, 0.65);
  padding: 24px;
}

.company-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(75, 69, 77, 0.55);
}

.company-row:last-child {
  border-bottom: 0;
}

.company-row dt {
  color: var(--on-surface-variant);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.company-row dd {
  margin: 0;
  color: var(--on-surface);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 575.98px) {
  .company-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Contact */
.section-contact {
  padding-top: 0;
}

.section-careers {
  background: var(--surface-container-low);
  border-top: 1px solid rgba(75, 69, 77, 0.55);
  border-bottom: 1px solid rgba(75, 69, 77, 0.55);
}

.career-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(34, 30, 36, 0.85);
  border: 1px solid rgba(75, 69, 77, 0.7);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.career-card:hover {
  transform: translateY(-3px);
  border-color: rgba(223, 184, 246, 0.28);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.career-card__media {
  aspect-ratio: 16 / 9;
  background: rgba(22, 18, 23, 0.6);
}

.career-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.career-card__body {
  padding: 18px 18px 20px;
}

.career-card__kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 8px;
}

.career-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--on-surface);
}

.career-card__title i {
  color: var(--on-surface-variant);
}

.contact-cta {
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(135deg, rgba(89, 58, 110, 0.55), rgba(34, 30, 36, 0.55));
  border: 1px solid rgba(223, 184, 246, 0.18);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.contact-title {
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}

.contact-text {
  color: var(--on-surface-variant);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--surface-container-lowest);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(75, 69, 77, 0.55);
}

.footer-brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 12px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--on-surface-variant);
}

.footer-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--on-surface-variant);
  transition: color 160ms ease;
}

.footer-list a:hover {
  color: var(--on-surface);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.footer-social__link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 69, 77, 0.75);
  background: rgba(34, 30, 36, 0.3);
  color: var(--on-surface-variant);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-social__link:hover {
  transform: translateY(-1px);
  border-color: rgba(223, 184, 246, 0.25);
  color: var(--on-surface);
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  color: var(--outline);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
}
