/* Design Theory homepage — the Liquid Glass hero (from the previous homepage), scoped to .hero-glass
   so the clean sections below keep the shared design. Works with /assets/home/liquid-glass.js. */
.hero-glass {
  --lg-tint: rgba(255, 255, 255, 0.16);
  --lg-tint-clear: rgba(255, 255, 255, 0.08);
  --lg-ink: #1D1D1F;
  --lg-rim: rgba(255, 255, 255, 0.95);
  --lg-rim-soft: rgba(255, 255, 255, 0.28);
  --lg-inset: inset 0 1px 0.5px rgba(255, 255, 255, 0.75), inset 0 -1px 0.5px rgba(255, 255, 255, 0.22);
  --lg-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  --lg-fallback-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.2));
  --lg-solid: rgba(250, 250, 252, 0.94);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="dark"] .hero-glass {
  --lg-tint: rgba(40, 40, 44, 0.22);
  --lg-tint-clear: rgba(255, 255, 255, 0.04);
  --lg-ink: #F5F5F7;
  --lg-rim: rgba(255, 255, 255, 0.42);
  --lg-rim-soft: rgba(255, 255, 255, 0.04);
  --lg-inset: inset 0 1px 0.5px rgba(255, 255, 255, 0.28), inset 0 -1px 0.5px rgba(255, 255, 255, 0.08);
  --lg-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
  --lg-fallback-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  --lg-solid: rgba(28, 28, 30, 0.96);
}

/* glass material */
.hero-glass .lg { position: relative; isolation: isolate; color: var(--lg-ink); background: var(--lg-tint); box-shadow: var(--lg-inset), var(--lg-shadow); --lx: 30%; --ly: 0%; }
.hero-glass .lg--clear { background: var(--lg-tint-clear); }
.hero-glass .lg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 0; opacity: .85;
  background: linear-gradient(155deg, var(--lg-rim), var(--lg-rim-soft) 26%, transparent 50%, var(--lg-rim-soft) 74%, var(--lg-rim));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero-glass .lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; mix-blend-mode: plus-lighter;
  background: radial-gradient(120% 90% at var(--lx) var(--ly), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 46%); }
[data-theme="dark"] .hero-glass .lg::after { background: radial-gradient(120% 90% at var(--lx) var(--ly), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 46%); }
html.lg-fallback .hero-glass .lg { background: var(--lg-fallback-fill);
  -webkit-backdrop-filter: blur(5px) saturate(190%) brightness(1.05); backdrop-filter: blur(5px) saturate(190%) brightness(1.05);
  box-shadow: var(--lg-inset), inset 0 10px 18px -12px rgba(255, 255, 255, 0.5), inset 0 -12px 20px -14px rgba(0, 0, 0, 0.18), var(--lg-shadow); }
html.lg-fallback .hero-glass .lg--clear { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)); }
html[data-theme="dark"].lg-fallback .hero-glass .lg--clear { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)); }
html.lg-solid .hero-glass .lg { background: var(--lg-solid); }
.hero-glass .lg > .lg-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-repeat: no-repeat; pointer-events: none; }
html.lg-fallback .hero-glass .lg.lg-cloned { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lg-clone-tint, var(--lg-tint-clear)); box-shadow: var(--lg-inset), var(--lg-shadow); }

/* layout */
.hero-glass { position: relative; min-height: max(720px, 100svh); display: flex; align-items: center; overflow: hidden; padding: 120px 0 72px; }
.hero-glass .hero-wallpaper { position: absolute; inset: 0; background: var(--wallpaper) 70% 60% / cover no-repeat; transition: opacity .4s; }
.hero-glass .hero-wallpaper::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); }
.hero-glass .hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-glass .eyebrow { margin: 0 0 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--blue); }
.hero-glass h1 { font: 600 clamp(44px, 6.4vw, 80px)/1.05 var(--font-display); letter-spacing: -0.02em; max-width: 11.5em; margin: 0 0 20px; }
.hero-glass .lead { margin: 0 0 32px; max-width: 34em; color: var(--label-2); font-size: clamp(19px, 2vw, 21px); line-height: 1.38; letter-spacing: -0.02em; }
.hero-glass .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-glass .btn { border-radius: 999px; font-weight: 600; letter-spacing: -0.02em; transition: background-color .2s, transform .4s var(--ease-spring), box-shadow .2s; }
.hero-glass .btn:active { transform: scale(1.05); }
.hero-glass .btn > * { position: relative; z-index: 1; }
.hero-glass .btn-glass { color: var(--lg-ink); }
.hero-glass .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--label-2); font-size: 15px; }
.hero-glass .facts li { display: flex; align-items: center; gap: 7px; }
.hero-glass .facts li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* draggable glass widgets */
.hero-glass .hero-stage { position: relative; height: 460px; }
.hero-glass .widget { position: absolute; padding: 18px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; will-change: transform; }
.hero-glass .widget.is-dragging { cursor: grabbing; z-index: 5; }
.hero-glass .widget > * { position: relative; z-index: 1; }
.hero-glass .widget p { margin: 0; }
.hero-glass .widget-notify { top: 30px; left: 4%; width: min(340px, 92%); border-radius: 26px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.hero-glass .app-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--surface); color: var(--label); box-shadow: 0 0 0 .5px var(--sep), 0 1px 3px rgba(0, 0, 0, .08); }
.hero-glass .app-icon svg { width: 34px; height: 34px; display: block; }
.hero-glass .w-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: color-mix(in srgb, var(--lg-ink) 65%, transparent); }
.hero-glass .w-meta strong { color: var(--lg-ink); font-weight: 600; }
.hero-glass .w-title { font-weight: 600; font-size: 15px; margin-top: 2px; }
.hero-glass .w-body { font-size: 15px; line-height: 1.33; color: color-mix(in srgb, var(--lg-ink) 80%, transparent); }
.hero-glass .widget-ring { top: 190px; left: 8%; width: 170px; height: 170px; border-radius: 38px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-glass .ring { position: absolute; top: 14px; right: 14px; width: 54px; height: 54px; rotate: -90deg; }
.hero-glass .ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.hero-glass .ring-track { stroke: color-mix(in srgb, var(--lg-ink) 14%, transparent); }
.hero-glass .ring-fill { stroke: var(--green); stroke-dasharray: 163.4; stroke-dashoffset: 40; }
.hero-glass .w-big { font: 700 40px/1 var(--font-display); letter-spacing: -0.03em; }
.hero-glass .w-big small { font-size: 17px; font-weight: 600; margin-left: 2px; letter-spacing: -0.01em; }
.hero-glass .w-label { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--lg-ink) 65%, transparent); margin-top: 4px; }
.hero-glass .widget-stat { top: 205px; left: 52%; width: 190px; height: 190px; border-radius: 38px; }
.hero-glass .widget-stat .w-label { margin: 0 0 4px; }
.hero-glass .bars { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 64px; display: flex; align-items: flex-end; gap: 6px; }
.hero-glass .bars i { flex: 1; height: var(--h); border-radius: 4px; background: var(--blue); opacity: .85; }
.hero-glass .bars i:last-child { opacity: 1; }
.hero-glass .stage-hint { position: absolute; bottom: 8px; left: 8%; margin: 0; font-size: 13px; font-weight: 500; color: var(--label-3); }
.hero-glass .stage-hint::before { content: "↔ "; }

/* the first clean section sits snugly under the hero's fade */
.hero-glass + .section { padding-top: 24px; }

@media (max-width: 980px) {
  .hero-glass { min-height: 0; padding-top: 120px; }
  .hero-glass .hero-inner { grid-template-columns: 1fr; }
  .hero-glass .hero-stage { height: 420px; max-width: 560px; }
}
@media (max-width: 720px) {
  .hero-glass { padding: 100px 0 40px; }
  .hero-glass h1 { font-size: clamp(38px, 11vw, 44px); }
  .hero-glass .actions > .btn { flex: 1 1 100%; }
  .hero-glass .hero-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-glass .widget { position: relative; inset: auto; cursor: default; }
  .hero-glass .widget-notify { grid-column: 1 / -1; width: 100%; }
  .hero-glass .widget-ring, .hero-glass .widget-stat { width: auto; height: auto; aspect-ratio: 1; }
  .hero-glass .stage-hint { display: none; }
}
