:root {
  --bg: #0b0b10;
  --bg-elevated: #16161f;
  --bg-card: #1a1a24;
  --ink: #f5f5f7;
  --ink-soft: #b4b4c0;
  --yt-red: #ff0033;
  --yt-red-hot: #ff4d6d;
  --magenta: #ff2d95;
  --violet: #8b5cff;
  --cyan: #2de2e6;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --glow-red: 0 0 40px rgba(255, 0, 51, 0.35);
  --radius: 20px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(255, 0, 51, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(139, 92, 255, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 80%, rgba(45, 226, 230, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #120812 0%, var(--bg) 40%, #0a0a12 100%);
  line-height: 1.55;
}

a {
  color: var(--yt-red-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

.wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}

header.site {
  text-align: center;
  margin-bottom: 1.85rem;
  padding-top: 0.75rem;
}

.logo {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(105deg, #fff 10%, var(--yt-red-hot) 45%, var(--magenta) 75%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 0, 51, 0.35));
}

.tagline {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.shorts-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--yt-red), var(--magenta));
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.4);
}

.shorts-chip::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.55rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.card.hero {
  border-color: rgba(255, 0, 51, 0.28);
  box-shadow: var(--shadow), var(--glow-red);
}

.lesson-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--yt-red), var(--violet));
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.lesson-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.3rem, 3.8vw, 1.65rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #fff;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 0.35rem;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px rgba(255, 0, 51, 0.55),
    0 0 36px rgba(255, 45, 149, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.55);
}

.video-frame::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(255, 0, 51, 0.12);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fallback {
  padding: 1rem 1.1rem;
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: 14px;
  color: #ffd0d8;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  color: #fff;
}

.takeaways {
  margin: 0;
  padding-left: 1.15rem;
}

.takeaways li {
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.takeaways li::marker {
  color: var(--magenta);
}

.dig-deeper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--cyan);
  text-decoration: none;
}

.dig-deeper:hover {
  color: #fff;
}

.dig-deeper::before {
  content: "▶";
  font-size: 0.75rem;
  color: var(--yt-red);
}

form.subscribe {
  display: grid;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  background: var(--bg-elevated);
  color: var(--ink);
}

input[type="email"]::placeholder {
  color: #7a7a8c;
}

input[type="email"]:focus {
  outline: 2px solid rgba(255, 0, 51, 0.55);
  border-color: var(--yt-red);
}

button {
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yt-red), var(--magenta) 70%, var(--violet));
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 0, 51, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.msg {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}

.msg.show {
  display: block;
}

.msg.ok {
  background: rgba(45, 226, 230, 0.12);
  color: #b8f7f9;
  border: 1px solid rgba(45, 226, 230, 0.35);
}

.msg.err {
  background: rgba(255, 0, 51, 0.12);
  color: #ffb3c0;
  border: 1px solid rgba(255, 77, 109, 0.4);
}

footer.site {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

footer.site p {
  margin: 0.35rem 0;
}

footer.site a {
  font-weight: 650;
}
