/* Lovable.dev homepage clone — cream edition */
@font-face {
  font-family: "Camera Plain Variable";
  src: url("../assets/fonts/CameraPlainVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Camera Plain Variable";
  src: url("../assets/fonts/CameraPlainVariableItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #fcfbf8;
  --ink: #1c1c1c;
  --muted: #616161;
  --muted-2: #8a8a8a;
  --white: #ffffff;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --border: rgba(28, 28, 28, 0.08);
  --ring: rgba(0, 0, 0, 0.08);
  --blue: #5b6cff;
  --pink: #9b7cff;
  --orange: #e8b86d;
  --red: #ff3029;
  --sky: #8eb6ff;
  --deep: #282890;
  /* aurora — overridden randomly by JS on load */
  --aurora-1: rgba(91, 108, 255, 0.42);
  --aurora-2: rgba(155, 124, 255, 0.32);
  --aurora-3: rgba(232, 184, 109, 0.26);
  --aurora-4: rgba(40, 40, 144, 0.14);
  --aurora-hue: 198deg;
  --aurora-sat: 0.7;
  --logo-grad: linear-gradient(160deg, #e8b86d 0%, #8b7cff 48%, #282890 100%);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-draw: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Camera Plain Variable", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 78px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
  display: flex;
  align-items: center;
  background: transparent;
  box-shadow: none;
  transition: background 300ms ease, box-shadow 300ms ease;
}
.site-header.is-scrolled {
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header-inner {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  transition: opacity 150ms ease;
  min-width: 0;
}
.logo:hover { opacity: 0.92; }
.logo-more {
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 1;
  color: inherit;
}
@media (max-width: 720px) {
  .logo-sep { margin: 0 4px; }
}
.logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: #000;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M2%2012h20%22%2F%3E%3Cpath%20d%3D%22M12%202a15.3%2015.3%200%200%201%204%2010%2015.3%2015.3%200%200%201-4%2010%2015.3%2015.3%200%200%201-4-10%2015.3%2015.3%200%200%201%204-10z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M2%2012h20%22%2F%3E%3Cpath%20d%3D%22M12%202a15.3%2015.3%200%200%201%204%2010%2015.3%2015.3%200%200%201-4%2010%2015.3%2015.3%200%200%201-4-10%2015.3%2015.3%200%200%201%204-10z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 8px;
  opacity: 0.88;
  transition: opacity 150ms ease, background 150ms ease;
}
.nav-links a:hover { opacity: 1; background: rgba(0,0,0,0.04); }


/* ——— Nav center: spectrum dock (Pinterest-style) ——— */
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}
.nav-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(300px, 42vw);
  color: #f4f2f8;
}
.nav-spectrum {
  display: block;
  width: 100%;
  height: 26px;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.nav-dock-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.nav-dock-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease, filter 150ms ease;
}
.nav-dock-btn:hover { opacity: 1; transform: scale(1.06); }
.nav-dock-btn svg { width: 16px; height: 16px; display: block; }
/* shuffle / repeat: dim until armed */
.nav-dock-btn[data-busic="shuffle"],
.nav-dock-btn[data-busic="loop"] {
  opacity: 0.32;
}
.nav-dock-btn[data-busic="shuffle"]:hover,
.nav-dock-btn[data-busic="loop"]:hover {
  opacity: 0.7;
}
.nav-dock-btn[data-busic="shuffle"].is-on,
.nav-dock-btn[data-busic="loop"].is-on,
.nav-dock-btn[data-busic="shuffle"][aria-pressed="true"],
.nav-dock-btn[data-busic="loop"][aria-pressed="true"] {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.35));
}
.nav-dock-play {
  width: 34px;
  height: 34px;
  opacity: 1;
}
.nav-dock-play svg { width: 22px; height: 22px; }
.nav-dock-play .icon-play { margin-left: 2px; }
.nav-dock-play .icon-play,
.nav-dock-play .icon-pause { display: block; }
.nav-dock-play:not(.is-playing) .icon-pause { display: none !important; }
.nav-dock-play.is-playing .icon-play { display: none !important; }
.nav-dock-play.is-playing .icon-pause { display: block !important; }
body:has(.hero.has-light-pillar) .nav-dock { color: #f4f2f8; }
@media (max-width: 640px) {
  .nav-dock { width: min(220px, 48vw); gap: 2px; }
  .nav-dock-controls { gap: 10px; }
  .nav-spectrum { height: 22px; }
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}
.btn-pill:hover { opacity: 0.92; }
.btn-login {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}
.btn-start {
  background: var(--ink);
  color: var(--white);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  overflow: clip;
}
/* Soft wash — colors from --aurora-* (random each load); slow right drift + color flow */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -28% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 22%, var(--aurora-1), transparent 68%),
    radial-gradient(ellipse 45% 40% at 18% 38%, var(--aurora-2), transparent 62%),
    radial-gradient(ellipse 48% 42% at 82% 34%, var(--aurora-3), transparent 64%),
    radial-gradient(ellipse 80% 50% at 50% 78%, var(--aurora-4), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 78%, transparent 100%);
  will-change: transform, filter;
  animation: wash-scroll-right 72s linear infinite alternate,
             wash-color-breathe 36s ease-in-out infinite;
}
.hero-mesh {
  position: absolute;
  left: 50%;
  top: calc(-75vw + 50vh + 160px);
  width: 220vw;
  height: auto;
  transform: translateX(-50%) scale(1.04);
  transform-origin: 50% 40%;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
  /* top fade mask */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
  opacity: 0;
  animation:
    mesh-enter 1.6s var(--ease-out-cubic) forwards,
    mesh-scroll-right 90s linear 1.6s infinite alternate;
}
.hero-mesh img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.72;
  filter: hue-rotate(var(--aurora-hue)) saturate(var(--aurora-sat)) brightness(1.06);
  will-change: filter;
  animation: mesh-color-flow 48s ease-in-out 1.6s infinite;
}
@keyframes mesh-enter {
  from { opacity: 0; transform: translateX(-55%) translateY(50vh) scale(1.04); }
  to   { opacity: 1; transform: translateX(-55%) translateY(0) scale(1.04); }
}
/* Wave light slowly scrolls right (then eases back) — keeps soft gradient, no jumps */
@keyframes mesh-scroll-right {
  0%   { transform: translateX(-58%) scale(1.04); }
  100% { transform: translateX(-40%) scale(1.06); }
}
@keyframes wash-scroll-right {
  0%   { transform: translateX(-8%); }
  100% { transform: translateX(8%); }
}
@keyframes wash-color-breathe {
  0%, 100% { filter: hue-rotate(0deg) saturate(1) brightness(1); opacity: 1; }
  50%      { filter: hue-rotate(18deg) saturate(1.08) brightness(1.04); opacity: 0.92; }
}
@keyframes mesh-color-flow {
  0%, 100% {
    filter: hue-rotate(var(--aurora-hue)) saturate(var(--aurora-sat)) brightness(1.06);
  }
  50% {
    filter: hue-rotate(calc(var(--aurora-hue) + 28deg)) saturate(calc(var(--aurora-sat) * 1.08)) brightness(1.09);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  text-align: center;
  opacity: 0;
  transform: translateY(50vh);
  animation: hero-enter 1.6s var(--ease-out-cubic) forwards;
}
@keyframes hero-enter {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero logo above title */
.hero-logo {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.06);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.hero .sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 200;
  color: var(--muted);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* Composer */
.composer {
  position: relative;
  background: var(--white);
  border-radius: 28px;
  max-width: 38rem;
  margin-inline: auto;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 18px 50px rgba(0,0,0,0.10),
    0 4px 14px rgba(0,0,0,0.06);
  transition: box-shadow 300ms ease;
}
.composer.is-focused {
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 18px 50px rgba(0,0,0,0.10),
    0 0 0 4px color-mix(in srgb, var(--glow, #5E89F2) 28%, transparent),
    0 0 40px color-mix(in srgb, var(--glow, #5E89F2) 35%, transparent);
}
.composer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 14px;
  min-height: 64px;
}
.composer-plus,
.composer-mic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background 150ms ease, color 150ms ease;
}
.composer-plus:hover,
.composer-mic:hover { background: rgba(0,0,0,0.05); color: var(--ink); }
.composer-field {
  position: relative;
  min-height: 28px;
  text-align: left;
}
.composer-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  caret-color: var(--deep);
}
.composer-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  font-size: 15px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer-placeholder .prefix { color: var(--muted-2); }
.composer-placeholder .typed { color: var(--muted); }
.composer-placeholder .caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--deep);
  vertical-align: -0.15em;
  animation: caret-blink 1.12s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.composer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn-build {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.btn-build svg { opacity: 0.85; }

/* ——— Section commons ——— */
.section {
  padding: 96px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-inline: auto;
}

/* Headline sweep mark */
.sweep {
  position: relative;
  display: inline;
  color: transparent;
  background: linear-gradient(
    90deg,
    #82bcff 0%,
    #2483ff 22%,
    #ff66f4 48%,
    #ff3029 72%,
    #fe7b02 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(1px);
  transition: none;
}
.sweep.is-done {
  color: var(--ink);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
  animation: none;
}
.sweep.is-wiping {
  animation: sweep-wipe 1.2s var(--ease-out-cubic) 0.1s forwards;
}
@keyframes sweep-wipe {
  0% {
    color: transparent;
    filter: blur(1px);
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(90deg, #82bcff, #2483ff, #ff66f4, #ff3029, #fe7b02);
  }
  70% {
    color: transparent;
    filter: blur(0.2px);
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
  }
  100% {
    color: var(--ink);
    filter: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}
.panel-dark .sweep.is-done { color: #fff; }
.panel-dark .sweep.is-wiping {
  animation-name: sweep-wipe-dark;
}
@keyframes sweep-wipe-dark {
  0% {
    color: transparent;
    filter: blur(1px);
    background-image: linear-gradient(90deg, #82bcff, #2483ff, #ff66f4, #ff3029, #fe7b02);
    -webkit-background-clip: text;
    background-clip: text;
  }
  70% {
    color: transparent;
    filter: blur(0.2px);
    -webkit-background-clip: text;
    background-clip: text;
  }
  100% {
    color: #fff;
    filter: none;
    background: none;
  }
}

/* ——— Platform cards ——— */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plat-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.plat-visual {
  flex: 1;
  padding: 28px 24px 8px;
  background: linear-gradient(180deg, #f7f5f1 0%, #fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.plat-body {
  padding: 20px 24px 28px;
}
.plat-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.plat-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Idea mock composer */
.mock-composer {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 16px;
  text-align: left;
}
.mock-composer .line {
  font-size: 14px;
  color: var(--ink);
  min-height: 1.4em;
}
.mock-composer .line .c {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--deep);
  margin-left: 1px;
  vertical-align: -0.12em;
  animation: caret-blink 1.12s steps(1) infinite;
}

/* Refine mock */
.mock-tabs {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.mock-tabs-bar {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #faf9f6;
}
.mock-tabs-bar span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
}
.mock-tabs-bar span.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.mock-tabs-body {
  padding: 20px;
  height: 160px;
  display: grid;
  place-items: center;
}
.mock-tabs-body svg .draw-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}
.mock-tabs-body.is-drawn svg .draw-path {
  animation: stroke-draw 1s var(--ease-draw) forwards;
}
@keyframes stroke-draw {
  to { stroke-dashoffset: 0; }
}

/* Depend list */
.depend-list {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 8px;
  text-align: left;
}
.depend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: background 300ms ease, color 300ms ease;
}
.depend-item.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 400ms ease, transform 400ms ease, background 300ms ease;
}
.depend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
}
.depend-item.is-hot {
  background: rgba(36, 131, 255, 0.08);
}
.depend-item.is-hot .dot {
  background: var(--deep);
}

/* ——— Infra sticky panel ——— */
.infra-wrap {
  padding: 24px 24px 80px;
}
.infra-panel {
  background: var(--panel);
  color: #fff;
  border-radius: 28px;
  padding: 64px 48px;
  max-width: 1200px;
  margin-inline: auto;
}
.infra-panel .section-head {
  text-align: left;
  max-width: 28rem;
  margin-bottom: 40px;
}
.infra-panel .section-head h2 {
  color: #fff;
}
.infra-panel .section-head p {
  color: rgba(255,255,255,0.62);
  margin-inline: 0;
}
.infra-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 48px;
  align-items: start;
}
.infra-sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.infra-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.infra-row {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0 0;
}
.infra-row:first-child { padding-top: 0; }
.infra-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.45);
  transition: color 150ms ease;
}
.infra-row.is-open .infra-row-head { color: #fff; }
.infra-row-body {
  height: 0;
  overflow: hidden;
  transition: height 150ms ease-out;
}
.infra-row-body-inner {
  padding-bottom: 20px;
  color: rgba(255,255,255,0.62);
  font-size: 0.95rem;
  max-width: 32ch;
}
.infra-underline {
  height: 2px;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff66f4, #2483ff);
  margin-top: -2px;
  transition: width 150ms linear;
}
.infra-row.is-open .infra-underline { width: 100%; }
.infra-visuals {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 20vh;
}
.infra-visual {
  background: #0e0e0e;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  min-height: 320px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0.35;
  transform: scale(0.98);
  transition: opacity 300ms ease, transform 300ms ease;
}
.infra-visual.is-active {
  opacity: 1;
  transform: scale(1);
}
.infra-visual img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
}

/* ——— Trusted ——— */
.trusted {
  padding: 80px 0;
}
.trusted-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.trusted h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  transition: background 150ms ease;
}
.btn-outline:hover { background: #f5f4f0; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 28px;
  align-items: center;
}
.brand-cell {
  height: 56px;
  display: grid;
  place-items: center;
  opacity: 0.85;
}
.brand-cell svg { max-height: 28px; width: auto; fill: #1c1c1c; }

/* ——— Cases carousel ——— */
.cases {
  padding: 80px 0 100px;
  overflow: hidden;
}
.cases .section-head { margin-bottom: 40px; }
.carousel {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  height: 420px;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.case-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 640px);
  height: 360px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out-expo), opacity 0.45s var(--ease-out-expo), filter 0.45s var(--ease-out-expo);
  filter: brightness(1);
}
.case-card.is-center {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
}
.case-card.is-prev {
  opacity: 1;
  z-index: 2;
  width: calc(min(100%, 640px) * 0.42);
  height: calc(360px * 0.76);
  padding: 0;
  display: grid;
  place-items: center;
  transform: translate(calc(-50% - 52%), -50%) scale(1);
  background: #efece6;
  box-shadow: none;
  overflow: hidden;
}
.case-card.is-next {
  opacity: 1;
  z-index: 2;
  width: calc(min(100%, 640px) * 0.42);
  height: calc(360px * 0.76);
  padding: 0;
  display: grid;
  place-items: center;
  transform: translate(calc(-50% + 52%), -50%) scale(1);
  background: #efece6;
  box-shadow: none;
  overflow: hidden;
}
.case-card.is-far {
  opacity: 0;
  z-index: 1;
  transform: translate(-50%, -50%) scale(0.8);
}
.case-card.is-prev .case-detail,
.case-card.is-next .case-detail,
.case-card.is-far .case-detail { display: none; }
.case-card.is-center .case-logo-only { display: none; }
.case-card.is-prev .case-logo-only,
.case-card.is-next .case-logo-only {
  display: block;
  width: 64px;
  height: 64px;
  filter: brightness(0);
}
.case-logo-only { display: none; }
.case-detail .quote {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 20px;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.case-stats strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.case-stats span {
  font-size: 12px;
  color: var(--muted);
}
.case-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.case-person img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.case-person .name { font-size: 14px; font-weight: 500; }
.case-person .role { font-size: 12px; color: var(--muted); }
.case-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.case-brand img { height: 28px; width: auto; }
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  display: grid;
  place-items: center;
  transition: background 150ms ease;
}
.carousel-btn:hover { background: #f3f2ee; }

/* ——— Stats ——— */
.stats {
  padding: 80px 0 100px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.stat-list { display: flex; flex-direction: column; gap: 28px; }
.stat-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.stat-item.is-in {
  opacity: 1;
  transform: none;
}
.stat-item strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-item span {
  color: var(--muted);
  font-size: 0.95rem;
}
.stats-chart {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}
.stats-chart path.area {
  fill-opacity: 0;
  transition: fill-opacity 0.8s ease 0.3s;
}
.stats-chart.is-drawn path.area { fill-opacity: 1; }
.stats-chart path.line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.stats-chart.is-drawn path.line {
  animation: stroke-draw 1.4s var(--ease-draw) forwards;
}

/* ——— Closer ——— */
.closer {
  position: relative;
  isolation: isolate;
  padding: 120px 24px 0;
  overflow: clip;
  min-height: 520px;
}
.closer-mesh {
  position: absolute;
  left: 50%;
  top: -20%;
  width: 180vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 70%, transparent);
}
.closer-mesh img { width: 100%; }
.closer-content {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 80px;
}
.closer-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

/* ——— Footer ——— */
.footer {
  position: relative;
  z-index: 2;
  padding: 0 24px 40px;
  margin-top: -40px;
}
.footer-card {
  background: var(--cream);
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 -4px 40px rgba(0,0,0,0.06);
  padding: 48px 40px 32px;
  max-width: 1200px;
  margin-inline: auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.footer-cols h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.footer-cols a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 150ms ease;
}
.footer-cols a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
  color: var(--muted);
}
.lang-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 13px;
  background: #fff;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .infra-layout { grid-template-columns: 1fr; }
  .infra-sticky { position: static; }
  .trusted-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .case-card.is-prev, .case-card.is-next { display: none; }
}
@media (max-width: 640px) {
  .header-actions .btn-login { display: none; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-panel { padding: 40px 24px; border-radius: 20px; }
}


/* Nav mid-links removed: keep logo | actions layout */
.nav-links[hidden] { display: none !important; }
.header-inner:has(.nav-center) {
  /* equal side columns → dock sits on true page center */
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}
.header-inner:has(.nav-center) .logo {
  justify-self: start;
}
.header-inner:has(.nav-center) .header-actions {
  justify-self: end;
}
.header-inner:has(.nav-center) .nav-center {
  justify-self: center;
  /* optical nudge: left logo+cue is wider than right pills */
  transform: translateX(10px);
}


/* ——— Light Pillar (React Bits) hero background ——— */
/* Official demo: dark stage + screen blend + Aurora LOOK */
.hero-light-pillar.light-pillar-container,
.hero-light-pillar {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: auto;
}
.light-pillar-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero.has-light-pillar {
  background: #000;
}
.hero.has-light-pillar .hero-mesh {
  display: none !important;
}
.hero.has-light-pillar::before {
  opacity: 0;
  animation: none;
  filter: none;
}
.hero.has-light-pillar .hero-content {
  z-index: 1;
  color: #f4f2f8;
}
.hero.has-light-pillar h1 {
  color: #f7f5fb;
}
.hero.has-light-pillar .sub {
  color: rgba(244, 242, 248, 0.72);
  font-weight: 200;
}
.hero.has-light-pillar .logo {
  color: #f4f2f8;
}
.hero.has-light-pillar .logo-mark {
  background: #fff;
}
/* Keep header readable on black pillar stage */
body:has(.hero.has-light-pillar) .site-header {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
body:has(.hero.has-light-pillar) .logo {
  color: #f4f2f8;
}
body:has(.hero.has-light-pillar) .logo-mark {
  background: #fff;
}
body:has(.hero.has-light-pillar) .logo-more {
  color: rgba(244, 242, 248, 0.82);
  opacity: 1;
  /* period ≈ π s — matches Light Pillar cos(uTime * 2) when flow=1 */
  animation: logo-more-glow 3.14s ease-in-out infinite;
  will-change: text-shadow, color;
}

@keyframes logo-more-glow {
  0%,
  100% {
    color: rgba(244, 242, 248, 0.72);
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.12),
      0 0 12px rgba(255, 255, 255, 0.06);
  }
  50% {
    color: #ffffff;
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.55),
      0 0 18px rgba(255, 255, 255, 0.32),
      0 0 32px rgba(255, 255, 255, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.hero.has-light-pillar) .logo-more {
    animation: none;
    color: #f4f2f8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
  }
}
body:has(.hero.has-light-pillar) .btn-login {
  background: #fff;
  color: #1c1c1c;
  opacity: 1;
}
body:has(.hero.has-light-pillar) .btn-start {
  /* 透明度减半：由偏透黑 → 近实黑 */
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  opacity: 1;
}
body:has(.hero.has-light-pillar) {
  background: #000;
}


/* Album cover attach (+) */
.composer-cover {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(28,28,28,0.04);
}
.composer-cover.is-on { display: flex; }
.composer-cover img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.composer-cover-meta {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.composer-cover-meta strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer-cover-clear {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.composer-cover-clear:hover { background: rgba(0,0,0,0.06); color: var(--ink); }


/* ——— Mobile: player stays; logo/actions → ☰ ——— */
.nav-burger {
  display: none;
  appearance: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  justify-self: end;
  z-index: 5;
}
.nav-burger-ico { display: block; transform: translateY(-1px); }
.nav-sheet {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 12px;
  right: auto;
  min-width: 200px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(20, 20, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 40;
}
.nav-sheet:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
.nav-sheet-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #f4f2f8;
  text-decoration: none;
}
.nav-sheet-link:hover,
.nav-sheet-link:active { background: rgba(255,255,255,0.08); }
.nav-sheet-donate { font-weight: 600; }

@media (max-width: 720px) {
  .site-header { position: relative; }
  .header-inner:has(.nav-center) {
    grid-template-columns: 44px 1fr 44px;
    gap: 4px;
    width: min(100% - 12px, 1200px);
  }
  .header-inner:has(.nav-center) .logo,
  .header-inner:has(.nav-center) .header-actions {
    display: none !important;
  }
  .nav-burger {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }
  .header-inner:has(.nav-center) .nav-center {
    justify-self: center;
    transform: none;
    grid-column: 2;
    grid-row: 1;
  }
  .nav-dock { width: min(280px, 78vw); }
  .nav-dock-controls { gap: 12px; }
  .nav-spectrum { height: 22px; }
}

body:has(.hero.has-light-pillar) .nav-burger {
  color: #f4f2f8;
}
