/* Digital Streamers — public site styles */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg-0: #070b14;
  --bg-1: #0b1220;
  --bg-2: #121a2e;
  --surface: rgba(18, 28, 52, 0.62);
  --surface-strong: rgba(22, 34, 62, 0.88);
  --border: rgba(140, 170, 255, 0.16);
  --border-strong: rgba(160, 180, 255, 0.32);
  --text: #e8eefc;
  --text-muted: #9aa8c7;
  --accent: #6b8cff;
  --accent-2: #8b6cff;
  --accent-3: #a855f7;
  --success: #3ecf8e;
  --danger: #ff6b7a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --container: 1120px;
  --header-h: 72px;
  --focus: 0 0 0 3px rgba(107, 140, 255, 0.55);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(91, 140, 255, 0.22), transparent 60%),
    radial-gradient(800px 480px at 90% 8%, rgba(168, 85, 247, 0.16), transparent 55%),
    radial-gradient(700px 420px at 50% 110%, rgba(59, 110, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, #090f1c 100%);
  background-attachment: fixed;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: #b8c9ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #e8eefc;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #061018;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand img,
.brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  color: #071018;
  background: linear-gradient(135deg, #7aa2ff, #8b6cff 55%, #b06cff);
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 14px 36px rgba(91, 140, 255, 0.38);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--small {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  background: radial-gradient(circle, rgba(107, 140, 255, 0.35), transparent 70%);
  right: -120px;
  top: 10%;
  animation: drift 14s ease-in-out infinite alternate;
}

.hero__glow--secondary {
  width: 380px;
  height: 380px;
  left: -80px;
  bottom: 5%;
  right: auto;
  top: auto;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28), transparent 70%);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 170, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.45;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f4f7ff 10%, #a9bfff 45%, #c9a6ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.section {
  padding: 5rem 0;
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__text {
  margin: 0;
  color: var(--text-muted);
}

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

.feature {
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.feature__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(107, 140, 255, 0.22), rgba(168, 85, 247, 0.18));
  border: 1px solid var(--border);
  color: #c9d7ff;
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.flow__node {
  padding: 1.35rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24, 36, 68, 0.8), rgba(14, 22, 42, 0.72));
  text-align: center;
}

.flow__node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

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

.flow__arrow {
  display: grid;
  place-items: center;
  color: #8ea4ff;
  font-size: 1.5rem;
  opacity: 0.85;
}

.access {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background:
    linear-gradient(135deg, rgba(91, 140, 255, 0.14), rgba(168, 85, 247, 0.1) 50%, rgba(10, 16, 30, 0.55)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.access::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 140, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.access__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.access__copy {
  max-width: 620px;
}

.access__copy h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.access__copy p {
  margin: 0;
  color: var(--text-muted);
}

.contact-block {
  display: grid;
  gap: 1rem;
  max-width: 520px;
  padding-bottom: 4rem;
}

.contact-card .btn {
  margin-top: 0.85rem;
}

.contact-card {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
}

.contact-card a {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.55);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.site-footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.site-footer__brand img {
  width: 40px;
  height: 40px;
}

.site-footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.site-footer__brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36ch;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-content: flex-start;
  justify-content: flex-end;
}

.site-footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__meta {
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--text-muted);
}

.prose {
  max-width: 720px;
  padding-bottom: 4rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.auth-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.auth-card {
  width: min(100%, 440px);
  margin-inline: auto;
  padding: 2rem 1.6rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-align: center;
}

.auth-card .auth-lead {
  margin: 0 0 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 11, 20, 0.75);
  color: var(--text);
  font: inherit;
}

.form-group input::placeholder {
  color: #6f7d9c;
}

.form-group input:focus {
  outline: none;
  box-shadow: var(--focus);
  border-color: rgba(140, 170, 255, 0.55);
}

.auth-card .btn {
  width: 100%;
  margin-top: 0.4rem;
}

.form-note {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.form-message.is-error {
  background: rgba(255, 107, 122, 0.12);
  border-color: rgba(255, 107, 122, 0.4);
  color: #ffd0d5;
}

.form-message.is-success {
  background: rgba(62, 207, 142, 0.12);
  border-color: rgba(62, 207, 142, 0.4);
  color: #c8f5df;
}

.error-page {
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.error-page p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, 18px, 0); }
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow__arrow {
    transform: rotate(90deg);
    padding: 0.2rem 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(8, 12, 22, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

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

  .nav a,
  .nav .btn {
    width: 100%;
    justify-content: center;
  }

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

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 360px) {
  .container,
  .site-header__inner {
    width: min(100% - 1.25rem, var(--container));
  }

  .hero__brand {
    font-size: 2.05rem;
  }

  .btn {
    width: 100%;
  }

  .hero__actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover,
  .feature:hover {
    transform: none;
  }
}
