/* I Let an AI Agent — iletanaiagent.com
   Brand type: Space Grotesk (titles) and Inter (body), matching the channel banner.
   Colours are electric cyan and violet on black, from the neural-orb mark.
   No teal. No coral. No trackers. */

:root {
  --bg: #05060a;
  --bg-elevated: #0c0e14;
  --bg-card: #0a0c12;
  --text: #f4f7fb;
  --text-soft: #d5deea;
  --muted: #b4becc;
  --cyan: #79c8ff;
  --cyan-bright: #b9e4ff;
  --violet: #9b7dff;
  --rule: #c4e4ff;
  --line: rgba(155, 205, 255, 0.18);
  --line-strong: rgba(155, 205, 255, 0.35);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --header-h: 4.25rem;
  --wrap: 72rem;
  --font-title: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2-variations"),
       url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-var.woff2") format("woff2-variations"),
       url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem; /* 18px — comfortable for readers 50+ */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cyan-bright);
}

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

::selection {
  background: rgba(121, 200, 255, 0.35);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: #05060a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: #05060a;
}

/* ---------- Header ---------- */

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

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

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

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 16px rgba(121, 200, 255, 0.25);
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
  flex-shrink: 0;
}

.site-nav a:not(.btn) {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.site-nav a:not(.btn):hover {
  color: var(--cyan-bright);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #c8e9ff 0%, #7ec8ff 48%, #a48bff 100%);
  color: #05060a;
  box-shadow: 0 0 0 1px rgba(200, 230, 255, 0.25), 0 8px 28px rgba(90, 150, 255, 0.22);
}

.btn-primary:hover {
  color: #05060a;
  box-shadow: 0 0 0 1px rgba(200, 230, 255, 0.45), 0 8px 36px rgba(120, 180, 255, 0.4);
  background: linear-gradient(135deg, #ddf2ff 0%, #8ed0ff 48%, #b19aff 100%);
}

.btn-header {
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--cyan-bright);
  border-color: var(--cyan);
  background: rgba(121, 200, 255, 0.06);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--text);
  overflow: hidden;
}

.hero-bg {
  display: block;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
}

.hero-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.15rem, 5.4vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 0 28px rgba(120, 200, 255, 0.28);
}

.hero-rule {
  display: block;
  width: 100%;
  height: 2px;
  margin: 1.15rem 0 1rem;
  border: 0;
  background: linear-gradient(90deg, #e8f4ff 0%, #7ec8ff 70%, rgba(126, 200, 255, 0.15) 100%);
  box-shadow: 0 0 12px rgba(126, 200, 255, 0.55);
}

.tagline {
  margin: 0 0 1.6rem;
  font-weight: 450;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  color: #e8eef6;
  max-width: 22em;
}

/* Mobile / tablet: image on top, type on a solid panel that fades out of the picture */
@media (max-width: 899px) {
  .hero {
    display: flex;
    flex-direction: column;
    background: var(--bg);
  }

  .hero-bg {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 62vh;
    position: relative;
  }

  .hero-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0), var(--bg));
    pointer-events: none;
  }

  .hero-copy {
    margin-top: -3.5rem;
    padding: 0 1.35rem 3rem;
  }
}

/* Desktop: official-banner layout — type sits in the dark gap */
@media (min-width: 900px) {
  .hero {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    min-height: 28rem;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
  }

  .hero-copy {
    position: absolute;
    left: 42%;
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    max-width: 54%;
    padding: 0;
  }
}

/* ---------- Sections ---------- */

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

.section {
  padding: 4.5rem 0;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section h2 {
  margin: 0 0 1.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* ---------- Latest video ---------- */

.latest {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(80, 70, 160, 0.14), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.video-card {
  display: grid;
  gap: 1.6rem;
  max-width: 52rem;
}

@media (min-width: 800px) {
  .video-card {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 1fr);
    gap: 2.25rem;
    align-items: center;
    max-width: none;
  }
}

/* Coming-soon poster. When you switch to the YouTube embed, .video-embed takes over. */
.video-media {
  position: relative;
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  text-decoration: none;
  color: inherit;
}

.video-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-media:hover img,
.video-media:focus-visible img {
  filter: brightness(1.06);
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.82);
  border: 1px solid var(--line-strong);
  color: var(--cyan-bright);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.play-mark span {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(5, 6, 10, 0.62);
  border: 1px solid rgba(200, 230, 255, 0.45);
  box-shadow: 0 0 28px rgba(121, 200, 255, 0.28);
  backdrop-filter: blur(6px);
}

.play-mark svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
  fill: #fff;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

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

.video-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}

.video-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.video-copy h3 a:hover {
  color: var(--cyan-bright);
}

.video-copy p {
  margin: 0 0 1.15rem;
  color: var(--text-soft);
  max-width: 38rem;
}

.video-copy .btn {
  margin-top: 0.25rem;
}

/* ---------- About ---------- */

.about {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: auto 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.about-orb {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 40px rgba(121, 200, 255, 0.18);
  justify-self: center;
}

.about-copy {
  max-width: 40rem;
}

.about-copy p {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
}

.about-copy p:last-of-type {
  margin-bottom: 1.6rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.5rem;
  background: #030409;
}

.site-footer .wrap {
  display: grid;
  gap: 0.65rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42rem;
}

.site-footer small {
  font-size: 0.95rem;
}

/* ---------- 404 ---------- */

.page-404 .hero-404 {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.page-404 .orb-404 {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin: 0 0 1.5rem;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 32px rgba(121, 200, 255, 0.2);
}

.page-404 h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
}

.page-404 .lead {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  max-width: 28rem;
  font-size: 1.2rem;
}

/* ---------- Narrow header tweaks ---------- */

@media (max-width: 799px) {
  .about-orb {
    justify-self: start;
    width: 6.25rem;
    height: 6.25rem;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .nav-text {
    display: none;
  }

  .section {
    padding: 3.25rem 0;
  }

  .wrap {
    width: min(100% - 2rem, var(--wrap));
  }
}
