/* ============================================================
   AI versus Everyone
   Same look as the channel icon and banner: sunny yellow, navy
   outlines, hot pink and cyan, 80s confetti shapes, Poppins Bold.
   ============================================================ */

:root {
  --yellow: #ffde28;        /* 255,222,40  top of the icon gradient */
  --amber: #ffb014;         /* 255,176,20  bottom of the icon gradient */
  --navy: #1a1638;          /* 26,22,56    outlines and text */
  --navy-soft: #262052;     /* cards on the navy section */
  --pink: #ff2e88;          /* 255,46,136 */
  --cyan: #00dcf5;          /* 0,220,245 */
  --steel: #d6e2f0;         /* the robot's head */
  --cream: #fff7d6;
  --white: #ffffff;
  --line: 3px solid var(--navy);
  --radius: 18px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--yellow);
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  border-bottom: var(--line);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border: 2px solid var(--navy);
  border-radius: 10px;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 3px solid transparent;
}

.nav-links a:not(.btn):hover { border-bottom-color: var(--pink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--navy);
  box-shadow: 5px 5px 0 var(--navy);
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--navy); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--navy); }

.btn-primary { background: var(--pink); }
.btn-light { background: var(--white); }

.btn-subscribe {
  background: var(--pink);
  padding: 8px 18px;
  font-size: .92rem;
  box-shadow: 3px 3px 0 var(--navy);
}

.btn-subscribe:hover { box-shadow: 5px 5px 0 var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 20px 96px;
  background: linear-gradient(to bottom, var(--yellow), var(--amber));
}

/* the banner's confetti, faded out behind the name so the words stay readable */
.hero-shapes {
  position: absolute;
  inset: 0;
  background: url("../img/shapes.svg") center top / 1400px 900px repeat;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, transparent 0 62%, #000 100%);
  mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, transparent 0 62%, #000 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 330px) 1fr;
  gap: 52px;
  align-items: center;
}

.hero-robot {
  width: 100%;
  height: auto;
  filter: drop-shadow(8px 8px 0 rgba(26, 22, 56, .18));
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.5rem, 7.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.5px;
  text-transform: uppercase;
  color: var(--navy);
  text-shadow: .055em .055em 0 var(--pink);   /* the banner's pink drop shadow */
}

.hero-title span { display: block; white-space: nowrap; }

.hero-aside {
  display: inline-block;
  margin: 18px 0 0;
  padding: 4px 16px;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--yellow);
  background: var(--navy);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--cyan);
  transform: rotate(-2.5deg);
}

.hero-aside:empty { display: none; }

.hero-tagline {
  margin: 26px 0 30px;
  max-width: 560px;
  font-size: clamp(1.08rem, 2.1vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero-tagline strong { font-weight: 700; box-shadow: inset 0 -.45em 0 rgba(255, 46, 136, .45); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-note {
  margin: 28px 0 0;
  font-weight: 600;
  font-size: 1rem;
}

.live-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--navy);
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink { 50% { background: var(--white); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-robot, .live-dot { animation: none !important; }
  .btn { transition: none; }
}

/* ---------- sections ---------- */
section { padding: 84px 0; }

.section-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.3px;
}

.title-tag {
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 3px 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cyan);
  border: 2px solid var(--navy);
  border-radius: 999px;
}

.section-sub { margin: 0 0 36px; max-width: 660px; font-size: 1.12rem; }

/* ---------- the series (navy) ---------- */
.series {
  position: relative;
  background: var(--navy);
  color: var(--white);
  border-top: var(--line);
  border-bottom: var(--line);
}

/* zig-zag edges, like the squiggles in the banner */
.series::before, .series::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background:
    linear-gradient(135deg, var(--pink) 25%, transparent 25%) 0 0 / 28px 14px repeat-x,
    linear-gradient(225deg, var(--pink) 25%, transparent 25%) 0 0 / 28px 14px repeat-x;
}

.series::before { top: 0; }
.series::after { bottom: 0; transform: scaleY(-1); }

.series .title-tag { background: var(--yellow); border-color: var(--yellow); }
.series .section-sub { color: #dcd8f5; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step {
  --accent: var(--pink);
  position: relative;
  padding: 26px 24px 24px;
  background: var(--navy-soft);
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent);
}

.step-cyan { --accent: var(--cyan); }
.step-yellow { --accent: var(--yellow); }

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  background: var(--accent);
  border-radius: 50%;
}

.step h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.step p { margin: 0; color: #dcd8f5; font-size: 1rem; }

.chips {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips li {
  padding: 7px 18px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
}

/* ---------- latest shorts ---------- */
.shorts { background: var(--yellow); }

.shorts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 290px));
  justify-content: center;
  gap: 38px;
}

.phone { position: relative; }

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--navy);
  border: 4px solid var(--navy);
  border-radius: 26px;
  box-shadow: 8px 8px 0 var(--pink);
}

.phone:nth-child(3n + 2) .phone-screen { box-shadow: 8px 8px 0 var(--cyan); }
.phone:nth-child(3n + 3) .phone-screen { box-shadow: 8px 8px 0 var(--navy); }

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

.phone-badge {
  position: absolute;
  top: -16px;
  left: -12px;
  z-index: 2;
  padding: 3px 14px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cyan);
  border: var(--line);
  border-radius: 999px;
  transform: rotate(-6deg);
}

.shorts-links {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- about ---------- */
.about { background: linear-gradient(to bottom, var(--yellow), var(--amber)); padding-top: 20px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 52px;
  align-items: center;
}

.about-card {
  padding: 38px 40px 40px;
  background: var(--cream);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--navy);
}

.about-card .title-tag { background: var(--pink); }
.about-card p { margin: 0 0 16px; }

.about-disclosure {
  padding: 14px 18px;
  background: var(--white);
  border: 2px dashed var(--navy);
  border-radius: 12px;
  font-size: .98rem;
}

.about-card .btn { margin-top: 10px; }

.about-side { text-align: center; }

.about-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border: var(--line);
  border-radius: 28%;
  box-shadow: 8px 8px 0 var(--pink);
  transform: rotate(4deg);
}

.about-caption {
  margin: 30px 0 0;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 34px 20px;
  text-align: center;
  color: var(--white);
  background: var(--navy);
  border-top: var(--line);
}

.site-footer p { margin: 4px 0; font-weight: 600; }
.footer-small { color: #b9b3e0; font-size: .9rem; font-weight: 400 !important; }

/* ---------- tablet and phone ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 20px 20px 24px;
    background: var(--yellow);
    border-bottom: var(--line);
  }

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

  .hero { padding: 48px 20px 68px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; justify-items: center; }
  .hero-robot { width: min(52vw, 230px); }
  .hero-title { font-size: clamp(2.3rem, 12.2vw, 5rem); }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-shapes {
    background-size: 900px 579px;
    -webkit-mask-image: radial-gradient(ellipse 85% 46% at 50% 52%, transparent 0 70%, #000 100%);
    mask-image: radial-gradient(ellipse 85% 46% at 50% 52%, transparent 0 70%, #000 100%);
  }

  section { padding: 64px 0; }

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

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card { padding: 28px 22px 30px; }
  .about-icon { max-width: 200px; }
}

/* on a phone the Shorts become a sideways swipe row, one and a bit showing */
@media (max-width: 700px) {
  .shorts-row {
    display: flex;
    gap: 22px;
    justify-content: flex-start;
    margin: 0 -20px;
    padding: 22px 28px 18px 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .phone { flex: 0 0 68%; max-width: 280px; scroll-snap-align: center; }
}
