:root {
  color-scheme: dark;
  --bg: #07080b;
  --panel: #101217;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4f5f7;
  --muted: #9da3ad;
  --green: #cbff29;
  --cyan: #25d6ff;
  --pink: #ff4f9a;
  --orange: #ffb000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 64px;
  padding: 10px 18px;
  background: rgba(7, 8, 11, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f3f5ef;
  color: #060709;
}

.main-nav,
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  color: #c6c9ce;
  font-size: 14px;
}

.main-nav a:hover {
  color: #fff;
}

.actions {
  justify-content: flex-end;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #7f858e;
  font-size: 12px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.asset-button,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.asset-button {
  background: #171a20;
  border: 1px solid var(--line);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--green);
  color: #111400;
  font-size: 13px;
  font-weight: 900;
}

.user-meta {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.user-meta strong {
  font-size: 12px;
}

.user-meta small {
  color: #8f96a0;
  font-size: 10px;
  font-weight: 700;
}

.primary-cta {
  background: #f6f7f0;
  color: #050609;
}

.secondary-cta {
  background: var(--green);
  color: #111400;
}

.secondary-cta[href="./canvas.html"],
.empty-board .primary-cta {
  min-height: 55px;
  padding: 0 24px;
  font-size: 1.08rem;
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
  transform-origin: center;
}

.secondary-cta[href="./canvas.html"]:hover,
.empty-board .primary-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(203, 255, 41, 0.2);
  filter: brightness(1.04);
}

.secondary-cta[href="./canvas.html"]:active,
.empty-board .primary-cta:active {
  transform: scale(0.99);
}

main {
  padding: 0 8px 28px;
}

.hero,
.feature-band,
.tool-section {
  max-width: 1880px;
  margin: 22px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.api-chapter {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.72fr);
  gap: 18px;
  max-width: 1880px;
  margin: 22px auto 0;
}

.api-progress,
.api-route {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #15171d;
}

.api-progress {
  min-height: 265px;
  padding: 26px;
  background:
    radial-gradient(circle at 16% 18%, rgba(37, 214, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(18, 116, 112, 0.78), rgba(8, 21, 26, 0.98));
}

.api-progress h2 {
  max-width: 380px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3.1vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}

.api-progress p:not(.eyebrow) {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.api-offer {
  width: max-content;
  margin: 18px 0 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 79, 154, 0.24);
  color: #ff8fbc;
  font-size: 12px;
  font-weight: 900;
}

.api-count {
  display: grid;
  gap: 4px;
}

.api-count strong {
  font-size: 16px;
}

.api-count span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.api-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.api-route {
  position: relative;
  min-height: 126px;
  padding: 22px;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.api-route:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 255, 41, 0.38);
  background: #191c23;
}

.api-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-bottom: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.api-route strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.api-route small {
  color: var(--muted);
  line-height: 1.4;
}

.api-route em {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce1e8;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.trending-api em,
.featured-api em {
  background: var(--green);
  color: #111400;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(620px, 1.8fr);
  min-height: 650px;
  background:
    radial-gradient(circle at 24% 88%, rgba(203, 255, 41, 0.18), transparent 24%),
    linear-gradient(90deg, #08090d 0%, #0d1015 44%, #06070a 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 88px);
}

.eyebrow {
  margin: 0 0 20px;
  color: #d6e1f1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 16px;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.feature-band p:not(.eyebrow),
.section-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero .primary-cta {
  width: max-content;
  margin-top: 18px;
}

.mosaic {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.hero-mosaic {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  grid-template-rows: repeat(4, 1fr);
}

.tile,
.tool-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: 8px;
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_brand_poster.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tile {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  transition: transform 180ms ease, filter 180ms ease;
}

.tile:hover,
.tool-card:hover,
.image-card:hover,
.video-card:hover,
.marketing-card:hover,
.api-route:hover,
.template-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.image-card,
.video-card,
.marketing-card,
.template-card {
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.image-card:hover,
.video-card:hover,
.marketing-card:hover,
.template-card:hover {
  box-shadow: inset 0 0 0 1px rgba(203, 255, 41, 0.24), 0 18px 42px rgba(0, 0, 0, 0.24);
}

.tile span,
.tool-card strong,
.tool-card small,
.tag,
.play-dot {
  position: relative;
  z-index: 2;
}

.tile span {
  font-weight: 900;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.tall {
  grid-row: span 4;
}

.portrait {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.small {
  grid-row: span 2;
}

.poster {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_brand_poster.jpg");
  background-position: center;
}

.crop-a {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_fashion_portrait.jpg");
  background-position: center;
}

.crop-b {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_product_scene.jpg");
  background-position: center;
}

.crop-c {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_editorial_art.jpg");
  background-position: center;
}

.crop-d {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_anime_keyart.jpg");
  background-position: center;
}

.crop-e {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_cinematic_scene.jpg");
  background-position: center;
}

.feature-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 280px;
  padding: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(0, 214, 255, 0.76), rgba(0, 33, 76, 0.92)),
    url("./assets/thumbs/enpik_brand_poster.jpg");
  background-position: center 43%;
  background-size: cover;
}

.feature-band h2,
.section-heading h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 62px);
  line-height: 0.98;
}

.feature-band p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.tool-section {
  padding: clamp(24px, 3vw, 48px);
  background: #0b0d12;
}

.marketing-chapter {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(520px, 1.38fr);
  gap: 10px;
  max-width: 1880px;
  margin: 22px auto 0;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(255, 79, 154, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 55%, rgba(255, 79, 154, 0.18), transparent 28%),
    linear-gradient(90deg, #130911 0%, #090a0d 48%, #08090c 100%);
}

.video-engine-chapter {
  position: relative;
  display: block;
  max-width: 1880px;
  margin: 22px auto 0;
  min-height: 620px;
  padding: clamp(26px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #07080b;
}

.seedance-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
}

.video-engine-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(390px, 31%);
  min-height: 510px;
  padding: clamp(8px, 2vw, 24px) 0;
}

.video-engine-copy h2 {
  margin-bottom: 18px;
  color: #7adfff;
  font-size: clamp(42px, 5vw, 82px);
  line-height: 0.92;
  text-transform: uppercase;
}

.video-engine-copy p:not(.eyebrow) {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.45;
}

.video-engine-copy .secondary-cta {
  width: min(360px, 100%);
  margin-top: 18px;
}

.learn-link {
  width: max-content;
  margin-top: 28px;
  color: #8c949f;
  font-weight: 800;
}


.marketing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: clamp(8px, 2vw, 28px);
}

.marketing-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3.2vw, 52px);
  line-height: 0.96;
  text-transform: uppercase;
}

.marketing-copy p:not(.eyebrow) {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.5;
}

.marketing-copy .primary-cta {
  width: max-content;
  margin-top: 16px;
}

.link-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(360px, 100%);
  margin-top: 42px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9dde4;
  font-size: 13px;
}

.link-pill strong {
  color: var(--green);
  font-size: 12px;
}

.marketing-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 128px;
  grid-auto-flow: dense;
  gap: 10px;
  min-height: 520px;
}

.marketing-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 16px;
  border-radius: 8px;
  background: #12141a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.marketing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.66));
}

.marketing-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketing-card span {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.market-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.market-tall {
  grid-column: span 1;
  grid-row: span 3;
}

.market-small {
  grid-column: span 1;
  grid-row: span 2;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.tool-grid {
  display: grid;
  gap: 10px;
}

.image-grid {
  display: block;
  columns: 5 190px;
  column-gap: 10px;
  max-height: min(980px, 118vh);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.image-grid::-webkit-scrollbar {
  width: 10px;
}

.image-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.image-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.video-grid {
  display: block;
  columns: 4 230px;
  column-gap: 10px;
  max-height: min(860px, 104vh);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.video-grid::-webkit-scrollbar {
  width: 10px;
}

.video-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.video-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 22px;
  transition: transform 180ms ease, filter 180ms ease;
  background-size: cover;
  background-position: center;
}

.image-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 260px;
  margin: 0 0 10px;
  padding: 16px;
  break-inside: avoid;
  border-radius: 5px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  vertical-align: top;
}

.image-card.shape-wide,
.img-a {
  min-height: 240px;
}

.image-card.shape-tall,
.img-b {
  min-height: 470px;
}

.image-card.shape-portrait,
.img-d {
  min-height: 380px;
}

.image-card.shape-landscape,
.img-c {
  min-height: 290px;
}

.image-card.shape-small {
  min-height: 220px;
}

.image-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card .card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82));
}

.tag {
  width: max-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.image-card .tag {
  margin-bottom: 9px;
}

.tool-card strong {
  max-width: 360px;
  font-size: clamp(25px, 2.4vw, 38px);
  line-height: 1;
}

.image-card strong {
  position: relative;
  z-index: 2;
  font-size: clamp(18px, 1.45vw, 28px);
  line-height: 1.02;
}

.tool-card small {
  max-width: 360px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.45;
}

.img-a {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_gallery_surreal_food_ad.jpg");
  background-position: center;
}

.img-b {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_gallery_architecture_fantasy.jpg");
  background-position: center;
}

.img-c {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_gallery_playful_character.jpg");
  background-position: center;
}

.img-d {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_gallery_cinematic_portrait.jpg");
  background-position: center;
}

.video-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 310px;
  margin: 0 0 10px;
  padding: 18px;
  break-inside: avoid;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  vertical-align: top;
}

.video-card.video-wide,
.motion-a {
  min-height: 260px;
}

.video-card.video-vertical,
.motion-b {
  min-height: 520px;
}

.video-card.video-square,
.motion-c {
  min-height: 360px;
}

.cloud-video-card {
  background: #101217;
}

.cloud-video-card video,
.cloud-video-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.video-card strong {
  position: relative;
  z-index: 2;
  max-width: 360px;
  font-size: clamp(19px, 1.65vw, 30px);
  line-height: 1.02;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 1;
  opacity: 0.72;
  background: conic-gradient(from 0deg, transparent, rgba(37, 214, 255, 0.4), transparent, rgba(255, 79, 154, 0.38), transparent);
  animation: spin 9s linear infinite;
}

.motion-a {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_cinematic_scene.jpg");
  background-position: center;
}

.motion-b {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_fashion_portrait.jpg");
  background-position: center;
}

.motion-c {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)), url("./assets/thumbs/enpik_anime_keyart.jpg");
  background-position: center;
}

.play-dot {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.play-dot::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 21px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #06070a;
}

footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  color: #8d939d;
  font-size: 13px;
}

footer strong {
  color: #fff;
}

.version {
  position: fixed;
  left: 10px;
  bottom: 8px;
  z-index: 30;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.route-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(203, 255, 41, 0.16), transparent 32%),
    var(--bg);
}

.route-shell {
  width: min(760px, 100%);
  padding: 0;
}

.route-panel {
  margin-top: 24px;
  padding: clamp(28px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #11141b, #08090c);
}

.route-panel h1 {
  font-size: clamp(34px, 6vw, 70px);
  line-height: 0.98;
}

.route-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.canvas-page {
  background:
    radial-gradient(circle at 50% 12%, rgba(37, 214, 255, 0.16), transparent 34%),
    #07101c;
}

/* ── Canvas Page ────────────────────────────────────── */
.canvas-main {
  padding: 0 0 56px;
}

/* Float Hero */
.canvas-float-wrap {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #07101c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.canvas-float-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid rgba(77,188,255,0.22);
  box-shadow: 0 6px 28px rgba(0,0,0,0.55);
  background: #0d1f35;
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Individual card positions */
.fc-1 { width: 110px; height: 148px; top: 14%; left: 4%; transform: rotate(-5deg); }
.fc-2 { width: 168px; height: 112px; top: 18%; left: 16%; transform: rotate(3deg); }
.fc-3 { width: 188px; height: 124px; top: 10%; right: 16%; transform: rotate(-3deg); }
.fc-4 { width: 118px; height: 88px; top: 44%; right: 6%; transform: rotate(4deg); }
.fc-5 { width: 158px; height: 108px; top: 54%; right: 20%; transform: rotate(-2deg); }

.float-note {
  position: absolute;
  width: 138px;
  padding: 10px 12px;
  background: rgba(8,20,38,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.52);
  line-height: 1.45;
  transform: rotate(2deg);
  bottom: 20%;
  left: 4%;
}

.float-label {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 3px 8px;
  background: rgba(203,255,41,0.92);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.02em;
}

.float-tag {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 6px;
  background: rgba(37,214,255,0.88);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.06em;
}

/* Central title box */
.canvas-center-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(580px, 44%);
  padding: 18px 32px;
  text-align: center;
  border: 1px solid rgba(77,188,255,0.7);
  background: rgba(5,14,27,0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 48px rgba(37,214,255,0.12);
  z-index: 2;
  pointer-events: none;
}

.canvas-center-title .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(37,214,255,0.7);
}

.canvas-center-title h1 {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.08;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* Board Section */
.canvas-board-section {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.empty-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(12,26,48,0.95);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.board-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: 22px;
  border: 1px solid rgba(255,255,255,0.1);
}

.board-created .board-icon {
  background: rgba(203,255,41,0.16);
  color: var(--green);
}

.empty-board h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.empty-board p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

.empty-board .primary-cta {
  margin-top: 0;
  border: 0;
  cursor: pointer;
}

/* Templates */
.canvas-templates {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.templates-explore-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.templates-icon {
  font-size: 15px;
  opacity: 0.6;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.template-card {
  display: grid;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

.template-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: opacity 0.18s;
}

.template-card:hover img {
  opacity: 0.82;
}

.template-card strong {
  font-size: 14px;
  font-weight: 600;
}

.template-card small {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: -4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

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

  .hero-mosaic {
    min-height: 560px;
  }

  .image-grid {
    columns: 3 180px;
    max-height: 820px;
  }

  .video-grid {
    columns: 3 190px;
    max-height: 760px;
  }

  .marketing-chapter {
    grid-template-columns: 1fr;
  }

  .marketing-copy {
    min-height: 0;
  }

  .marketing-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-engine-copy {
    width: min(390px, 42%);
  }

  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-chapter {
    grid-template-columns: 1fr;
  }

  /* Canvas responsive 900px */
  .canvas-float-wrap { height: 260px; }
  .canvas-center-title { width: min(460px, 56%); padding: 14px 22px; }
  .fc-1, .fn-1 { display: none; }
  .fc-2 { left: 4%; }
}

@media (max-width: 720px) {
  .topbar {
    gap: 12px;
    padding: 10px;
  }

  .actions {
    display: flex;
  }

  .search,
  .asset-button,
  .user-meta {
    display: none;
  }

  .user-chip {
    padding: 5px;
  }

  main {
    padding: 0 6px 22px;
  }

  .api-routes {
    grid-template-columns: 1fr;
  }

  .hero,
  .feature-band,
  .tool-section {
    margin-top: 12px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .hero-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
    min-height: 0;
  }

  .tile,
  .tool-card {
    background-size: cover;
  }

  .tall,
  .portrait,
  .wide,
  .small {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-chapter {
    padding: 22px;
  }

  .marketing-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    min-height: 0;
  }

  .video-engine-chapter {
    min-height: 620px;
  }

  .video-engine-copy h2 {
    font-size: clamp(36px, 10vw, 54px);
  }

  .video-engine-copy {
    width: min(360px, 78%);
  }

  .market-wide,
  .market-tall,
  .market-small {
    grid-column: span 1;
    grid-row: span 2;
  }

  .section-heading {
    display: block;
  }

  .image-grid,
  .video-grid {
    display: block;
  }

  .image-grid {
    columns: 2 150px;
    max-height: 680px;
  }

  .image-card,
  .image-card.shape-wide,
  .image-card.shape-tall,
  .image-card.shape-portrait,
  .image-card.shape-landscape,
  .image-card.shape-small,
  .img-a,
  .img-b,
  .img-c,
  .img-d {
    min-height: 260px;
  }

  .video-card,
  .video-card.video-wide,
  .video-card.video-vertical,
  .video-card.video-square,
  .motion-a,
  .motion-b,
  .motion-c {
    min-height: 300px;
  }

  .tool-card {
    min-height: 340px;
  }

  footer {
    flex-wrap: wrap;
    padding: 18px;
  }

  /* Canvas responsive 600px */
  .canvas-float-wrap { height: 200px; }
  .fc-2, .fc-5 { display: none; }
  .canvas-center-title { width: 72%; }
  .canvas-center-title h1 { font-size: 16px; }
  .template-grid { grid-template-columns: 1fr; }
}
