/* ============================================================
   Ultra Open Client — Liquid Glass landing theme
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-elevated: #0b0d14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: rgba(255, 255, 255, 0.96);
  --text-dim: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);

  --accent-1: #8a6bff;
  --accent-2: #4ec9ff;
  --accent-3: #ff6eb4;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --maxw: 1120px;

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-ring: 0 0 0 1px var(--border) inset;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
  overflow-x: hidden;
}

/* ---------- Ambient aurora backdrop (covers the whole page) ---------- */

body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(
      ellipse 45vmax 35vmax at 20% -5%,
      rgba(138, 107, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      ellipse 40vmax 30vmax at 85% 5%,
      rgba(78, 201, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      ellipse 35vmax 25vmax at 50% 40%,
      rgba(255, 110, 180, 0.08),
      transparent 60%
    );
  filter: blur(50px) saturate(130%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
  );
  background-size: 2px 2px;
  mix-blend-mode: overlay;
  opacity: 0.7;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.25rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 600;
}

p {
  margin: 0;
  color: var(--text-dim);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

*:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout containers ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding-bottom: 80px;
}

.section {
  padding: 96px 0;
}

.section-narrow .container {
  max-width: 780px;
  text-align: center;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin-top: 16px;
}

.section-narrow .section-lead {
  margin: 16px auto 0;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(5, 6, 10, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand .brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: conic-gradient(
    from 210deg,
    var(--accent-1),
    var(--accent-2),
    var(--accent-3),
    var(--accent-1)
  );
  filter: blur(0.3px);
  box-shadow:
    0 0 18px rgba(138, 107, 255, 0.5),
    inset 0 0 8px rgba(255, 255, 255, 0.25);
}

.nav nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.95rem;
}

.nav nav a {
  color: var(--text-dim);
}

.nav nav a:hover,
.nav nav a[aria-current="page"] {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.hero h1 {
  margin-top: 24px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.78) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 680px;
  margin: 24px auto 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.cta-row {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 30px -10px rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  color: #000;
  background: #f4f4f4;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.24);
}

/* ---------- Glass card grid ---------- */

.card-grid {
  margin-top: 56px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.glass-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.06) 80%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.glass-card h3 {
  margin-bottom: 10px;
}

.glass-card p {
  font-size: 0.96rem;
  color: var(--text-dim);
}

/* ---------- Document pages (support / privacy) ---------- */

.doc {
  padding: 80px 0 40px;
}

.doc .container {
  max-width: 780px;
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.doc h2 {
  margin-top: 56px;
  font-size: 1.5rem;
}

.doc h3 {
  margin-top: 28px;
  font-size: 1.1rem;
  color: var(--text);
}

.doc p,
.doc li {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.65;
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  padding-left: 0;
  list-style: none;
  margin: 14px 0 0;
}

.doc ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
}

.doc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.doc .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.doc .callout {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.doc .callout strong {
  color: var(--text);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 40px;
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.footer-inner p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-inner .small {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 560px;
}

.footer-inner a {
  color: var(--text-dim);
}

.footer-inner a:hover {
  color: var(--text);
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 80px 0 56px;
  }

  .nav nav {
    gap: 16px;
    font-size: 0.9rem;
  }

  .nav nav a.hide-mobile {
    display: none;
  }

  .glass-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
