:root {
  --bg: #f5f3ef;
  --text: #111111;
  --muted: #6f6a63;
  --soft: #ffffff;
  --line: rgba(0,0,0,.08);
  --dark: #111111;
  --red: #ff2f2f;
  --purple: #7c3aed;
  --shadow: 0 30px 90px rgba(0,0,0,.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 5%, rgba(255,47,47,.10), transparent 25%),
    radial-gradient(circle at 10% 20%, rgba(124,58,237,.08), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

.page-fade {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  pointer-events: none;
  animation: fadeOut .55s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 850;
  letter-spacing: -.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px white;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(0,0,0,.04);
}

.nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: .2s ease;
}

.nav nav a:hover,
.nav nav a.active {
  background: var(--dark);
  color: white;
}

.nav-cta {
  text-decoration: none;
  color: white;
  background: var(--dark);
  padding: 12px 17px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 14px;
  transition: .2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--red);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 54px;
  align-items: center;
  padding: 50px 0 70px;
}

.eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 28px;
  animation: slideUp .6s ease both;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 15px rgba(255,47,47,.7);
  animation: pulse 1.4s infinite;
}

.hero h1 {
  font-size: clamp(70px, 13vw, 168px);
  line-height: .82;
  letter-spacing: -.095em;
  color: var(--text);
  animation: slideUp .75s .05s ease both;
}

.hero p {
  max-width: 680px;
  margin-top: 28px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.32;
  color: var(--muted);
  animation: slideUp .75s .12s ease both;
}

.countdown-card {
  width: min(440px, 100%);
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: slideUp .75s .18s ease both;
}

.countdown-card small {
  display: block;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 6px;
}

.countdown-card strong {
  font-size: 42px;
  letter-spacing: -.05em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  animation: slideUp .75s .24s ease both;
}

.primary,
.secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  transition: .22s ease;
}

.primary {
  background: var(--text);
  color: white;
}

.secondary {
  background: rgba(255,255,255,.74);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
}

.profile-card {
  position: relative;
  min-height: 520px;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(17,17,17,.03), rgba(255,255,255,.4)),
    rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
  animation: cardIn .8s .18s ease both, floatCard 6s ease-in-out infinite;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: auto -25% -25% -25%;
  height: 220px;
  background: radial-gradient(circle, rgba(255,47,47,.12), transparent 70%);
}

.profile-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
  letter-spacing: .08em;
}

.portrait-wrap {
  position: relative;
  z-index: 2;
  width: 235px;
  height: 235px;
  margin: 70px auto 42px;
  border-radius: 50%;
  padding: 7px;
  background: linear-gradient(135deg, var(--text), var(--red));
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 7px solid white;
  border-radius: 50%;
}

.profile-info {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-info small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-info strong {
  font-size: 25px;
}

.profile-info a {
  text-decoration: none;
  color: white;
  background: var(--text);
  padding: 12px 17px;
  border-radius: 999px;
  font-weight: 850;
}

.status-box {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 15px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.status-box strong,
.status-box span {
  display: block;
}

.status-box span {
  color: var(--muted);
  font-size: 14px;
}

.dot,
.api-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}

.api-dot.live,
.dot.live {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255,47,47,.65);
}

.api-dot.ok,
.dot.ok {
  background: #16a34a;
}

.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head small {
  color: var(--red);
  font-weight: 900;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -.07em;
  line-height: .95;
}

.section-head a {
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 800;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}

.video-card,
.v5-video-card,
.manual-card,
.placeholder,
.skeleton-card {
  scroll-snap-align: start;
  min-height: 265px;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid var(--line) !important;
  border-radius: 28px !important;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.055);
  transition: .22s ease;
}

.video-card:hover,
.v5-video-card:hover,
.manual-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.10);
}

.video-thumb,
.v5-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-body,
.v5-video-body {
  padding: 16px !important;
}

.video-body h3,
.v5-video-body h3 {
  color: var(--text) !important;
  font-size: 17px !important;
  line-height: 1.25;
  margin-bottom: 8px;
}

.video-body p,
.v5-video-body p {
  color: var(--muted);
  font-size: 14px;
}

.video-body a,
.v5-video-body a,
.manual-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
}

.placeholder,
.skeleton-card {
  background: linear-gradient(100deg, rgba(255,255,255,.55), rgba(255,255,255,.92), rgba(255,255,255,.55)) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.2s infinite;
}

.socials {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.socials a,
.socials div {
  min-height: 155px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.055);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  transition: .22s ease;
}

.socials a:hover,
.socials div:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.10);
}

.socials img {
  width: 34px;
  height: 34px;
}

.socials strong {
  font-size: 18px;
}

.socials span {
  color: var(--muted);
  font-size: 14px;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  50% {
    opacity: .35;
    transform: scale(.75);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 980px) {
  .nav {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav nav {
    order: 5;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .profile-card {
    order: -1;
    min-height: auto;
  }

  .portrait-wrap {
   px;
  }

  .profile-card {
    order: -1;
    min-height: auto;
  }

  .portrait-wrap {
    width: 180px;
    height: 180px;
    margin: 45px auto 32px;
  }

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

@media (max-width: 620px) {
  .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: clamp(62px, 20vw, 100px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary,
  .secondary {
    width: 100%;
  }

  .rail {
    grid-auto-columns: 84%;
  }

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

  footer {
    flex-direction: column;
    gap: 10px;
  }
}
