:root {
  color-scheme: dark;
  --background: #08090d;
  --background-soft: #11131b;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --panel-border: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #f1b96a;
  --accent-bright: #ffd69c;
  --button-text: #17120b;
  --error-background: rgba(190, 50, 50, 0.18);
  --error-border: rgba(255, 100, 100, 0.45);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(145, 91, 202, 0.25),
      transparent 34rem
    ),
    radial-gradient(
      circle at 85% 28%,
      rgba(241, 185, 106, 0.1),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      var(--background) 0%,
      var(--background-soft) 58%,
      #08090d 100%
    );
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

/* Login */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 44px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 0 auto 25px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.login-card h1 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.login-introduction {
  margin: 0 0 28px;
  color: var(--muted);
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}

input {
  display: block;
  width: 100%;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(241, 185, 106, 0.8);
  box-shadow: 0 0 0 4px rgba(241, 185, 106, 0.12);
}

button {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border: 0;
  border-radius: 11px;
  color: var(--button-text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(241, 185, 106, 0.2);
  filter: brightness(1.04);
}

.error-message {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--error-background);
  border: 1px solid var(--error-border);
  border-radius: 10px;
}

/* Header and page */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 30px 0;
}

.login-status {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.logout-link {
  padding: 8px 15px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.logout-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.page-container {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 35px 0 90px;
}

.hero {
  position: relative;
  max-width: 930px;
  margin: 0 auto 110px;
  padding: 54px 45px 58px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.018)
  );
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  left: 50%;
  top: -325px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(241, 185, 106, 0.35),
    transparent 66%
  );
  filter: blur(8px);
}

.hero-logo {
  position: relative;
  display: block;
  width: min(100%, 500px);
  height: auto;
  margin: 0 auto 38px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.introduction {
  max-width: 790px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.introduction p {
  margin: 0 0 18px;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 20px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-radius: 999px;
  color: var(--button-text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 15px 40px rgba(241, 185, 106, 0.18);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.watch-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 46px rgba(241, 185, 106, 0.28);
}

.watch-icon {
  font-size: 0.85em;
}

/* Videos */
.videos-area {
  scroll-margin-top: 30px;
}
.videos-heading {
  margin: 0 0 55px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
}

.videos-heading::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.video-section {
  margin-bottom: 86px;
  padding: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.048),
    rgba(255, 255, 255, 0.022)
  );
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.video-copy {
  margin: 0 4px 20px;
}
.video-copy h2 {
  margin: 0 0 7px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}
.video-copy p {
  margin: 0;
  color: var(--muted);
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  border-radius: inherit;
}

video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  background: #000;
}

.site-footer {
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  font-size: 0.9rem;
}

/* Reveal animation only when JavaScript is available */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .login-card {
    padding: 32px 23px;
  }
  .site-header {
    padding: 18px 16px 0;
  }
  .login-status span {
    display: none;
  }
  .page-container {
    width: min(100% - 24px, 1080px);
    padding-top: 26px;
  }
  .hero {
    margin-bottom: 70px;
    padding: 38px 20px 42px;
    border-radius: 22px;
  }
  .hero-logo {
    margin-bottom: 28px;
  }
  .video-section {
    margin-bottom: 48px;
    padding: 14px;
    border-radius: 18px;
  }
  .video-copy {
    margin: 4px 4px 16px;
  }
  .video-frame {
    border-radius: 12px;
  }
}

/* Introductory note above the project videos */
.videos-introduction {
  max-width: 820px;
  margin: -30px auto 55px;
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
}

@media (max-width: 800px) {
  .videos-introduction {
    margin-top: -15px;
    margin-bottom: 40px;
    text-align: left;
  }
}
