/* Landing page styles (Home) */
:root {
  --landing-bg: #0d1117;
  --landing-surface: #111827;
  --landing-overlay: rgba(8, 10, 16, 0.55);
  --landing-overlay-strong: rgba(6, 8, 12, 0.75);
  --landing-text: #ffffff;
  --landing-muted: rgba(255,255,255,0.75);
  --landing-border: rgba(255,255,255,0.16);
  --landing-danger: #ef4444; /* для кнопки "Войти" как на макете */
  --side-w: clamp(260px, 26vw, 360px);
  /* Тонкая настройка стеклянного эффекта */
  --glass-blur: 8px;
  --glass-sat: 180%;
  --glass-bg-1: rgba(255,255,255,0.22);
  --glass-bg-2: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.38);
  --glass-shadow: 0 16px 38px rgba(2,6,23,0.20);
}

body.landing-page {
  background: radial-gradient(1200px 600px at 50% 10%, #111827, #0d1117);
  color: var(--landing-text);
}

.landing-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.landing-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 0 0 220px rgba(2,6,23,0.35), inset 0 -60px 120px rgba(2,6,23,0.25);
  background: #0b1020;
}

.landing-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('/assets/images/stanford_uni.jpg') center/cover no-repeat;
  filter: saturate(105%) contrast(102%);
  pointer-events: none;
}

.landing-hero::after {
  /* общий тёмный слой */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(90deg,
      var(--landing-overlay-strong) 0%,
      var(--landing-overlay) 35%,
      rgba(8,10,16,0.35) 70%,
      rgba(8,10,16,0.12) 100%
    );
  pointer-events: none;
}

/* Левый вертикальный блок навигации */
.landing-side {
  position: absolute;
  left: 48px; top: 50%; bottom: auto;
  transform: translateY(-50%);
  width: var(--side-w);
  padding: 22px 20px;
  display: flex; flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--glass-bg-1), var(--glass-bg-2));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  background-clip: padding-box;
  z-index: 2;
}

.landing-side::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(255,255,255,0.25);
  pointer-events: none;
}

.landing-side::after {
  content: "";
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 60%; height: 100%;
  background:
    radial-gradient(140px 60px at 20% 10%, rgba(255,255,255,0.55), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  opacity: 0.5;
  filter: blur(10px);
  pointer-events: none;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--landing-text);
  font-weight: 800; letter-spacing: 0.4px;
}
.brand img { height: 32px; width: auto; }
.brand .brand-name { font-size: 18px; opacity: 0.95; }
.brand .brand-sub { font-size: 13px; opacity: 0.7; display: block; }

.landing-menu {
  margin-top: 22px; display: flex; flex-direction: column; gap: 10px;
}
.landing-menu a {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.78);
  padding: 10px 12px; border-radius: 12px;
  transition: background .18s ease, color .18s ease;
}
.landing-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.landing-menu a.active {
  color: #fff; background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

/* Центральный контент */
.landing-content {
  position: absolute;
  left: calc(var(--side-w) + 96px);
  right: 40px;
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
  z-index: 2;
}

.hero-title {
  margin: 0; font-weight: 800; line-height: 1.05;
  font-size: clamp(34px, 5.4vw, 64px);
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}
.hero-sub {
  max-width: 56ch; color: var(--landing-muted);
  font-size: clamp(14px, 2vw, 18px);
}

.hero-actions { display: flex; gap: 10px; margin-top: 8px; }
.hero-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--landing-danger); color: #fff; font-weight: 700;
  box-shadow: 0 10px 24px rgba(239,68,68,0.35);
}
.hero-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--landing-text); background: rgba(0,0,0,0.35);
  box-shadow: 0 10px 24px rgba(2,6,23,0.25);
}
.hero-btn-primary:hover { filter: brightness(1.08); }
.hero-btn-secondary:hover { background: rgba(0,0,0,0.5); }

/* Нижняя строка — легкая подсказка */
.hero-note {
  margin-top: 8px; font-size: 14px; color: rgba(255,255,255,0.65);
}

/* Адаптивность */
@media (max-width: 860px) {
  .landing-side { display: none; }
  .landing-content { left: 24px; right: 24px; }
  .landing-hero { height: 100vh; }
  .hero-title { font-size: clamp(32px, 7.2vw, 52px); }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
}