@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg-deep: #d8e6f4;
  --bg-mid: #eef5fb;
  --ink: #102033;
  --ink-soft: #243447;
  --muted: #5a6d82;
  --accent: #0b6bcb;
  --accent-soft: rgba(11, 107, 203, 0.14);
  --accent-ink: #ffffff;
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.44);
  --glass-tint: rgba(210, 232, 248, 0.22);
  --line: rgba(255, 255, 255, 0.62);
  --line-soft: rgba(16, 32, 51, 0.08);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(16, 32, 51, 0.04);
  --shadow: 0 10px 30px rgba(16, 40, 72, 0.08),
    0 2px 8px rgba(16, 40, 72, 0.04);
  --shadow-lift: 0 18px 40px rgba(16, 40, 72, 0.12),
    0 4px 12px rgba(16, 40, 72, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-ctrl: 16px;
  --blur: 22px;
  --blur-strong: 28px;
  --max: 720px;
  --font-display: "Sora", "Manrope", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-deep: #071018;
    --bg-mid: #0d1824;
    --ink: #edf3fb;
    --ink-soft: #d5e2f0;
    --muted: #9aadc0;
    --accent: #5bb0ff;
    --accent-soft: rgba(91, 176, 255, 0.16);
    --accent-ink: #041018;
    --glass: rgba(18, 30, 46, 0.36);
    --glass-strong: rgba(24, 38, 56, 0.52);
    --glass-tint: rgba(40, 72, 104, 0.22);
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(237, 243, 251, 0.1);
    --specular: inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.35),
      0 2px 8px rgba(0, 0, 0, 0.22);
    --shadow-lift: 0 22px 48px rgba(0, 0, 0, 0.42),
      0 4px 14px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg-mid);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

/* Atmospheric depth behind glass */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 8% -8%, rgba(11, 107, 203, 0.42), transparent 58%),
    radial-gradient(ellipse 75% 55% at 96% 4%, rgba(32, 168, 158, 0.34), transparent 52%),
    radial-gradient(ellipse 70% 50% at 48% 108%, rgba(90, 140, 200, 0.28), transparent 56%),
    radial-gradient(circle at 70% 40%, rgba(180, 210, 235, 0.35), transparent 40%),
    linear-gradient(165deg, var(--bg-deep), var(--bg-mid) 48%, #f4f8fc);
}

@media (prefers-color-scheme: dark) {
  .atmosphere {
    background:
      radial-gradient(ellipse 80% 55% at 12% -10%, rgba(91, 176, 255, 0.22), transparent 55%),
      radial-gradient(ellipse 70% 50% at 92% 8%, rgba(45, 180, 160, 0.14), transparent 50%),
      radial-gradient(ellipse 60% 45% at 50% 100%, rgba(40, 70, 110, 0.28), transparent 55%),
      linear-gradient(165deg, #050b12, var(--bg-mid) 50%, #101c2a);
  }
}

.atmosphere::before,
.atmosphere::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.85;
  will-change: transform;
}

.atmosphere::before {
  width: min(62vw, 520px);
  height: min(62vw, 520px);
  top: 4%;
  left: -10%;
  background: radial-gradient(circle, rgba(11, 107, 203, 0.48), transparent 68%);
  animation: orb-drift-a 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  width: min(58vw, 480px);
  height: min(58vw, 480px);
  top: 22%;
  right: -12%;
  background: radial-gradient(circle, rgba(32, 168, 158, 0.4), transparent 68%);
  animation: orb-drift-b 22s ease-in-out infinite alternate;
}

@keyframes orb-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 50px, 0) scale(1.08); }
}

@keyframes orb-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-36px, 60px, 0) scale(1); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Liquid Glass surface token */
.glass {
  background:
    linear-gradient(145deg, var(--glass-strong), var(--glass) 42%, var(--glass-tint)),
    var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(1.45);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.45);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--specular);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--glass) 70%, transparent);
  backdrop-filter: blur(var(--blur-strong)) saturate(1.55);
  -webkit-backdrop-filter: blur(var(--blur-strong)) saturate(1.55);
  box-shadow: var(--specular), 0 1px 0 var(--line-soft);
}

.site-header .wrap,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-header .wrap {
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.site-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--glass-strong) 80%, transparent);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero {
  padding: 5rem 0 3.5rem;
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  background: linear-gradient(120deg, var(--ink) 20%, var(--ink-soft) 55%, var(--accent) 120%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 10s ease-in-out infinite;
}

.lede {
  max-width: 34rem;
  margin: 0 0 1.85rem;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-ctrl);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white), var(--accent));
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, white);
  box-shadow:
    0 10px 24px rgba(11, 107, 203, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(11, 107, 203, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.button.secondary {
  background:
    linear-gradient(145deg, var(--glass-strong), var(--glass));
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  box-shadow: var(--shadow), var(--specular);
}

.button.secondary:hover {
  filter: none;
  box-shadow: var(--shadow-lift), var(--specular);
}

.page {
  padding: 2.75rem 0 4.5rem;
  animation: rise-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel {
  background:
    linear-gradient(155deg, var(--glass-strong), var(--glass) 48%, var(--glass-tint));
  backdrop-filter: blur(var(--blur-strong)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--blur-strong)) saturate(1.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--specular);
  padding: clamp(1.35rem, 3.4vw, 2.15rem);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  opacity: 0.9;
  pointer-events: none;
}

/* Content glass panel (.card kept for existing markup) */
.card,
.panel {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22) 48%, rgba(210, 232, 248, 0.18));
  backdrop-filter: blur(var(--blur-strong)) saturate(1.65);
  -webkit-backdrop-filter: blur(var(--blur-strong)) saturate(1.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--specular);
  padding: clamp(1.35rem, 3.4vw, 2.15rem);
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .card,
  .panel {
    background:
      linear-gradient(155deg, rgba(24, 38, 56, 0.66), rgba(18, 30, 46, 0.42) 48%, rgba(40, 72, 104, 0.28));
  }
}

.card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  opacity: 0.9;
  pointer-events: none;
}

.page h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.55rem);
  margin-bottom: 0.4rem;
  animation: none;
  background: none;
  color: var(--ink);
  -webkit-background-clip: unset;
  background-clip: unset;
}

.meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

section + section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}

h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--ink);
}

p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

p:last-child { margin-bottom: 0; }

.site-footer {
  padding: 1.25rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  animation: rise-in 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-footer a { font-weight: 600; }

.support-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.support-actions a {
  display: block;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, var(--glass-strong), color-mix(in srgb, var(--glass) 85%, transparent));
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--specular), 0 6px 18px rgba(16, 40, 72, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.support-actions a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift), var(--specular);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  text-decoration: none;
}

.support-actions a strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-weight: 650;
}

.support-actions a span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .site-header .wrap {
    min-height: 60px;
    gap: 0.5rem;
  }

  .site-header nav {
    gap: 0.15rem;
  }

  .site-header nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.86rem;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
