/* Serene marketing — liquid-glass-css site layer (pairs with glass.css) */

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

:root,
[data-theme="dark"] {
  --bg: #0a0812;
  --text: #f4f2fb;
  --text-2: #a8a0c0;
  --text-3: #6e6688;
  --accent: #8b7cf6;
  --accent-2: #67e8f9;
  --glow: rgba(139, 124, 246, 0.35);
  --orb-1: rgba(139, 124, 246, 0.28);
  --orb-2: rgba(103, 232, 249, 0.16);
  --orb-3: rgba(192, 132, 252, 0.18);
  --hairline: rgb(255 255 255 / 0.1);
  --font: 'Outfit', system-ui, sans-serif;
  --max: 1080px;
  --pad: 22px;
  color-scheme: dark;
}

[data-theme="light"],
[data-glass-theme="light"] {
  --bg: #e8eaf8;
  --text: #1e1a32;
  --text-2: #5c5678;
  --text-3: #8a84a4;
  --accent: #7c6aef;
  --accent-2: #22d3ee;
  --glow: rgba(124, 106, 239, 0.28);
  --orb-1: rgba(124, 106, 239, 0.22);
  --orb-2: rgba(34, 211, 238, 0.16);
  --orb-3: rgba(168, 85, 247, 0.16);
  --hairline: rgb(0 0 0 / 0.1);
  color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.35s ease;
}

::selection { background: var(--accent); color: #fff; }

/* Ambient — glass needs rich content behind it */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: min(720px, 55vw); height: min(720px, 55vw);
  top: -18%; left: -12%;
  background: var(--orb-1);
}

.orb-b {
  width: min(520px, 40vw); height: min(520px, 40vw);
  bottom: 5%; right: -10%;
  background: var(--orb-2);
  animation-delay: -6s;
}

.orb-c {
  width: min(400px, 30vw); height: min(400px, 30vw);
  top: 42%; left: 45%;
  background: var(--orb-3);
  animation-delay: -12s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.06); }
  66% { transform: translate(-5%, 3%) scale(0.96); }
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] .noise { opacity: 0.02; }

.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

main {
  position: relative;
  z-index: 2;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: max(10px, env(safe-area-inset-top)) var(--pad) 10px;
}

.site-header .glass-nav {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  top: auto;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  justify-content: space-between;
  padding: 10px 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #4c51c6, #5a6fe3 55%, #2f9ad1);
}

.brand-mark img { width: 24px; height: 24px; object-fit: contain; }

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgb(var(--glass-tint) / 0.12);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: none;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  place-items: center;
  background: transparent;
}

.nav-toggle svg { width: 20px; height: 20px; }

/* ——— Hero ——— */
.hero {
  padding: clamp(36px, 7vw, 64px) 0 clamp(40px, 8vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), #c084fc, var(--accent-2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 6s ease infinite;
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  color: var(--text-2);
  max-width: 440px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  text-decoration: none;
  min-height: 48px;
  padding: 0.7em 1.35em;
  font-weight: 600;
  font-size: 0.98rem;
}

.btn-primary,
.glass-button--prominent.btn-primary {
  color: #fff;
  --glass-tint: 139 124 246;
  --glass-border: rgb(139 124 246 / 0.5);
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .glass-button--prominent.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6a58eb, #5240d4);
  border-color: rgb(82 64 212 / 0.65);
  box-shadow:
    0 10px 28px rgb(82 64 212 / 0.28),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .glass-button--prominent.btn-primary:hover {
  background: linear-gradient(135deg, #7a69f0, #5d4adb);
  filter: none;
}

[data-theme="light"] .btn-primary span,
[data-theme="light"] .glass-button--prominent.btn-primary span {
  color: #fff;
}

.btn-ghost { color: var(--text); }

.hero-meta {
  font-size: 0.86rem;
  color: var(--text-3);
}

.hero-meta .tabular {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-2);
}

.logo-stage {
  display: grid;
  place-items: center;
  min-height: clamp(280px, 48vw, 400px);
  position: relative;
}

.logo-aura {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(12px);
  animation: pulse 4.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}

.logo-core {
  --glass-radius: 36px;
  width: min(320px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

.lotus-spin {
  position: relative;
  z-index: 1;
  width: 76%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 12px 28px var(--glow));
}

.lotus-mark {
  width: 100%;
  height: auto;
  overflow: visible;
  animation: float 5.5s ease-in-out infinite;
}

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

.lotus-mark .petal {
  transform-box: view-box;
  transform-origin: 128px 216px;
  transform: scale(0.2);
  opacity: 0;
  will-change: transform, opacity;
}

.logo-hint {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Sections ——— */
.section {
  padding: clamp(48px, 8vw, 80px) 0;
}

.section-head {
  max-width: 520px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-head p { color: var(--text-2); font-size: 1.02rem; }

/* One glass panel for features (not 6 glass cards) */
.feature-panel {
  --glass-radius: 22px;
  overflow: hidden;
  padding: 0;
}

.feature-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px clamp(16px, 3vw, 24px);
  position: relative;
  z-index: 1;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--hairline);
}

.feature-row .ic {
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.feature-row h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.feature-row p {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Screenshot carousel — glass on image only; title rides with the slide */
.section--showcase {
  position: relative;
  z-index: 2;
  padding-left: 0;
  padding-right: 0;
}

.section--showcase .section-head {
  padding: 0 var(--pad);
}

.shot-carousel {
  --shot-gap: clamp(16px, 2.5vw, 28px);
  --shot-pad: max(var(--pad), calc((100vw - min(1120px, 94vw)) / 2));
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--shot-pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
}

.shot-carousel::-webkit-scrollbar { display: none; }

.shot-track {
  display: flex;
  gap: var(--shot-gap);
  padding: 8px var(--shot-pad) 4px;
  width: max-content;
}

.shot-slide {
  flex: 0 0 min(92vw, 980px);
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shot-frame {
  --glass-radius: 22px;
  padding: clamp(10px, 1.4vw, 16px);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .shot-slide:hover .shot-frame { transform: translateY(-4px); }
}

.shot-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1919 / 1000;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  cursor: zoom-in;
}

.shot-slide figcaption {
  text-align: center;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 0 8px;
}

.shot-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0 var(--pad);
}

.shot-dots button {
  appearance: none;
  border: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
  background: var(--text-3);
  opacity: 0.45;
  cursor: pointer;
  transition: width 0.22s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s ease, background 0.2s ease;
}

.shot-dots button.is-active {
  width: 22px;
  opacity: 1;
  background: var(--accent);
}

.privacy-strip {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
}

.privacy-strip svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Download CTA */
.download-block {
  --glass-radius: 26px;
  padding: clamp(28px, 5vw, 40px);
  text-align: center;
}

.download-block h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.download-block p {
  position: relative;
  z-index: 1;
  color: var(--text-2);
  margin-bottom: 20px;
}

.download-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
}

.site-footer .footer-bar,
.site-footer .glass {
  --glass-radius: 18px;
  padding: 20px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.footer-copy {
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .footer-copy {
  color: #c8c0e0;
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

.site-footer .links {
  display: flex;
  gap: 16px;
}

/* Lightbox */
#lightbox {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  z-index: 9999;
}

#lightbox.active { display: flex; }

#lightbox img {
  max-width: min(95%, 1100px);
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

/* ——— 404 ——— */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404 main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px) var(--pad);
  position: relative;
  z-index: 2;
}

.card-404 {
  --glass-radius: 26px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 36px);
}

.card-404 .logo-mini {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  --glass-radius: 20px;
  border-radius: var(--glass-radius);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

.card-404 .lotus-mark {
  width: 52px;
  animation: none;
  position: relative;
  z-index: 1;
}

.card-404 .code {
  font-size: clamp(4rem, 16vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), #c084fc, var(--accent-2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 6s ease infinite;
}

.card-404 h1 {
  margin-top: 8px;
  font-size: clamp(1.4rem, 4vw, 1.7rem);
  letter-spacing: -0.02em;
}

.card-404 > p {
  margin: 10px 0 26px;
  color: var(--text-2);
}

.theme-seg {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 20;
  display: inline-flex;
  padding: 4px;
  gap: 2px;
}

.theme-seg button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-2);
  width: 40px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.theme-seg button.active {
  background: var(--accent);
  color: #fff;
}

.theme-seg button svg { width: 16px; height: 16px; }

/* ——— Privacy ——— */
.page-privacy .doc {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 28px auto 56px;
  --glass-radius: 22px;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 36px);
}

.page-privacy h1 {
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.page-privacy .meta {
  color: var(--text-3);
  font-size: 0.92rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.page-privacy .prose {
  position: relative;
  z-index: 1;
  color: var(--text-2);
  font-size: clamp(1rem, 2.4vw, 1.05rem);
  line-height: 1.75;
}

.page-privacy .prose h2 {
  color: var(--text);
  font-size: 1.15rem;
  margin: 28px 0 8px;
  letter-spacing: -0.015em;
}

.page-privacy .prose ul { padding-left: 1.2em; margin: 8px 0; }
.page-privacy .prose a { color: var(--accent); }
.page-privacy .prose strong { color: var(--text); }

.nav-links--inline {
  display: flex !important;
  position: static !important;
  flex-direction: row !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .cta-row, .download-actions { justify-content: center; }
  .logo-stage { order: -1; min-height: 280px; }
  .logo-core { width: min(240px, 64vw); --glass-radius: 28px; }
  .shot-slide { flex-basis: min(94vw, 720px); }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 16px;
    z-index: 120;
  }

  .nav-links.is-open {
    display: flex;
    background: rgb(var(--glass-tint) / 0.55);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }

  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav-links.is-open {
      background: var(--glass-fill);
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    }
  }

  .site-header .glass-nav { position: relative; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }

  :root { --glass-blur: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .lotus-mark, .orb { animation: none !important; }
}
