/* PopupLab — shared styles
   Colors, spacing, and type live in :root so they are easy to retune. */

:root {
  --bg: #06080f;
  --bg-elevated: #0b101c;
  --bg-card: #0e1524;
  --cyan: #00e5ff;
  --blue: #3b82f6;
  --red: #ff2d55;
  --text: #f3f6fb;
  --muted: #8b96ab;
  --line: rgba(140, 190, 255, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --nav-h: 76px;
  --max: 1120px;
  --font: "Segoe UI", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Soft grid + cyan/red glow behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(0, 229, 255, 0.12), transparent 55%),
    radial-gradient(700px 420px at 0% 20%, rgba(59, 130, 246, 0.1), transparent 50%),
    radial-gradient(600px 400px at 100% 80%, rgba(255, 45, 85, 0.08), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--cyan);
  color: #041018;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  overflow: visible;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(16px);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--red));
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  min-height: 46px;
  overflow: visible;
  flex-shrink: 0;
}

.logo img {
  display: block;
  object-fit: contain;
  object-position: center;
  max-width: none !important;
  max-height: none !important;
  width: auto;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.logo-icon {
  height: 42px;
  width: auto;
  min-height: 42px;
}

.logo-text {
  height: 35px;
  width: auto;
  min-height: 35px;
  transform: translateY(5px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: var(--bg-elevated);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(2px) scale(0.98);
}

.btn-primary {
  background: var(--cyan);
  color: #041018;
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
  box-shadow:
    0 0 22px rgba(0, 229, 255, 0.55),
    0 0 40px rgba(59, 130, 246, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(0, 229, 255, 0.4);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.28);
}

.btn-nav {
  min-height: 40px;
  padding: 0 14px;
  margin-left: 6px;
  background: var(--cyan);
  color: #041018;
}

.btn-nav:hover {
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
}

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

.hero {
  position: relative;
  overflow: visible;
  padding: 72px 0 48px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.glow-text {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

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

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Blended hero media — fades into the page instead of sitting in a hard card */

.hero-media {
  position: relative;
  width: 148%;
  max-width: none;
  transform: translateY(22px);
}

.hero-slogan-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 36px 0 0;
}

.hero-slogan {
  display: block;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: rgba(245, 250, 255, 0.92);
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 1.7rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 14px rgba(0, 210, 255, 0.14);
  transform: none;
}

.hero-media-glow {
  position: absolute;
  inset: 4% -8% 6% -8%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 28% 42%, rgba(0, 229, 255, 0.22), transparent 58%),
    radial-gradient(ellipse at 82% 28%, rgba(59, 130, 246, 0.16), transparent 52%),
    radial-gradient(ellipse at 68% 82%, rgba(255, 45, 85, 0.14), transparent 55%);
  filter: blur(28px);
}

.hero-media-stage {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}

.media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.is-ready .media-video {
  opacity: 1;
  visibility: visible;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0, 229, 255, 0.06), transparent 62%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 45, 85, 0.04), transparent 55%);
}

.is-ready .media-placeholder {
  opacity: 0;
  pointer-events: none;
}

.media-placeholder strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.media-placeholder span {
  font-size: 0.82rem;
}

/* Feature + tutorial preview wells */

.preview-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 229, 255, 0.07), transparent 60%),
    rgba(8, 12, 22, 0.9);
}

.preview-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 40px rgba(0, 229, 255, 0.05),
    inset 0 0 60px rgba(255, 45, 85, 0.03);
}


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

.section {
  padding: 56px 0;
}

.section-lg {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 56px 0 8px;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(0, 229, 255, 0.1);
}

.card.feature-card,
.card.tutorial-card {
  padding: 12px 12px 20px;
}

.card-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-card .card-index,
.tutorial-card .card-index,
.feature-card h3,
.tutorial-card h3,
.feature-card p,
.tutorial-card p {
  padding-inline: 8px;
}

/* ---------- Homepage panel showcase ---------- */

.panel-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.panel-card {
  position: relative;
}

.panel-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: transparent;
  transition: transform 0.3s ease;
}

.panel-card-adjust .panel-visual img {
  transform: scale(1.04);
  transform-origin: center;
}

.panel-visual::before {
  content: "";
  position: absolute;
  inset: 10% 6%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 38% 40%, rgba(0, 229, 255, 0.22), transparent 58%),
    radial-gradient(ellipse at 72% 28%, rgba(59, 130, 246, 0.14), transparent 50%),
    radial-gradient(ellipse at 68% 78%, rgba(255, 45, 85, 0.12), transparent 52%);
  filter: blur(30px);
}

.panel-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4% 2% 8% 16%;
  opacity: 0;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  transition: opacity 0.35s ease;
}

.panel-visual .media-placeholder {
  background:
    radial-gradient(ellipse at 55% 42%, rgba(0, 229, 255, 0.07), transparent 62%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 45, 85, 0.04), transparent 55%);
}

.panel-card.is-ready .panel-visual img {
  opacity: 1;
}

.panel-card.is-ready .panel-visual .media-placeholder {
  opacity: 0;
  pointer-events: none;
}

.panel-glass {
  position: absolute;
  left: 16px;
  top: auto;
  bottom: 24px;
  width: min(280px, 72%);
  z-index: 2;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.5), rgba(6, 8, 15, 0.36));
  border: 1px solid rgba(0, 229, 255, 0.2);
  backdrop-filter: blur(20px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(0, 229, 255, 0.08);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .panel-card:hover .panel-visual {
    transform: scale(1.04);
  }

  .panel-card:hover .panel-glass {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none) and (min-width: 901px) {
  .panel-glass {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.panel-glass .eyebrow {
  margin-bottom: 8px;
}

.panel-glass h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.panel-glass p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  overflow-wrap: break-word;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ---------- Homepage feature tabs ---------- */

.feature-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.feature-tab {
  appearance: none;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.feature-tab:last-child {
  border-right: none;
}

.feature-tab:hover {
  color: var(--text);
  background: rgba(0, 229, 255, 0.05);
}

.feature-tab:active {
  transform: translateY(1px);
}

.feature-tab.is-active {
  color: var(--text);
  background: rgba(0, 229, 255, 0.1);
  box-shadow:
    inset 0 -3px 0 var(--cyan),
    0 0 22px rgba(0, 229, 255, 0.22);
}

.feature-pane {
  display: none;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 48px;
  align-items: center;
  min-height: 320px;
}

.feature-pane.is-active {
  display: grid;
  animation: featureIn 0.35s ease;
}

.feature-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.feature-preview {
  position: relative;
}

.feature-preview .hero-media-glow {
  display: none;
}

.feature-preview-stage {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(80, 210, 255, 0.75);
  border-radius: 22px;
  background: transparent;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(0, 210, 255, 0.12);
  box-sizing: border-box;
  -webkit-mask-image: none;
  mask-image: none;
}

.feature-preview-stage .media-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transform-origin: center;
}

.feature-preview-stage .media-placeholder {
  inset: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

@keyframes featureIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Homepage extra tools ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.tool-card {
  padding: 24px 24px 18px;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.tool-card p {
  margin: 0 0 18px;
  font-size: 0.98rem;
}

.tool-preview {
  position: relative;
}

.tool-preview .hero-media-glow {
  display: none;
}

.tool-preview-stage {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(80, 210, 255, 0.75);
  border-radius: 16px;
  background: transparent;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(0, 210, 255, 0.12);
  box-sizing: border-box;
  -webkit-mask-image: none;
  mask-image: none;
}

.tool-preview-stage .media-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transform-origin: center;
}

.tool-preview-stage .media-placeholder {
  inset: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

/* ---------- Homepage visual library ---------- */

.library-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

.library-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.library-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.library-item {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.library-preview {
  position: relative;
  transition: transform 0.2s ease;
}

.library-preview .hero-media-glow {
  display: none;
}

.library-item:hover .library-preview,
.anim-slide .library-preview:hover {
  transform: translateY(-4px);
}

.library-item:hover .library-preview-stage {
  border-color: rgba(80, 210, 255, 0.62);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.library-preview-stage {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(80, 210, 255, 0.45);
  background: #0a101c;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  -webkit-mask-image: none;
  mask-image: none;
}

.library-preview-stage-lg {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(80, 210, 255, 0.75);
  border-radius: 22px;
  background: transparent;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(0, 210, 255, 0.12);
  box-sizing: border-box;
}

.anim-slide .library-preview:hover .library-preview-stage-lg {
  border-color: rgba(80, 210, 255, 0.88);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(0, 210, 255, 0.16);
}

.library-preview-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#flash-styles .library-preview-stage {
  padding: 0;
  overflow: hidden;
}

#flash-styles .library-preview-stage img {
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transform-origin: center;
}

#flash-styles .library-preview-stage .media-placeholder {
  inset: 0;
  padding: 0;
  margin: 0;
}

.anim-slide .library-preview-stage-lg img,
.anim-slide .library-preview-stage-lg video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transform-origin: center;
}

.anim-slide .library-preview-stage-lg .media-placeholder {
  inset: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.library-item.is-ready .library-preview-stage img,
.anim-slide.is-ready .library-preview-stage img {
  opacity: 1;
}

.library-label {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.anim-carousel {
  position: relative;
}

.anim-slide {
  display: none;
}

.anim-slide.is-active {
  display: block;
}

.anim-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.anim-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(8, 12, 22, 0.5);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.anim-arrow:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
}

.anim-arrow:active {
  transform: translateY(2px) scale(0.98);
}

/* ---------- What is PopupLab ---------- */

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

.about-popuplab h2 {
  margin: 0 auto 28px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
}

.about-popuplab-copy {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
}

.about-popuplab-copy p {
  margin: 0 0 1.2em;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.about-popuplab-copy p:last-child {
  margin-bottom: 0;
}

.about-popuplab-copy a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 229, 255, 0.45);
}

.about-popuplab-copy a:hover {
  text-decoration-color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  justify-content: center;
}

.price-card {
  width: min(440px, 100%);
  text-align: center;
  padding: 36px 28px;
  border-color: rgba(0, 229, 255, 0.28);
  background:
    radial-gradient(400px 180px at 50% 0%, rgba(0, 229, 255, 0.12), transparent 60%),
    var(--bg-card);
}

.price-card .eyebrow {
  margin-bottom: 8px;
}

.price {
  margin: 0 0 8px;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #f7fbff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.price-card > p.price {
  color: #f7fbff;
}

.price span {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}

.price-card > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
}

.price-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.price-list li:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 4px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.3);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-weight: 400;
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--muted);
}

.faq-item a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-disclaimer {
  margin: 16px 0 0;
  max-width: 46rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Community page ---------- */

.community-stack {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: none;
}

.community-card {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  padding: 44px 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.community-card::before {
  content: "";
  position: absolute;
  inset: 4% -18% 4% -10%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 12% 42%, rgba(0, 229, 255, 0.1), transparent 68%);
}

.community-card-left {
  justify-self: start;
}

.community-card-right {
  justify-self: end;
}

.community-card-right::before {
  inset: 4% -10% 4% -18%;
  background: radial-gradient(ellipse at 88% 42%, rgba(59, 130, 246, 0.1), transparent 68%);
}

.community-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
}

.community-card h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.community-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.community-card .btn {
  margin-top: 20px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.social-row .btn {
  margin-top: 0;
  min-height: 40px;
  padding: 0 16px;
}

/* ---------- Tutorials selector ---------- */

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.55fr);
  gap: 28px;
  align-items: start;
}

.tutorial-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.tutorial-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tutorial-item:hover {
  border-color: rgba(0, 229, 255, 0.35);
}

.tutorial-item.is-active {
  border-color: rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(0, 229, 255, 0.12),
    0 0 22px rgba(0, 229, 255, 0.16);
}

.tutorial-item-soon {
  opacity: 0.52;
  border-color: rgba(140, 190, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.tutorial-item-soon:hover {
  border-color: rgba(140, 190, 255, 0.16);
}

.tutorial-item-soon.is-active {
  opacity: 0.7;
  border-color: rgba(140, 190, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.tutorial-item .card-index {
  margin: 2px 0 0;
}

.tutorial-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tutorial-item-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tutorial-item-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.tutorial-stage h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
}

.tutorial-stage > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38rem;
}

.tutorial-player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  overflow: hidden;
  border: 3px solid rgba(80, 210, 255, 0.75);
  border-radius: 22px;
  background: transparent;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(0, 210, 255, 0.12);
  box-sizing: border-box;
}

.tutorial-player .media-placeholder {
  border-radius: 0;
}

.tutorial-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .hero-slogan-wrap {
    margin-top: 28px;
  }

  .hero-slogan {
    font-size: 1.32rem;
    letter-spacing: 0.04em;
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-list {
    max-height: 280px;
  }

  .community-card-left,
  .community-card-right {
    justify-self: center;
    width: min(36rem, 100%);
    text-align: center;
  }

  .community-card h2::after {
    margin-inline: auto;
  }

  .community-card .btn {
    display: inline-flex;
  }

  .social-row {
    justify-content: center;
  }

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

  .panel-showcase,
  .feature-pane.is-active,
  .library-split {
    grid-template-columns: 1fr;
  }

  .feature-pane.is-active {
    gap: 24px;
  }

  .panel-glass {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 8px;
  }

  .panel-card:hover .panel-visual {
    transform: none;
  }
}

@media (max-width: 760px) {
  .logo {
    gap: 4px;
    min-height: 30px;
  }

  .logo-icon {
    height: 28px;
    min-height: 28px;
    width: auto;
  }

  .logo-text {
    height: 23px;
    min-height: 23px;
    width: auto;
    transform: translateY(4px);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    background: rgba(8, 11, 20, 0.96);
    border-bottom: 1px solid var(--line);
  }

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

  .nav-links a,
  .btn-nav {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero,
  .page-hero,
  .section {
    padding-top: 40px;
    padding-bottom: 36px;
  }

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

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

  .feature-tabs {
    grid-template-columns: 1fr;
  }

  .feature-tab {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .feature-tab:last-child {
    border-bottom: none;
  }

  .section-lg {
    padding: 48px 0;
  }

  .price {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .btn:hover,
  .faq-item:hover,
  .feature-tab:hover,
  .library-item:hover .library-preview,
  .panel-card:hover .panel-visual {
    transform: none;
  }
}
