/* ============================================================
   michellewp.com — Website Playground
   Dark lab aesthetic · Space Grotesk + Inter · accent #2F7BFF
   ============================================================ */

:root {
  --bg: #0B0F17;
  --bg-raise: #111827;
  --bg-raise-2: #161F31;
  --line: rgba(148, 163, 184, 0.16);
  --text: #E8EDF6;
  --muted: #97A3B6;
  --accent: #2F7BFF;
  --accent-bright: #5C9BFF;
  --accent-deep: #046BD2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 45px rgba(2, 6, 17, 0.55);
  --font-display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: #fff;
}
.brand em { font-style: normal; color: var(--accent-bright); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); text-decoration: none; background: rgba(148, 163, 184, 0.1); }
.main-nav a.active { color: var(--text); background: rgba(47, 123, 255, 0.16); }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  position: relative;
  z-index: 75;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raise);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 5% 20px;
    background: rgba(11, 15, 23, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; border-radius: var(--radius-sm); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 123, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(47, 123, 255, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.35);
}
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* ---------- Hero (shared pattern) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.72), rgba(11, 15, 23, 0.55) 55%, var(--bg) 96%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding: clamp(90px, 16vw, 170px) 0 clamp(70px, 11vw, 120px); text-align: center; }
.hero-content .kicker,
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid rgba(47, 123, 255, 0.4);
  background: rgba(47, 123, 255, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(2, 6, 17, 0.6);
}
.hero h1 .alt {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--accent-bright);
}
.hero p.lede {
  max-width: 620px;
  margin: 0 auto 32px;
  color: #C7D0DE;
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-shadow: 0 2px 18px rgba(2, 6, 17, 0.7);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------- Demo cards (index) ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.demo-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
  opacity: 0;
  transition: opacity 0.25s;
}
.demo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 123, 255, 0.5);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.demo-card:hover::before { opacity: 1; }
.demo-card .card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(47, 123, 255, 0.14);
  display: grid;
  place-items: center;
  color: var(--accent-bright);
}
.demo-card h3 { font-size: 1.25rem; }
.demo-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.demo-card .card-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
}

/* ---------- Page hero (demo pages) ---------- */
.demo-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.demo-hero .hero-content { padding: clamp(70px, 11vw, 130px) 0 clamp(46px, 7vw, 80px); }
.demo-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin-bottom: 16px; }
.demo-hero p.lede { max-width: 600px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 60px;
}
.site-footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.site-footer p + p { margin-top: 10px; }

/* ---------- Form ---------- */
.form-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 42px);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.22);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px; width: 1px;
  overflow: hidden;
  opacity: 0;
}
#formStatus { margin-top: 16px; font-size: 0.92rem; min-height: 1.4em; }
#formStatus.success { color: #6EE7A0; }
#formStatus.error { color: #FF8A8A; }

/* ============================================================
   STREAMA demo
   ============================================================ */
.streama-hero {
  position: relative;
  min-height: clamp(440px, 62vw, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.streama-hero .hero-media img { object-position: center 30%; }
.streama-hero .hero-overlay {
  background: linear-gradient(90deg, rgba(11, 15, 23, 0.92) 8%, rgba(11, 15, 23, 0.55) 55%, rgba(11, 15, 23, 0.25));
}
.streama-hero-content { position: relative; z-index: 2; padding: 80px 0 60px; max-width: 560px; }
.streama-hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.streama-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  color: #C7D0DE;
  margin-bottom: 16px;
}
.badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  border: 1px solid rgba(47, 123, 255, 0.5);
  border-radius: 6px;
  padding: 2px 8px;
}
.streama-hero-content p { color: #C7D0DE; margin-bottom: 26px; }

.row-title {
  font-size: 1.25rem;
  margin: 0 0 18px;
  padding-left: 4%;
}
.poster-row-wrap { position: relative; }
.poster-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4% 22px;
  scrollbar-width: none;
}
.poster-row::-webkit-scrollbar { display: none; }
.poster-card {
  flex: 0 0 clamp(150px, 18vw, 210px);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}
.poster-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.poster-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 40px rgba(2, 6, 17, 0.65);
  border-color: rgba(47, 123, 255, 0.6);
  z-index: 5;
}
.poster-card:hover img { transform: scale(1.06); }
.poster-card .poster-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 17, 0.9));
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
}
.row-arrow {
  position: absolute;
  top: 42%;
  z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.row-arrow:hover { background: var(--accent); border-color: var(--accent); }
.row-arrow.prev { left: 1%; }
.row-arrow.next { right: 1%; }

.streama-genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 4% 4px;
}
.genre-pill {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-body);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.genre-pill:hover, .genre-pill.active {
  color: #fff;
  border-color: var(--accent);
  background: rgba(47, 123, 255, 0.18);
}

/* ============================================================
   Nested tabs demo
   ============================================================ */
.tabs-stage {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 16px 22px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); background: rgba(148, 163, 184, 0.06); }
.tab-btn.active { color: var(--accent-bright); border-bottom-color: var(--accent); }
.tab-panel { display: none; padding: clamp(22px, 4vw, 40px); }
.tab-panel.active { display: block; animation: fadeUp 0.35s ease; }
.tab-panel h3 { margin-bottom: 10px; font-size: 1.3rem; }
.tab-panel p { color: var(--muted); margin-bottom: 14px; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.inner-tab-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 16px; }
.inner-tab-btn {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.inner-tab-btn:hover { color: var(--text); }
.inner-tab-btn.active {
  color: #fff;
  background: rgba(47, 123, 255, 0.2);
  border-color: var(--accent);
}
.info-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.93rem;
}
.info-card strong { color: var(--text); }

/* ============================================================
   Image scroll demo (vertical drifting columns)
   ============================================================ */
.scroll-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 10px 0 60px;
}
.scroll-col { display: flex; flex-direction: column; gap: 18px; }
.scroll-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.scroll-item img { width: 100%; height: 100%; object-fit: cover; }
.scroll-item.r-3-2 { aspect-ratio: 3 / 2; }
.scroll-item.r-4-3 { aspect-ratio: 4 / 3; }
.scroll-item.r-1-1 { aspect-ratio: 1 / 1; }
@media (max-width: 700px) { .scroll-columns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .scroll-columns { grid-template-columns: 1fr; } }
.scroll-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 26px;
  letter-spacing: 0.06em;
}

/* ============================================================
   Horizontal image scroll / marquee demo
   ============================================================ */
.marquee-band {
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-band.reverse .marquee-track { animation-direction: reverse; animation-duration: 48s; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track .m-card {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 360px);
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.marquee-track .m-card img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Parallax demo
   ============================================================ */
.parallax-scene {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.parallax-scene .layer {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
}
.parallax-scene .layer img { width: 100%; height: 100%; object-fit: cover; }
.parallax-scene .layer.l-back { inset: -16% 0; }
.parallax-scene .layer.l-mid { mix-blend-mode: normal; }
.parallax-scene .parallax-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(11, 15, 23, 0.45);
  pointer-events: none;
}
.parallax-scene .scene-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 6%;
}
.parallax-scene .scene-copy h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); text-shadow: 0 6px 34px rgba(2, 6, 17, 0.8); }
.parallax-scene .scene-copy p { color: #D6DDEA; text-shadow: 0 2px 16px rgba(2, 6, 17, 0.8); }
.parallax-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  text-align: center;
}
.parallax-card h3 { margin-bottom: 10px; }
.parallax-card p { color: var(--muted); font-size: 0.95rem; }

.backlink-note { color: var(--muted); font-size: 0.9rem; margin: 0 auto 14px; max-width: 640px; }
.backlink-note a { color: var(--accent-bright); text-decoration: underline; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.back-link {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-bright);
}

@media (max-width: 640px) {
  .hero-content, .demo-hero .hero-content { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .demo-hero .hero-content { margin: 0 auto; width: 92%; }
}
