/* HomeV3 design tokens + shared UI (ported from editor homev3) */

/* Hide page scrollbars on homepage; keep wheel/trackpad scroll. Clip X bleed. */
html:has(.hv3-page) {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(.hv3-page)::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html:has(.hv3-page) body {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(.hv3-page) body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.hv3-page {
  --hv3-bg: #050010;
  --hv3-bg-elevated: #181d27;
  --hv3-bg-card: #252b37;
  --hv3-purple: #6a3bff;
  --hv3-text: #ffffff;
  --hv3-text-muted: #a4a7ae;
  --hv3-text-dim: #717680;
  --hv3-border: #252b37;
  --hv3-content: 1600px;
  --hv3-header-offset: 64px;

  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--hv3-bg);
  color: var(--hv3-text);
  overflow-x: hidden;
  /* Pull into layout main pt-16 so dark bg sits under fixed header (no white bar) */
  margin-top: calc(-1 * var(--hv3-header-offset));
  padding-top: var(--hv3-header-offset);
}

/* Fixed SSO header shell (homepage) */
.hv3-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
}

.hv3-page-top-bg {
  position: absolute;
  inset: 0 0 auto;
  height: min(1292px, 67vw);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.6) 75%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.6) 75%,
    transparent 100%
  );
}

.hv3-body {
  position: relative;
  z-index: 1;
}

.hv3-content {
  max-width: var(--hv3-content);
  margin: 0 auto;
}

.hv3-overlay-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 43px;
  border: none;
  background: rgba(106, 59, 255, 0.4);
  color: #f7f5ff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  text-decoration: none;
}

.hv3-create-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid #3459ff;
  background: rgba(23, 44, 234, 0.5);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  box-shadow:
    0 1px 2px rgba(10, 13, 18, 0.05),
    inset 0 0 0 1px rgba(10, 13, 18, 0.18),
    inset 0 -2px 0 rgba(10, 13, 18, 0.05);
  backdrop-filter: blur(8px);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.hv3-tile:hover .hv3-create-btn {
  transform: translateY(0);
}

.hv3-hover-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 18, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hv3-tile:hover .hv3-hover-layer {
  opacity: 1;
}

.hv3-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: var(--hv3-bg-elevated);
  cursor: pointer;
}

.hv3-lazy-video {
  width: 100%;
  height: 100%;
}

.hv3-tile .hv3-media,
.hv3-lazy-video .hv3-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hv3-tile:hover .hv3-media {
  transform: scale(1.04);
}

/* ===== Hero — CodeBuddy AdFlow design (100% visual match) ===== */
.hv3-hero-prompt {
  /* Full first screen under fixed header (page already pads for header) */
  position: relative;
  z-index: 1;
  height: calc(100svh - var(--hv3-header-offset));
  min-height: calc(100svh - var(--hv3-header-offset));
  max-height: calc(100svh - var(--hv3-header-offset));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.2vh, 36px) 24px clamp(20px, 2.8vh, 40px);
  overflow: hidden;
  background: transparent;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.hv3-hero-bg-base {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 55% at 50% 50%, #1a0838 0%, #0e0322 40%, #050010 80%);
  z-index: 0;
  pointer-events: none;
}

/* No extra bloom layer — design intensity comes from bg-base + central-glow only */
.hv3-hero-ambient-glow {
  display: none;
}

.hv3-hero-central-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, rgba(124, 58, 237, 0.03) 32%, transparent 62%);
  z-index: 2;
  pointer-events: none;
  animation: hv3-glow-pulse 6s ease-in-out infinite;
}

@keyframes hv3-glow-pulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

.hv3-hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hv3-hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 8px #a855f7;
  opacity: 0.7;
  animation: hv3-drift 12s ease-in-out infinite;
}

@keyframes hv3-drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(20px, -30px); opacity: 0.9; }
}

/* Constrain floats to content rails (same 1600 as VerticalLayoutRails) */
.hv3-float-stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 5;
  width: min(100%, var(--hv3-content));
  transform: translateX(-50%);
  pointer-events: none;
}

.hv3-float-card {
  position: absolute;
  z-index: 5;
  background: rgba(18, 10, 38, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: hv3-float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hv3-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hv3-d1 { animation-delay: 0.5s; }
.hv3-d2 { animation-delay: 1.2s; }
.hv3-d3 { animation-delay: 1.9s; }
.hv3-d4 { animation-delay: 2.6s; }
.hv3-d5 { animation-delay: 3.3s; }

.hv3-stat-badge { display: flex; align-items: center; gap: 10px; padding: 4px; }
.hv3-stat-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.hv3-stat-text { display: flex; flex-direction: column; line-height: 1.2; }
.hv3-stat-label {
  font-size: 10.5px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.07em;
}
.hv3-stat-value { font-size: 15px; font-weight: 700; color: #fff; }

.hv3-ad-thumb { display: flex; align-items: center; gap: 11px; }
.hv3-ad-img {
  width: 58px; height: 58px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hv3-ad-info { display: flex; flex-direction: column; gap: 3px; }
.hv3-ad-title { font-size: 12px; color: #94a3b8; }
.hv3-ad-metric { font-size: 15px; font-weight: 700; color: #fff; }
.hv3-ad-sub { font-size: 11px; color: #64748b; }

.hv3-platform-badge {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hv3-spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.hv3-spark span {
  width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, #a855f7, #7c3aed);
}

.hv3-hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 940px;
  max-height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.hv3-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #d8b4fe;
  margin-bottom: clamp(10px, 1.8vh, 20px);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.hv3-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 10px #a855f7;
  animation: hv3-pulse-dot 2s ease-in-out infinite;
}

@keyframes hv3-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hv3-hero-title {
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  flex-shrink: 0;
}

.hv3-h-line1 {
  background: linear-gradient(180deg, #ffffff 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hv3-h-line2 {
  background: linear-gradient(90deg, #6a3bff 0%, #ff2d9e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hv3-h-line3 {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.hv3-hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto clamp(16px, 2.6vh, 36px);
  line-height: 1.6;
  flex-shrink: 0;
}

.hv3-composer {
  width: 100%;
  background: rgba(14, 7, 32, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 20px;
  padding: clamp(10px, 1.4vh, 14px);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow:
    0 35px 70px -25px rgba(168, 85, 247, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hv3-composer::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), transparent 50%, rgba(236, 72, 153, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hv3-tabs-row {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  margin-bottom: clamp(8px, 1.2vh, 12px);
  overflow-x: auto;
  flex-shrink: 0;
}

.hv3-tabs-row::-webkit-scrollbar { display: none; }

.hv3-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
  background: transparent;
}

.hv3-tab:hover:not(:disabled) {
  color: #fff;
  background: rgba(168, 85, 247, 0.08);
}

.hv3-tab.active {
  background: rgba(168, 85, 247, 0.16);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.32);
}

.hv3-tab:disabled { opacity: 0.55; cursor: not-allowed; }

.hv3-tab svg { width: 16px; height: 16px; flex-shrink: 0; }

.hv3-input-body {
  background: rgba(0, 0, 0, 0.42);
  border-radius: 14px;
  padding: clamp(14px, 1.6vh, 20px) 20px;
  min-height: clamp(64px, 9vh, 110px);
  max-height: min(130px, 14vh);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1 1 auto;
  overflow: hidden;
}

.hv3-prompt-input {
  width: 100%;
  min-height: clamp(40px, 6vh, 72px);
  height: 100%;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
  font-family: inherit;
  padding: 0;
}

.hv3-prompt-input::placeholder {
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv3-previews {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hv3-preview {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #181d27;
}

.hv3-preview img,
.hv3-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv3-preview .remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.hv3-hero-error {
  margin: 8px 0 0;
  padding: 0 4px;
  font-size: 13px;
  line-height: 18px;
  color: #f97066;
}

.hv3-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(8px, 1.2vh, 12px);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hv3-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.hv3-tool:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.hv3-tool:disabled { opacity: 0.5; cursor: not-allowed; }

.hv3-tool svg { width: 16px; height: 16px; flex-shrink: 0; }

.hv3-placement { position: relative; }
.hv3-placement-trigger { cursor: pointer; }
.hv3-placement-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.hv3-designer-pill {
  background: rgba(168, 85, 247, 0.13) !important;
  border-color: rgba(168, 85, 247, 0.32) !important;
  padding: 4px 12px 4px 4px !important;
}

.hv3-designer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ec4899, #a855f7);
}

.hv3-designer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hv3-designer-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.hv3-designer-text .name { font-size: 13px; font-weight: 600; color: #fff; }
.hv3-designer-text .role { font-size: 11px; color: #94a3b8; }

.hv3-spacer { flex: 1; min-width: 8px; }

.hv3-generate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #6a3bff;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(106, 59, 255, 0.45);
  transition: all 0.2s;
}

.hv3-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(168, 85, 247, 0.55);
}

.hv3-generate:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hv3-sparkle-icon {
  animation: hv3-spin-sparkle 3s linear infinite;
  display: inline-block;
}

@keyframes hv3-spin-sparkle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .hv3-float-card { display: none; }
  .hv3-page { --hv3-header-offset: 56px; }
  .hv3-hero-prompt {
    height: auto;
    min-height: calc(100svh - var(--hv3-header-offset));
    max-height: none;
    padding: 28px 16px 36px;
  }
  /* Keep designed 3 lines (Team / creative / minutes) — no mid-phrase wrap */
  .hv3-hero-title {
    font-size: clamp(1.28rem, 5vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  .hv3-h-line1,
  .hv3-h-line2,
  .hv3-h-line3 {
    white-space: nowrap;
  }
  .hv3-toolbar .hv3-tool:not(.hv3-designer-pill):not(.hv3-generate) {
    padding: 8px 10px;
    font-size: 12px;
  }
  .hv3-generate { padding: 10px 16px; }
  .hv3-designer-pill .hv3-designer-text .role { display: none; }
  .hv3-input-body {
    max-height: none;
    min-height: 110px;
  }
}

@media (max-width: 360px) {
  .hv3-hero-title {
    font-size: 1.2rem;
  }
}

/* Short desktop viewports: keep full composer visible without shrinking title too much */
@media (max-height: 820px) and (min-width: 769px) {
  .hv3-float-card { opacity: 0.85; }
  .hv3-float-card[style*='bottom'] { display: none; }
  .hv3-hero-title { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
  .hv3-hero-sub { margin-bottom: 16px; }
}

@media (max-height: 700px) and (min-width: 769px) {
  .hv3-float-card { display: none; }
  .hv3-hero-eyebrow { margin-bottom: 10px; }
  .hv3-hero-title { font-size: clamp(1.95rem, 3.8vw, 2.75rem); }
  .hv3-hero-sub { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv3-hero-central-glow,
  .hv3-hero-particle,
  .hv3-float-card,
  .hv3-sparkle-icon {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Models — aligned with editor homev3 ModelsSection */
.hv3-models {
  padding: 40px 24px 20px;
}

.hv3-models-intro {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 20px;
}

.hv3-models-copy {
  flex: 1;
  min-width: 280px;
}

.hv3-models-intro h2 {
  margin: 0 0 10px;
  font-size: 48px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.96px;
  color: var(--hv3-text);
}

.hv3-models-intro h2 span {
  color: var(--hv3-purple);
}

.hv3-models-intro p {
  margin: 0 0 24px;
  color: var(--hv3-text-muted);
  font-size: 16px;
  line-height: 24px;
}

.hv3-text-cta {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--hv3-purple);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.hv3-models-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: var(--hv3-purple);
  color: #fff;
  border-radius: 12px;
  height: 35px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.hv3-models-showcase {
  flex-shrink: 0;
  width: min(806px, 52%);
  border-radius: 20px;
  overflow: hidden;
}

.hv3-models-showcase img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hv3-models-mid {
  display: flex;
  gap: 19px;
  align-items: stretch;
  min-height: 366px;
  margin-bottom: 18px;
}

.hv3-models-hero {
  flex: 0 0 auto;
  width: min(580px, 42%);
  aspect-ratio: 580 / 366;
  align-self: stretch;
  min-height: 0;
}

.hv3-feature-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--hv3-bg-elevated);
  display: block;
  transition: transform 0.3s ease;
}

.hv3-feature-card:hover {
  transform: translateY(-4px);
}

.hv3-feature-card .media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
}

.hv3-model-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

.hv3-model-card {
  background: var(--hv3-bg-elevated);
  border-radius: 20px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.hv3-model-card:hover {
  background: var(--hv3-bg-card);
}

.hv3-model-icon {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: var(--hv3-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  color: #ffffff;
}

.hv3-model-icon-svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #ffffff;
  fill: currentColor;
}

.hv3-model-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: var(--hv3-text);
}

.hv3-model-card p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--hv3-text-muted);
}

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

/* LatestSection card ratio: 392 / 221 */
.hv3-models-bottom-card {
  width: 100%;
  height: auto;
  aspect-ratio: 392 / 221;
  min-height: 0;
}

/* Tools — aligned with editor homev3 ToolStrip */
.hv3-tools {
  padding: 8px 24px 48px;
}

.hv3-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hv3-tool-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--hv3-bg-elevated);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Editor ToolStrip hover: icon slides away, arrow appears on title */
.hv3-tool-card:hover .hv3-tool-icon {
  width: 0;
  margin-right: -12px;
}

.hv3-tool-card:hover .hv3-tool-icon img {
  transform: translateX(-100%);
  opacity: 0;
}

.hv3-tool-card:hover .name::after {
  opacity: 1;
  transform: rotate(45deg);
}

.hv3-tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.35s ease, margin 0.35s ease;
}

.hv3-tool-card img,
.hv3-tool-icon img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.hv3-tool-info {
  flex: 1;
  min-width: 0;
}

.hv3-tool-card .name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--hv3-text);
}

.hv3-tool-card .name .name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv3-tool-card .name::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateX(-4px);
  opacity: 0;
  transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
}

.hv3-tool-card .desc {
  font-size: 14px;
  color: var(--hv3-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv3-tool-tag {
  position: absolute;
  top: 0;
  right: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 0 0 6px 6px;
}

/* ToolStatusEnum: NEW=1 HOT=2 BETA=3 FREE=4 */
.hv3-tool-tag.status-1,
.hv3-tool-tag.status-2 {
  background: #f04438;
}

.hv3-tool-tag.status-3 {
  background: #153ef0;
}

.hv3-tool-tag.status-4 {
  background: linear-gradient(90deg, #ff531a 0%, #ffa31a 100%);
}

/* Showcase */
.hv3-showcase {
  padding: 24px 24px 48px;
}

.hv3-showcase-hero {
  position: relative;
  height: 378px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(213, 215, 218, 0.12);
  margin-bottom: 20px;
}

.hv3-showcase-copy {
  position: relative;
  z-index: 1;
  width: 378px;
  max-width: calc(100% - 48px);
  margin: 67px 0 0 61px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv3-pill {
  display: inline-flex;
  align-items: center;
  height: 19px;
  background: rgba(255, 122, 45, 0.16);
  color: #ca8504;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 0 6px;
  width: fit-content;
}

.hv3-showcase-copy h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.96px;
}

.hv3-showcase-copy h2 span {
  color: var(--hv3-purple);
}

.hv3-showcase-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--hv3-text-muted);
}

.hv3-showcase-hero-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 57%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent, #000 12%);
}

.hv3-media-wrap {
  position: relative;
}

.hv3-masonry {
  display: flex;
  gap: 10px;
  max-height: 1024px;
  overflow: hidden;
  mask-image: linear-gradient(#000 72%, transparent);
}

.hv3-masonry-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv3-tile.tall {
  aspect-ratio: 312 / 533;
}

.hv3-tile.short {
  aspect-ratio: 312 / 200;
}

.hv3-media-wrap .hv3-overlay-cta {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
}

/* Ideas */
.hv3-ideas {
  padding: 24px 24px 48px;
}

.hv3-ideas-hero {
  position: relative;
  height: 369px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--hv3-bg-elevated);
}

.hv3-ideas-hero img.hero {
  position: absolute;
  right: 0;
  top: 0;
  width: 61%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}

.hv3-ideas-block {
  margin-bottom: 48px;
}

.hv3-ideas-block h3 {
  margin: 0 0 20px;
  font-size: 36px;
  font-weight: 600;
  color: var(--hv3-purple);
}

.hv3-ideas-wrap {
  position: relative;
  height: 791px;
  overflow: hidden;
}

/* Fade only the masonry — Explore CTA sits above the shadow (editor tag-footer) */
.hv3-ideas-mask {
  height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(#000 70%, transparent);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
}

.hv3-ideas-masonry {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.hv3-ideas-masonry-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hv3-ideas-tile {
  width: 100%;
  /* aspect-ratio set inline from template_ratio */
  flex-shrink: 0;
}

.hv3-ideas-tile .hv3-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv3-ideas-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hv3-ideas-footer .hv3-overlay-cta {
  pointer-events: auto;
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
}

/* Workflow — aligned with editor WorkflowSection.vue */
.hv3-workflow {
  padding: 48px 24px 64px;
}

.hv3-workflow-heading {
  margin-bottom: 40px;
  max-width: 815px;
}

.hv3-workflow h2 {
  margin: 0 0 10px;
  font-size: 48px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.96px;
  color: var(--hv3-text);
}

.hv3-workflow h2 span {
  color: var(--hv3-purple);
}

.hv3-workflow .sub {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--hv3-text-muted);
}

.hv3-steps-wrap {
  position: relative;
}

.hv3-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.hv3-step {
  position: relative;
  height: 682px;
  border-radius: 24px;
  overflow: hidden;
  padding-top: 42px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hv3-step-copy {
  position: relative;
  z-index: 2;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex-shrink: 0;
}

.hv3-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 31px;
  height: 30px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.hv3-step-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.hv3-step h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 38px;
  color: var(--hv3-text);
}

.hv3-step-text p,
.hv3-step p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--hv3-text-muted);
}

.hv3-step-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  margin-top: 28px;
  min-height: 0;
}

.hv3-step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 0;
  margin: 0;
}

.hv3-step-visual-1 img,
.hv3-step-visual-2 img {
  object-fit: contain;
  object-position: center bottom;
}

.hv3-step-visual-3 img,
.hv3-step-visual-4 img {
  object-fit: cover;
  object-position: center top;
}

.hv3-steps-wrap .hv3-overlay-cta {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 4;
}

/* Social proof logos — inside Real Results (Figma 19112:8667 / 19135:9051) */
.hv3-social-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border: 0.5px solid #414650;
  border-radius: 12px;
  overflow: hidden;
}

.hv3-social-bar .title {
  margin: 0;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #535862;
  text-align: center;
}

.hv3-logos {
  position: relative;
  width: 100%;
  height: 59px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
}

.hv3-logos-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: hv3-logos-marquee 60s linear infinite;
}

.hv3-logos-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
  /* trailing gap so group width == one seamless loop step */
  padding-right: 40px;
  flex-shrink: 0;
  height: 100%;
}

.hv3-social-bar:hover .hv3-logos-track {
  animation-play-state: paused;
}

@keyframes hv3-logos-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv3-logos-track {
    animation: none;
  }
}

.hv3-logo {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  pointer-events: none;
}

.hv3-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
}

/* Testimonials — Figma 18692:14935 */
.hv3-testimonials {
  position: relative;
  padding: 48px 24px 64px;
  overflow: visible;
}

/* Figma Mask group: soft blue ellipse glow — CSS only, no image base */
.hv3-testimonials .glow {
  position: absolute;
  left: 50%;
  top: -40px;
  z-index: 0;
  width: min(100%, var(--hv3-content));
  height: 560px;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  background: radial-gradient(
    ellipse 48% 42% at 50% 18%,
    rgba(0, 64, 193, 0.28) 0%,
    rgba(0, 48, 150, 0.14) 35%,
    rgba(0, 32, 100, 0.05) 55%,
    transparent 72%
  );
}

.hv3-testimonials .hv3-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.hv3-t-top {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.hv3-t-heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: none;
}

.hv3-testimonials h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: -0.96px;
  color: var(--hv3-text);
  text-align: left;
  white-space: nowrap;
}

.hv3-testimonials .sub {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--hv3-text-muted);
  text-align: left;
  max-width: 728px;
}

.hv3-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 17px 0;
  border: none;
  border-radius: 12px;
  overflow: visible;
  margin: 0;
  gap: 0;
}

.hv3-stat {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--hv3-text);
  text-align: left;
  border-right: none;
}

.hv3-stat strong {
  flex-shrink: 0;
  display: inline;
  font-size: 30px;
  font-weight: 500;
  line-height: 38px;
  white-space: nowrap;
  margin: 0;
}

.hv3-stat .stat-label {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: var(--hv3-text);
  white-space: nowrap;
}

.hv3-stat .badge {
  width: 61px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}

.hv3-stat .divider {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 66px;
  background: rgba(233, 234, 235, 0.22);
}

.hv3-t-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.hv3-t-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 390px;
  padding: 30px 20px;
  border-radius: 20px;
  background: rgba(213, 215, 218, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hv3-t-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hv3-t-card .stars {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hv3-t-card .quote {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: var(--hv3-text);
  flex: none;
}

.hv3-t-card .card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hv3-t-card .user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.hv3-t-card .user img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hv3-t-card .user strong {
  display: block;
  overflow: hidden;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  color: var(--hv3-text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hv3-t-card .user span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--hv3-text-dim);
  word-break: break-word;
}

.hv3-t-card .result {
  flex-shrink: 0;
  max-width: 149px;
  text-align: right;
  border-top: none;
  padding-top: 0;
}

.hv3-t-card .result em {
  display: block;
  font-style: normal;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: var(--hv3-text);
}

.hv3-t-card .result span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  color: #079455;
  white-space: pre-line;
}

.hv3-cta-wrap {
  display: flex;
  justify-content: center;
  /* parent gap 100px → net 50px above CTA */
  margin-top: -50px;
}

/* FAQ */
.hv3-faq {
  padding: 0 24px 48px;
}

.hv3-faq h2 {
  margin: 0 0 48px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.96px;
}

.hv3-faq-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hv3-faq-row {
  display: flex;
  gap: 32px;
}

.hv3-faq-item {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: none;
  border-top: 1px solid var(--hv3-border);
  background: transparent;
  color: var(--hv3-text);
  padding: 24px 0 0;
  cursor: pointer;
}

.hv3-faq-item.open {
  border-top-color: transparent;
  padding-top: 0;
}

.hv3-faq-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hv3-faq-item .q {
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
}

.hv3-faq-item .a {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--hv3-text-dim);
}

/* CTA */
.hv3-cta {
  position: relative;
  width: 100%;
  height: 429px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hv3-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv3-cta-panel {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: none;
  padding: 24px;
}

.hv3-cta-panel h2 {
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 600;
  white-space: nowrap;
}

.hv3-cta-panel p {
  margin: 0 auto 24px;
  max-width: 720px;
  color: var(--hv3-text-muted);
}

.hv3-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--hv3-purple);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .hv3-stats {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 12px 0;
  }

  .hv3-stat {
    flex: 1 1 45%;
    padding: 8px 12px;
  }

  .hv3-stat .divider {
    display: none;
  }

  .hv3-tools-grid,
  .hv3-t-grid,
  .hv3-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .hv3-step {
    height: 620px;
  }

  .hv3-workflow h2 {
    font-size: 40px;
    line-height: 1.2;
  }

  .hv3-models-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hv3-models-showcase {
    width: 100%;
  }

  .hv3-models-mid {
    flex-direction: column;
  }

  .hv3-models-hero {
    width: 100%;
  }

  .hv3-models-intro h2 {
    font-size: 36px;
    line-height: 1.25;
  }

  .hv3-ideas-wrap {
    height: 560px;
  }

  .hv3-ideas-masonry {
    gap: 8px;
  }

  .hv3-ideas-masonry-col {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .hv3-showcase-hero {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .hv3-showcase-copy {
    margin: 32px 24px;
    width: auto;
    max-width: none;
  }

  .hv3-showcase-hero-img {
    position: relative;
    width: 100%;
    height: 220px;
    mask-image: none;
  }

  .hv3-showcase-copy h2,
  .hv3-models-intro h2,
  .hv3-faq h2,
  .hv3-workflow h2 {
    font-size: 32px;
    line-height: 1.25;
  }

  .hv3-cta-panel h2 {
    font-size: clamp(22px, 5vw, 32px);
    line-height: 1.25;
    white-space: nowrap;
  }

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

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

  .hv3-step {
    height: 560px;
  }

  .hv3-tools-grid,
  .hv3-models-bottom,
  .hv3-faq-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hv3-t-grid {
    grid-template-columns: 1fr;
  }

  .hv3-stat {
    flex: 1 1 100%;
  }

  .hv3-stat strong {
    font-size: 24px;
  }

  .hv3-stat .stat-label {
    font-size: 16px;
    line-height: 24px;
  }

  .hv3-testimonials h2 {
    font-size: clamp(22px, 5.5vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.64px;
    white-space: nowrap;
  }

  .hv3-testimonials .glow {
    height: min(420px, 55vw);
  }

  .hv3-models-bottom-card {
    aspect-ratio: 392 / 221;
  }

  .hv3-faq-row {
    flex-direction: column;
    gap: 0;
  }

  .hv3-ideas-wrap {
    height: 480px;
  }

  .hv3-masonry-col:nth-child(n + 4) {
    display: none;
  }
}

