/* ============================================================
   FolderShare — Liquid Glass design system
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
  --bg: #06070b;
  --bg-2: #0a0c13;
  --text: #f7f8ff;
  --muted: rgba(228, 234, 255, 0.62);
  --faint: rgba(228, 234, 255, 0.38);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --glass: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.11);
  --glass-3: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  --accent: #8bd7ff;
  --accent-2: #c7b8ff;
  --accent-3: #ffc6dd;
  --accent-4: #9af2d8;
  --accent-ink: #06111c;
  --danger: #ff7b8a;
  --success: #77e2b0;
  --radius: 28px;
  --radius-sm: 18px;
  --radius-xs: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #eef1f7;
  --bg-2: #f7f8fc;
  --text: #10131a;
  --muted: rgba(20, 26, 40, 0.64);
  --faint: rgba(20, 26, 40, 0.40);
  --line: rgba(14, 20, 35, 0.10);
  --line-strong: rgba(14, 20, 35, 0.18);
  --glass: rgba(255, 255, 255, 0.46);
  --glass-2: rgba(255, 255, 255, 0.62);
  --glass-3: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.82);
  --glass-shadow: 0 26px 70px rgba(30, 50, 90, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --accent: #1a7fd4;
  --accent-2: #7056e8;
  --accent-3: #d84c92;
  --accent-4: #0f9f83;
  --accent-ink: #ffffff;
  color-scheme: light;
}
::selection { background: rgba(139, 215, 255, 0.32); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(160, 180, 210, 0.25); border: 3px solid transparent; background-clip: padding-box; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- ambient background ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -15%, rgba(58, 102, 180, 0.26), transparent 62%),
    radial-gradient(90% 80% at 100% 0%, rgba(122, 78, 170, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, var(--bg) 100%);
}
html[data-theme="light"] .scene {
  background:
    radial-gradient(120% 90% at 50% -15%, rgba(120, 180, 255, 0.34), transparent 62%),
    radial-gradient(90% 80% at 100% 0%, rgba(200, 160, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, var(--bg) 60%);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  mix-blend-mode: screen;
  will-change: transform;
}
html[data-theme="light"] .aurora { mix-blend-mode: multiply; opacity: 0.24; filter: blur(110px); }
.aurora.a { width: 62vw; height: 62vw; left: -18vw; top: -24vw; background: radial-gradient(circle at 40% 40%, #2f7bff 0%, rgba(47,123,255,0.25) 38%, transparent 68%); animation: drift-a 26s var(--ease-soft) infinite alternate; }
.aurora.b { width: 55vw; height: 55vw; right: -18vw; top: -10vw; background: radial-gradient(circle at 50% 50%, #9b6bff 0%, rgba(155,107,255,0.22) 40%, transparent 70%); animation: drift-b 32s var(--ease-soft) infinite alternate; }
.aurora.c { width: 50vw; height: 50vw; left: 22vw; bottom: -30vw; background: radial-gradient(circle at 50% 50%, #15c7b2 0%, rgba(21,199,178,0.18) 40%, transparent 70%); animation: drift-c 38s var(--ease-soft) infinite alternate; }
.aurora.d { width: 32vw; height: 32vw; right: 8vw; bottom: -12vw; background: radial-gradient(circle at 50% 50%, #ff86c8 0%, rgba(255,134,200,0.14) 38%, transparent 68%); animation: drift-d 30s var(--ease-soft) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(9vw, 7vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-8vw, 9vh, 0) scale(1.12); } }
@keyframes drift-c { to { transform: translate3d(6vw, -8vh, 0) scale(1.05); } }
@keyframes drift-d { to { transform: translate3d(-5vw, -5vh, 0) scale(1.16); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("noise.png");
  background-size: 180px 180px;
  opacity: 0.035;
  mix-blend-mode: overlay;
}
html[data-theme="light"] .grain { opacity: 0.025; mix-blend-mode: multiply; }

/* ---------- layout ---------- */
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 720px) { .container { width: calc(100% - 32px); } }
.section { position: relative; padding: clamp(76px, 9vw, 138px) 0; }
.section-tight { padding: clamp(48px, 5vw, 80px) 0; }
.stack-24 > * + * { margin-top: 24px; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.display { font-size: clamp(44px, 6.3vw, 86px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; }
.h2 { font-size: clamp(32px, 4.1vw, 56px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700; }
.h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; }
.lede { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.65; color: var(--muted); letter-spacing: -0.012em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #bfe7ff 28%, #d6c9ff 55%, #ffd4e6 78%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="light"] .text-gradient {
  background: linear-gradient(100deg, #0e1420 0%, #1a6ed0 30%, #7056e8 60%, #c03c88 82%, #0e1420 100%);
  -webkit-background-clip: text; background-clip: text;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 4vw, 54px); }
.section-head .h2 { max-width: 720px; }
.section-head .lede { max-width: 400px; padding-bottom: 6px; }
@media (max-width: 900px) { .section-head { display: block; } .section-head .lede { margin-top: 16px; max-width: 620px; } }

/* ---------- glass primitives ---------- */
.glass, .glass-strong, .glass-soft {
  position: relative;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, var(--glass-2), var(--glass));
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
  isolation: isolate;
}
.glass-strong { background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.055)); }
html[data-theme="light"] .glass-strong { background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.42)); }
.glass-soft { box-shadow: 0 18px 50px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.16); }
.glass::before, .glass-strong::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(420px circle at var(--gx, 30%) var(--gy, 0%), rgba(255,255,255,0.20), transparent 55%),
    linear-gradient(140deg, rgba(255,255,255,0.20), transparent 30%, transparent 70%, rgba(255,255,255,0.06));
  opacity: 0.9;
}
.glass::after, .glass-strong::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), inset 0 -1px 0 rgba(255,255,255,0.06), inset 1px 0 0 rgba(255,255,255,0.08);
  z-index: 2;
}
html[data-theme="light"] .glass::after, html[data-theme="light"] .glass-strong::after { box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), inset 0 -1px 0 rgba(255,255,255,0.5), inset 1px 0 0 rgba(255,255,255,0.6); }
.glass-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 24px rgba(0,0,0,0.18);
  font-size: 12.5px; color: var(--muted);
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.2s ease, border-color 0.35s ease;
  white-space: nowrap; user-select: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-primary {
  color: #080b12;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(233,241,255,0.86));
  box-shadow: 0 12px 34px rgba(150, 200, 255, 0.22), inset 0 1px 0 rgba(255,255,255,1), inset 0 -1px 0 rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-primary:hover { box-shadow: 0 18px 46px rgba(150, 200, 255, 0.34), inset 0 1px 0 #fff; }
html[data-theme="light"] .btn-primary { color: #fff; background: linear-gradient(180deg, #1b2537, #0c1220); border-color: rgba(0,0,0,0.4); box-shadow: 0 14px 36px rgba(16,20,35,0.22); }
.btn-glass {
  color: var(--text);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.26), 0 10px 26px rgba(0,0,0,0.18);
}
.btn-glass:hover { background: var(--glass-2); border-color: var(--line-strong); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 15.5px; }
.btn .arrow { font-size: 16px; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-quiet { color: var(--muted); border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.link-quiet:hover { color: var(--text); border-color: var(--line-strong); }

/* ---------- inputs ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 0 14px;
  border-radius: 14px; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(139,215,255,0.55); box-shadow: 0 0 0 4px rgba(139,215,255,0.12), inset 0 1px 0 rgba(255,255,255,0.2); }
html[data-theme="light"] .input, html[data-theme="light"] .select, html[data-theme="light"] .textarea { background: rgba(255,255,255,0.62); }

/* ---------- reveal / misc ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
