/* ============================================
   Glintdesk — Liquid Glass Design System
   Shared across all pages
   ============================================ */

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

:root {
  --near-black: #1d1d1f;
  --ink-2: #3a3a44;
  --gray: #6e6e73;
  --ink-4: #a7a7b2;
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.14);
  --white: #ffffff;
  --page: #f3f1ee;
  --soft: #f5f5f7;
  --blue: #097ef9;
  --blue-hover: #0990ff;
  --blue-ink: #0660c4;
  --blue-light: rgba(9, 126, 249, 0.08);
  --success-bg: rgba(48, 209, 88, 0.14);
  --success-text: #0f6a2f;
  --info-bg: rgba(9, 126, 249, 0.08);
  --info-text: #093c73;
  --error-bg: rgba(255, 69, 58, 0.12);
  --error-text: #9b231d;
  --card-bg: rgba(255, 255, 255, 0.38);
  --card-bg-strong: rgba(255, 255, 255, 0.58);
  --card-stroke: rgba(255, 255, 255, 0.58);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--page);
  color: var(--near-black);
  line-height: 1.5;
  letter-spacing: -0.011em;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; }

/* ------------- animated background ------------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(1220px 840px at 10% -12%, rgba(172, 210, 255, 0.96) 0%, transparent 56%),
    radial-gradient(1020px 760px at 92% -2%, rgba(202, 226, 255, 0.92) 0%, transparent 54%),
    radial-gradient(960px 860px at 52% 112%, rgba(229, 240, 255, 0.88) 0%, transparent 56%),
    linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
}
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.12; mix-blend-mode: overlay; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(88px); opacity: 0.78; will-change: transform;
  animation: float 22s ease-in-out infinite;
}
.blob.b1 { width: 680px; height: 680px; background: #b8d7ff; left: -180px; top: -160px; animation-duration: 24s; }
.blob.b2 { width: 560px; height: 560px; background: #79b8ff; right: -160px; top: -80px; animation-delay: -6s; animation-duration: 26s; }
.blob.b3 { width: 620px; height: 620px; background: #d7e7ff; left: 32%; top: 38%; animation-delay: -12s; animation-duration: 30s; }
.blob.b4 { width: 420px; height: 420px; background: #9dc8ff; right: 18%; bottom: -120px; animation-delay: -3s; }
.blob.b5 { width: 380px; height: 380px; background: #f7fbff; left: -80px; bottom: 8%; animation-delay: -9s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(0.96); }
}

/* ------------- glass primitive ------------- */
.glass {
  position: relative;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  backdrop-filter: blur(28px) saturate(1.7);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 -1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 30px -10px rgba(20, 40, 90, 0.1),
    0 30px 60px -30px rgba(20, 40, 90, 0.16);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0) 38%);
  pointer-events: none; mix-blend-mode: screen;
}
.glass-strong { background: var(--card-bg-strong); }
.glass > * { position: relative; }
.glass .glow, .glass .edge-glow {
  pointer-events: none; position: absolute; inset: 0;
  border-radius: inherit; opacity: 0;
  transition: opacity 220ms ease;
}
.glass .glow {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(9, 126, 249, 0.18), rgba(9, 126, 249, 0) 60%);
}
.glass .edge-glow {
  padding: 1px;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass:hover .glow, .glass:hover .edge-glow { opacity: 1; }

/* ------------- navbar ------------- */
.navbar {
  position: sticky; top: 18px; z-index: 1000;
  margin: 18px auto 0; max-width: 1120px;
  padding: 8px 10px 8px 18px; height: 60px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; border-radius: 10px; }
.logo-text { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  padding: 9px 14px; border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:not(.nav-cta):hover { background: rgba(255, 255, 255, 0.62); color: var(--near-black); }
.nav-cta {
  background: linear-gradient(180deg, #1a8cff 0%, #0a6ff0 100%);
  color: var(--white) !important; font-weight: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 8px 18px -8px rgba(10, 111, 240, 0.6);
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: linear-gradient(180deg, #1a8cff 0%, #0a6ff0 100%);
  color: var(--white) !important;
  opacity: 1;
}
.auth-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  flex-shrink: 0;
}
.auth-slot:empty { display: none; }
.auth-action {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}
.auth-menu {
  position: relative;
}
.auth-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 1px 0 rgba(255,255,255,0.78) inset, 0 10px 18px -14px rgba(20, 40, 90, 0.3);
}
.auth-summary::-webkit-details-marker { display: none; }
.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a8cff 0%, #0a6ff0 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.auth-label {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: var(--near-black);
}
.auth-membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 111, 240, 0.1);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.auth-membership-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.auth-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 14px;
  display: grid;
  gap: 8px;
  z-index: 20;
}
.auth-dropdown-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.auth-dropdown a,
.auth-dropdown button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.auth-dropdown a:hover,
.auth-dropdown button:hover {
  background: rgba(255,255,255,0.72);
  color: var(--near-black);
}

/* ------------- containers ------------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px 80px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; }

/* ------------- buttons ------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.button-primary {
  background: linear-gradient(180deg, #1a8cff 0%, #0a6ff0 100%);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 8px 20px -8px rgba(10, 111, 240, 0.6);
}
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset, 0 12px 28px -8px rgba(10, 111, 240, 0.7); }
.button-secondary {
  background: rgba(255, 255, 255, 0.55); color: var(--near-black);
  border-color: rgba(29, 29, 31, 0.08);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.button-secondary:hover { background: rgba(255, 255, 255, 0.8); transform: translateY(-1px); }
.button-dark {
  background: #0b0b0f; color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 10px 24px -10px rgba(0,0,0,0.5);
}
.button-dark:hover { transform: translateY(-1px); }

/* ------------- typography ------------- */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 6px 18px -8px rgba(30, 40, 80, 0.2);
  margin-bottom: 22px;
}
.eyebrow-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,0.2);
}
.eyebrow-pill .chip {
  padding: 3px 10px; border-radius: 999px;
  background: rgba(29,29,31,0.06);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-2);
}
.display {
  font-weight: 600;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98; letter-spacing: -0.035em;
}
.display em {
  font-family: var(--font-serif); font-style: italic;
  font-weight: 400; letter-spacing: -0.02em;
}
.section-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04; letter-spacing: -0.028em;
  font-weight: 600; margin-bottom: 12px;
}
.section-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
}
.section-subtitle {
  font-size: 17px; line-height: 1.6;
  color: var(--ink-2); max-width: 56ch;
}
.section { padding-top: 60px; }
.section-header { max-width: 760px; margin-bottom: 30px; }

/* ------------- footer ------------- */
.footer { margin-top: 80px; padding: 0; }
.footer-card { border-radius: 28px; padding: 32px 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 28px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-tagline {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-2); margin-bottom: 16px;
}
.footer-company {
  font-size: 12px; line-height: 1.7;
  color: var(--gray); font-style: normal;
}
.footer-section h5 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray); margin: 0 0 14px; font-weight: 500;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 8px; }
.footer-section a {
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: color 0.18s ease;
}
.footer-section a:hover { color: var(--near-black); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--gray); flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a {
  text-decoration: none; color: var(--gray);
  font-family: inherit; letter-spacing: inherit;
}
.footer-bottom-links a:hover { color: var(--near-black); }

/* ------------- responsive ------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .navbar { margin: 12px 16px 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .auth-action { min-height: 40px; padding: 0 16px; }
  .auth-label { max-width: 110px; }
  .auth-summary { padding-right: 10px; }
  .auth-membership-badge { padding: 4px 8px; font-size: 10px; }
  main { padding: 0 16px 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none !important; }
  *, *::before, *::after { transition: none !important; }
}
