:root {
  color-scheme: dark;
  --bg: #070a08;
  --panel: #121811;
  --panel-deep: #0e130d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f8f2;
  --muted: #939b90;
  --acid: #d9ff00;
  --youtube: #ff3333;
  --orange: #ff632f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -6%, rgba(78, 101, 47, 0.46), transparent 31rem),
    radial-gradient(circle at 92% 32%, rgba(217, 255, 0, 0.045), transparent 19rem),
    var(--bg);
}

.texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}

.page {
  position: relative;
  width: min(calc(100% - 28px), 590px);
  margin: 0 auto;
  padding: 34px 0 30px;
}

.profile {
  padding: 0 4px 27px;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.avatar {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  overflow: hidden;
  border: 2px solid var(--acid);
  border-radius: 22px;
  background: #252a22;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 5%;
  transform: rotate(2deg) scale(1.06);
}

.identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.identity-copy strong {
  overflow: hidden;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handle {
  color: #aeb4a9;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  color: var(--acid);
  line-height: 0.84;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.brand-mark span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.brand-mark strong {
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-message {
  margin-top: 26px;
  padding: 18px 18px 17px;
  border-left: 3px solid var(--acid);
  border-radius: 0 15px 15px 0;
  background: linear-gradient(90deg, rgba(217, 255, 0, 0.08), transparent);
}

.hero-message > span {
  color: var(--acid);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 540px;
  margin: 7px 0 0;
  font-size: clamp(31px, 8vw, 45px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

h1 em {
  color: var(--acid);
  font-style: normal;
}

.intro {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.primary-action {
  margin: 8px 0 35px;
}

.action-card {
  --card: #182116;
  --accent: var(--acid);
  position: relative;
  display: flex;
  min-height: 104px;
  align-items: center;
  overflow: hidden;
  padding: 15px 120px 15px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(100deg, var(--card), var(--panel-deep));
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.action-card::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  content: "";
}

.action-card::after {
  position: absolute;
  z-index: -2;
  width: 180px;
  height: 180px;
  right: -92px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  content: "";
}

.action-card:hover,
.action-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translateX(4px);
}

.action-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.action-copy small {
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.action-copy strong {
  margin-top: 6px;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.action-copy em {
  margin-top: 4px;
  color: #939c90;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.youtube-card {
  --card: #231313;
  --accent: var(--youtube);
}

.youtube-icon {
  position: absolute;
  z-index: 1;
  right: 35px;
  display: grid;
  width: 72px;
  height: 51px;
  place-items: center;
  border-radius: 16px;
  background: var(--youtube);
  box-shadow: 0 8px 24px rgba(255, 51, 51, 0.18);
  transform: rotate(3deg);
}

.youtube-icon span {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.action-arrow {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 10px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #11140f;
  font-size: 15px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 3px;
}

.section-title span {
  color: #d5d9cf;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.section-title b {
  color: #687064;
  font-size: 9px;
}

.material-card {
  --card: #162119;
  --accent: var(--acid);
  min-height: 116px;
  padding-right: 132px;
}

.material-card .action-copy strong {
  max-width: 330px;
  font-size: 18px;
}

.available-badge {
  width: max-content;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 14px rgba(255, 99, 47, 0.25);
}

.course-code {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 73px;
  color: rgba(255, 255, 255, 0.04);
  font-size: 52px;
  font-weight: 950;
  letter-spacing: -0.08em;
  transform: translateY(-52%);
}

.shield {
  position: absolute;
  z-index: 1;
  right: 31px;
  display: flex;
  width: 70px;
  height: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(217, 255, 0, 0.8);
  border-radius: 19px 19px 28px 28px;
  background: linear-gradient(145deg, #24341d, #10160f);
  color: var(--acid);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  transform: rotate(4deg);
}

.shield::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(217, 255, 0, 0.25);
  border-radius: 14px 14px 22px 22px;
  content: "";
}

.shield span,
.shield small {
  position: relative;
  z-index: 1;
}

.shield span {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.shield small {
  margin-top: 3px;
  color: #e8ebdf;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 0 3px;
  color: #687064;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #343b31;
  border-radius: 11px;
  color: #858f7e;
  font-size: 11px;
  font-weight: 950;
}

@media (max-width: 520px) {
  .page {
    width: 100%;
    padding: 25px 13px 28px;
  }

  .profile {
    padding-inline: 3px;
  }

  .brand-mark span {
    font-size: 7px;
  }

  .brand-mark strong {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(30px, 10.1vw, 44px);
  }

  .material-card .action-copy strong {
    max-width: 230px;
  }
}

@media (max-width: 390px) {
  .avatar {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 19px;
  }

  .identity {
    gap: 10px;
  }

  .identity-copy strong {
    max-width: 145px;
    font-size: 15px;
  }

  .handle {
    font-size: 9px;
  }

  .brand-mark {
    display: none;
  }

  .action-card {
    min-height: 108px;
    padding-left: 15px;
    padding-right: 104px;
  }

  .youtube-icon {
    right: 31px;
    width: 61px;
    height: 44px;
  }

  .material-card {
    min-height: 122px;
    padding-right: 103px;
  }

  .material-card .action-copy strong {
    max-width: 205px;
    font-size: 16px;
  }

  .shield {
    right: 26px;
    width: 60px;
    height: 69px;
  }

  .course-code {
    right: 56px;
    font-size: 42px;
  }

  footer {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
