/* glassveil.app: same look as the apps (near-black ground, teal glass + warm sun glow, frosted panels). */
:root {
  --ground: #05070b;
  --panel: rgba(14, 19, 27, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --fg: #e9eff4;
  --strong: #fff;
  --mut: #93a2b2;
  --glass: #7fe3cc;
  --glow: linear-gradient(135deg, #8ff0da 0%, #64c6f0 100%);
  --on-glass: #04201b;
  --sun: #ffb36b;
  --f-ui: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fg);
  font: 17px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at 8% -10%, rgba(111, 214, 191, 0.14), transparent 60%),
    radial-gradient(900px 640px at 105% 40%, rgba(255, 166, 92, 0.10), transparent 60%),
    var(--ground);
  background-attachment: fixed;
}
a { color: var(--glass); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

header.top { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
header.top a.brand { display: flex; align-items: center; gap: 10px; color: var(--strong); text-decoration: none; font: 650 20px var(--f-display); letter-spacing: -0.01em; }
header.top img { width: 34px; height: 34px; border-radius: 9px; }
header.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
header.top nav a { color: var(--mut); text-decoration: none; }
header.top nav a:hover { color: var(--fg); }

.hero { text-align: center; padding: 70px 0 40px; }
.hero img.mark { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(127, 227, 204, 0.18); }
h1 { font: 700 clamp(36px, 6vw, 58px)/1.08 var(--f-display); letter-spacing: -0.03em; color: var(--strong); margin: 28px 0 16px; }
.lead { font-size: 20px; color: var(--mut); max-width: 620px; margin: 0 auto; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 32px 0 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 16px var(--f-ui); text-decoration: none; border: 1px solid var(--line); color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.btn.primary { background: var(--glow); color: var(--on-glass); border: 0; box-shadow: 0 8px 30px rgba(127, 227, 204, 0.25); }
.small { font-size: 14px; color: var(--mut); }
.btn.soon { cursor: default; }
.btn.primary.soon { box-shadow: 0 8px 30px rgba(127, 227, 204, 0.18); }

h2 { font: 650 30px/1.2 var(--f-display); letter-spacing: -0.02em; color: var(--strong); margin: 64px 0 18px; }
h3 { font: 650 19px/1.3 var(--f-display); color: var(--strong); margin: 0 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.card p { margin: 0; color: var(--mut); font-size: 16px; }
/* Feature tiles behind frosted glass: the title sits on top, the rest is veiled until you hover (or tab
   to / tap) a tile; then the frost wipes away left to right, like the glass sheet sweeping across the
   icon, with a light streak running ahead of it. */
.veil { position: relative; overflow: hidden; outline: none; transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s; }
.veil h3 { position: relative; z-index: 2; }
.veil p { transition: color 0.5s; }
.veil::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(127, 227, 204, 0.07) 70%, rgba(255, 179, 107, 0.06) 100%),
    rgba(14, 19, 27, 0.35);
  -webkit-backdrop-filter: blur(9px) saturate(1.4);
  backdrop-filter: blur(9px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.7s;
}
/* the streak of light at the frost's edge */
.veil::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 22%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg) translateX(0);
  opacity: 0;
}
.veil:hover, .veil:focus-visible, .veil:focus {
  border-color: color-mix(in srgb, var(--glass) 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 40px rgba(127, 227, 204, 0.10);
  transform: translateY(-2px);
}
.veil:hover::after, .veil:focus::after, .veil.clear::after { clip-path: inset(0 0 0 100%); opacity: 0.6; }
.veil:hover::before, .veil:focus::before, .veil.clear::before { animation: streak 0.7s cubic-bezier(0.65, 0, 0.35, 1); }
.veil:hover p, .veil:focus p, .veil.clear p { color: #c9d4de; }
/* phones (no hover): a script adds .clear as each tile scrolls into view; no lift or glow there */
.veil.clear { border-color: color-mix(in srgb, var(--glass) 25%, transparent); }
@keyframes streak {
  0% { opacity: 0; transform: skewX(-18deg) translateX(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: skewX(-18deg) translateX(620%); }
}
@media (prefers-reduced-motion: reduce) {
  .veil, .veil::after { transition: opacity 0.2s; }
  .veil:hover::after, .veil:focus::after, .veil.clear::after { clip-path: none; opacity: 0; }
  .veil:hover::before, .veil:focus::before, .veil.clear::before { animation: none; }
  .veil:hover, .veil:focus { transform: none; }
}

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); color: var(--on-glass); font-weight: 700; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--strong); }
details p { color: var(--mut); margin: 10px 0 0; }

article h1 { font-size: clamp(32px, 5vw, 44px); margin-top: 40px; }
article h2 { font-size: 24px; margin-top: 40px; }
article p, article li { color: #c9d4de; }
article .updated { color: var(--mut); font-size: 15px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--glass); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }

footer { margin: 90px 0 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--mut); }
footer a { color: var(--mut); }
