:root {
  color-scheme: dark;
  --bg: #030914;
  --bg-soft: #07162a;
  --panel: rgba(9, 28, 53, .72);
  --panel-strong: rgba(11, 34, 64, .92);
  --line: rgba(149, 204, 255, .16);
  --ink: #f5f8ff;
  --muted: #a1b1c8;
  --faint: #72839b;
  --accent: #69e2ef;
  --accent-2: #76a8ff;
  --accent-rgb: 105, 226, 239;
  --accent-2-rgb: 118, 168, 255;
  --success: #91f0ce;
  --shadow: 0 24px 70px rgba(0, 8, 26, .46);
  --radius: 26px;
}

body[data-app="pixvault"] {
  --accent: #b19aff;
  --accent-2: #6ee7f2;
  --accent-rgb: 177, 154, 255;
  --accent-2-rgb: 110, 231, 242;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(var(--accent-2-rgb), .21), transparent 30rem),
    radial-gradient(circle at 92% 22%, rgba(var(--accent-rgb), .12), transparent 28rem),
    linear-gradient(155deg, var(--bg), var(--bg-soft) 52%, #061426);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; }

.noise, .light-rays, .bubble-field { position: fixed; inset: 0; pointer-events: none; }
.noise {
  z-index: -1;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}
.light-rays {
  z-index: -2;
  opacity: .65;
  background: repeating-linear-gradient(108deg, transparent 0 10%, rgba(var(--accent-rgb), .025) 11%, transparent 13% 23%);
  transform: scale(1.25) rotate(-4deg);
}
.bubble-field { z-index: 0; overflow: hidden; }
.bubble {
  position: absolute;
  bottom: -70px;
  border: 1px solid rgba(var(--accent-rgb), .22);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.2), rgba(var(--accent-rgb), .05) 50%, transparent 72%);
  opacity: 0;
  animation: bubble-rise var(--duration) linear infinite;
  animation-delay: var(--delay);
}
@keyframes bubble-rise {
  0% { transform: translate3d(0, 8vh, 0) scale(.7); opacity: 0; }
  14% { opacity: .55; }
  100% { transform: translate3d(var(--sway), -112vh, 0) scale(1.1); opacity: 0; }
}

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.site-nav.scrolled { border-color: var(--line); background: rgba(3, 9, 20, .75); backdrop-filter: blur(20px); }
.nav-inner { width: min(1120px, calc(100% - 40px)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 9px 28px rgba(var(--accent-2-rgb), .28); }
.brand small { display: block; margin-top: 1px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 9px 13px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s ease, background .2s ease; }
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.nav-link.primary { color: #061321; background: linear-gradient(115deg, var(--accent), #eefcff); }

.hero { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 46px; padding: 66px 0 74px; }
.hero-copy { position: relative; z-index: 3; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(var(--accent-rgb), .23); border-radius: 999px; color: var(--accent); background: rgba(var(--accent-rgb), .07); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .11); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(48px, 6.5vw, 78px); line-height: 1; letter-spacing: -.055em; }
.hero h1 span { display: block; margin-top: 10px; color: transparent; background: linear-gradient(100deg, var(--accent), var(--accent-2), #d8c7ff); background-clip: text; -webkit-background-clip: text; }
body[data-app="bluefatfish"] .hero h1 span { font-size: .8em; white-space: nowrap; }
.hero-lead { max-width: 610px; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #c5d1e1; background: rgba(255,255,255,.04); font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.055);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .46); background: rgba(255,255,255,.09); }
.button.primary { border-color: transparent; color: #04131f; background: linear-gradient(115deg, var(--accent), #efffff); box-shadow: 0 14px 38px rgba(var(--accent-rgb), .2); }
.button svg { width: 18px; height: 18px; }

.hero-visual { position: relative; min-height: 600px; display: grid; place-items: center; isolation: isolate; }
.orbit { position: absolute; z-index: -1; width: min(500px, 95%); aspect-ratio: 1; border: 1px solid rgba(var(--accent-rgb), .2); border-radius: 50%; box-shadow: inset 0 0 70px rgba(var(--accent-2-rgb), .08); }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 15%; border: inherit; border-radius: inherit; }
.orbit::after { inset: 33%; }
.orbit i { position: absolute; left: 50%; top: 50%; width: 48%; height: 1px; transform-origin: left; background: linear-gradient(90deg, var(--accent), transparent); animation: orbit-sweep 9s linear infinite; }
@keyframes orbit-sweep { to { transform: rotate(360deg); } }

.mascot-art { width: min(460px, 100%); max-height: 610px; object-fit: contain; filter: drop-shadow(0 28px 38px rgba(0,0,0,.52)); animation: hover-art 5.5s ease-in-out infinite; }
@keyframes hover-art { 50% { transform: translateY(-9px); } }
.talk-card { position: absolute; left: -2%; top: 19%; z-index: 3; width: min(230px, 48%); padding: 14px 16px; border: 1px solid rgba(var(--accent-rgb), .27); border-radius: 18px 18px 4px 18px; color: #e8fbff; background: rgba(6, 23, 45, .88); box-shadow: var(--shadow); backdrop-filter: blur(14px); font-size: 13px; line-height: 1.6; transform: rotate(-2deg); transition: transform .2s ease; }
.talk-card.pop { transform: rotate(1deg) scale(1.05); }
.talk-card button { margin-top: 7px; border: 0; color: var(--accent); background: transparent; font-weight: 800; cursor: pointer; }

.vault-stage { width: min(480px, 100%); min-height: 560px; position: relative; display: grid; place-items: center; }
.vault-icon { position: relative; z-index: 3; width: 180px; height: 180px; border-radius: 44px; object-fit: cover; box-shadow: 0 30px 70px rgba(var(--accent-rgb), .3); animation: hover-art 5.5s ease-in-out infinite; }
.photo-card { position: absolute; width: 190px; overflow: hidden; border: 7px solid rgba(237, 245, 255, .92); border-bottom-width: 34px; border-radius: 13px; background: #fff; box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.photo-card img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.photo-card.one { left: 2%; top: 13%; transform: rotate(-10deg); }
.photo-card.two { right: 0; bottom: 12%; transform: rotate(9deg); }
.ai-tag { position: absolute; z-index: 4; padding: 10px 13px; border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 13px; color: var(--accent); background: rgba(8, 24, 48, .88); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; }
.ai-tag.one { right: 4%; top: 16%; }
.ai-tag.two { left: 1%; bottom: 18%; }

.section { padding: 88px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head .kicker { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .17em; }
.section-head h2 { margin-top: 8px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.section-head p { max-width: 430px; color: var(--muted); line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(13, 39, 72, .74), rgba(7, 22, 43, .76)); box-shadow: 0 16px 45px rgba(0,0,0,.18); transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .38); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #061522; background: linear-gradient(135deg, var(--accent), #efffff); font-size: 20px; }
.feature h3 { margin-top: 20px; font-size: 18px; }
.feature p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.carousel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(5, 17, 34, .68); box-shadow: var(--shadow); }
.carousel-track { display: flex; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.carousel-slide { flex: 0 0 100%; min-width: 0; display: grid; place-items: center; padding: 18px; }
.carousel-slide img { display: block; width: 100%; max-height: 660px; border-radius: 17px; object-fit: contain; }
.carousel-control { position: absolute; top: 50%; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--ink); background: rgba(3, 13, 29, .72); backdrop-filter: blur(12px); cursor: pointer; transform: translateY(-50%); transition: background .2s ease, transform .2s ease; }
.carousel-control:hover { background: rgba(var(--accent-rgb), .2); transform: translateY(-50%) scale(1.06); }
.carousel-control.prev { left: 14px; }
.carousel-control.next { right: 14px; }
.carousel-dots { position: absolute; left: 50%; bottom: 14px; z-index: 5; display: flex; gap: 7px; transform: translateX(-50%); }
.carousel-dot { width: 8px; height: 8px; border: 0; border-radius: 999px; background: rgba(255,255,255,.3); cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dot.active { width: 24px; background: var(--accent); }

.download-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 34px; padding: 34px; border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 28px; background: linear-gradient(130deg, rgba(var(--accent-2-rgb), .15), rgba(var(--accent-rgb), .06)); box-shadow: var(--shadow); }
.download-panel::after { content: ""; position: absolute; right: -100px; bottom: -160px; width: 350px; aspect-ratio: 1; border: 1px solid rgba(var(--accent-rgb), .12); border-radius: 50%; box-shadow: inset 0 0 80px rgba(var(--accent-rgb), .07); }
.file-info { position: relative; z-index: 2; }
.file-info .label { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.file-info h3 { margin-top: 9px; font-size: clamp(24px, 3vw, 34px); }
.file-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.file-meta b { color: var(--ink); }
.file-hash { margin-top: 17px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(0,0,0,.15); }
.file-hash span { display: block; margin-bottom: 5px; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.file-hash code { display: block; overflow-wrap: anywhere; color: #b8c6da; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 10px; line-height: 1.55; }
.download-actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.download-actions .button { white-space: nowrap; }
.hash-help { margin-top: 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); background: rgba(255,255,255,.03); }
.hash-help summary { color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.hash-help p { margin-top: 11px; font-size: 12px; line-height: 1.7; }
.hash-help code { display: block; margin-top: 9px; padding: 10px 12px; overflow-x: auto; border-radius: 10px; color: var(--accent); background: rgba(0,0,0,.2); font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11px; white-space: nowrap; }
.download-inspector-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; margin-top: 18px; padding: 20px 28px; border: 1px solid rgba(var(--accent-rgb), .18); border-radius: 22px; background: linear-gradient(125deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-2-rgb), .07)); }
.download-inspector-card::after { content: ""; position: absolute; right: -70px; top: -90px; width: 210px; aspect-ratio: 1; border: 1px solid rgba(var(--accent-rgb), .12); border-radius: 50%; }
.download-inspector-card img { position: relative; z-index: 1; justify-self: center; width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.34)); }
.download-inspector-card > div { position: relative; z-index: 1; }
.download-inspector-card .kicker { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.download-inspector-card h3 { margin-top: 6px; font-size: 21px; }
.download-inspector-card p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.install-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.step { padding: 18px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.035); font-size: 13px; line-height: 1.6; }
.step b { display: block; width: 27px; height: 27px; margin-bottom: 12px; border-radius: 9px; display: grid; place-items: center; color: #061522; background: var(--accent); }

footer { position: relative; z-index: 1; overflow: hidden; margin-top: 70px; border-top: 1px solid var(--line); }
footer::after { content: ""; position: absolute; right: max(22px, calc((100vw - 1120px) / 2)); bottom: -7px; width: 82px; height: 76px; background: url("mascot/whale-guide-v1.webp") center / contain no-repeat; opacity: .72; filter: drop-shadow(0 10px 16px rgba(0,8,30,.4)); pointer-events: none; transform: rotate(-5deg); }
.footer-inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--faint); font-size: 13px; }
.footer-inner p:last-child { padding-right: 92px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 56px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { min-height: 560px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .download-panel { grid-template-columns: 1fr; }
  .download-actions { justify-self: stretch; }
  .install-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shell, .nav-inner { width: min(100% - 26px, 1120px); }
  .nav-inner { min-height: 64px; }
  .brand { font-size: 14px; }
  .brand small { display: none; }
  .nav-link:not(.primary) { display: none; }
  .hero { gap: 6px; padding: 46px 0 38px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1; padding-inline: 13px; }
  .hero-visual { min-height: 480px; }
  .mascot-art { max-height: 500px; }
  .talk-card { left: 0; top: 17%; width: 51%; padding: 12px; font-size: 11px; }
  .vault-stage { min-height: 440px; }
  .vault-icon { width: 135px; height: 135px; border-radius: 34px; }
  .photo-card { width: 145px; }
  .section { padding: 68px 0; }
  .carousel { border-radius: 22px; }
  .carousel-slide { padding: 8px; }
  .carousel-control { width: 38px; height: 38px; }
  .download-panel { padding: 24px 18px; text-align: center; }
  .file-meta { justify-content: center; }
  .download-actions { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .download-inspector-card { grid-template-columns: 94px 1fr; gap: 14px; padding: 16px; text-align: left; }
  .download-inspector-card img { width: 92px; height: 92px; }
  .download-inspector-card h3 { font-size: 17px; }
  footer::after { right: 5px; width: 68px; height: 62px; opacity: .62; }
  .footer-inner { flex-direction: column; justify-content: center; padding-right: 64px; text-align: center; }
  .footer-inner p:last-child { padding-right: 0; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
