/* ================================================================
   Aurora — modern bilingual Hexo theme
   Design tokens, base styles and components
   ================================================================ */

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */
:root {
  --bg: #f7f8fc;
  --bg-soft: #f1f3fa;
  --surface: #ffffff;
  --surface-2: #fbfcff;
  --surface-3: #f0f3fa;
  --text: #0b1220;
  --text-soft: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --accent: #4f46e5;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-softer: color-mix(in srgb, var(--accent) 5.5%, transparent);
  --on-accent: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.07), 0 2px 5px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 40px -18px rgba(15, 23, 42, 0.22), 0 6px 16px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 40px 90px -34px rgba(15, 23, 42, 0.32), 0 16px 36px -20px rgba(15, 23, 42, 0.14);
  --code-bg: #0d1220;
  --code-text: #e2e8f0;
  --header-h: 76px;
  --wrap: 1200px;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas,
    "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070a12;
  --bg-soft: #0a0f1c;
  --surface: #101827;
  --surface-2: #0c1321;
  --surface-3: #172134;
  --text: #eef2ff;
  --text-soft: #c7d2e4;
  --muted: #93a3bd;
  --muted-2: #6b7c98;
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);
  --accent: #818cf8;
  --accent-2: #a78bfa;
  --accent-3: #22d3ee;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-softer: color-mix(in srgb, var(--accent) 8%, transparent);
  --on-accent: #0b1020;
  --glass: rgba(9, 14, 26, 0.68);
  --glass-strong: rgba(9, 14, 26, 0.88);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 6px 16px -4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 20px 45px -20px rgba(0, 0, 0, 0.6), 0 6px 16px -8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 45px 100px -34px rgba(0, 0, 0, 0.75), 0 18px 40px -20px rgba(0, 0, 0, 0.4);
  --code-bg: #080d18;
  --code-text: #dbe4f5;
  color-scheme: dark;
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-2);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% -5%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(45% 40% at 96% 4%, rgba(6, 182, 212, 0.07), transparent 60%),
    radial-gradient(50% 45% at 55% 100%, rgba(139, 92, 246, 0.06), transparent 65%);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(55% 45% at 6% -5%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(45% 42% at 98% 2%, rgba(6, 182, 212, 0.1), transparent 62%),
    radial-gradient(55% 45% at 55% 105%, rgba(139, 92, 246, 0.12), transparent 65%);
}

::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--text);
}

img,
svg,
video {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

hr {
  border: 0;
}

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

/* Language visibility: instant, no flash, no JS required */
html[data-lang="zh"] .t-en,
html:not([data-lang="en"]) .t-en {
  display: none;
}

html[data-lang="en"] .t-zh {
  display: none;
}

.t-zh,
.t-en {
  display: inline;
}

/* ---------------------------------------------------------------
   3. Utilities
   --------------------------------------------------------------- */
.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 7.5vw, 96px) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.dot {
  color: var(--muted-2);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------
   4. Buttons, icon buttons, chips
   --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 19px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s,
    color 0.25s, box-shadow 0.25s;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-lg {
  height: 50px;
  padding: 0 23px;
  font-size: 14.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px color-mix(in srgb, var(--accent) 75%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-soft);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  background: var(--surface-3);
  color: var(--accent);
  transform: translateY(-1px);
}

.icon-btn--soft {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.icon-btn--soft:hover {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.5;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.tag-chip span {
  color: var(--muted-2);
  font-size: 10.5px;
}

.tag-chip:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  transform: translateY(-1px);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  box-shadow: 0 1px 0 var(--line);
}

/* ---------------------------------------------------------------
   5. Header / navigation
   --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s,
    backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.4);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 17px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #06b6d4 115%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.04);
  box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-text {
  white-space: nowrap;
}

.brand-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link .icon {
  width: 15px;
  height: 15px;
  opacity: 0.72;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-3);
}

.nav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-link.is-active .icon {
  opacity: 1;
}

.nav-link-button {
  border: 0;
}

.nav-caret {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.55 !important;
  transition: transform 0.2s;
}

.nav-item {
  position: relative;
}

.nav-item:hover .nav-caret,
.nav-item.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 220px;
  padding: 8px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s, transform 0.22s var(--ease), visibility 0.2s;
  z-index: 20;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 550;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-link:hover,
.dropdown-link.is-active {
  background: var(--accent-softer);
  color: var(--accent);
}

.dropdown-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
}

.dropdown-icon .icon {
  width: 15px;
  height: 15px;
}

.dropdown-link:hover .dropdown-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.dropdown-arrow {
  width: 13px !important;
  height: 13px !important;
  margin-left: auto;
  opacity: 0.4;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.search-trigger:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow-sm);
}

.search-trigger .icon {
  width: 16px;
  height: 16px;
}

.search-trigger-label {
  margin-right: 2px;
}

.search-kbd {
  height: 22px;
  padding: 0 6px;
  background: var(--surface-3);
  border-color: transparent;
  box-shadow: none;
  font-size: 10px;
}

/* Language switch — inspired by a precision segmented control */
.lang-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 82px;
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  flex: none;
}

.lang-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1.5px color-mix(in srgb, var(--accent) 82%, transparent);
  transition: transform 0.32s var(--ease), background-color 0.3s;
}

html[data-lang="en"] .lang-knob {
  transform: translateX(100%);
}

.lang-option {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.lang-option[aria-pressed="true"] {
  color: var(--accent);
}

/* Theme toggle — half-filled disc */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  flex: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.4s var(--ease), box-shadow 0.2s;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow-sm);
}

.theme-disc {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.6px solid var(--text-soft);
  background: linear-gradient(90deg, var(--text-soft) 0 50%, transparent 50% 100%);
  transition: transform 0.45s var(--ease), background 0.35s, border-color 0.35s;
}

.theme-toggle:hover .theme-disc {
  transform: rotate(180deg) scale(1.06);
}

[data-theme="dark"] .theme-disc {
  transform: rotate(180deg);
  background: linear-gradient(90deg, var(--accent-3) 0 50%, transparent 50% 100%);
  border-color: var(--accent-3);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.mobile-toggle .icon {
  width: 19px;
  height: 19px;
}

.mobile-toggle-close {
  display: none;
}

.mobile-toggle[aria-expanded="true"] .mobile-toggle-open {
  display: none;
}

.mobile-toggle[aria-expanded="true"] .mobile-toggle-close {
  display: inline-flex;
}

/* Mobile navigation */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 110;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  padding: 18px 24px 32px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.3s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 550;
}

.mobile-link .icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.mobile-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-link.is-active .icon {
  color: var(--accent);
}

.mobile-arrow {
  margin-left: auto;
  width: 15px !important;
  height: 15px !important;
  opacity: 0.35;
}

.mobile-group {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 6px 0;
}

.mobile-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-group-label .icon {
  width: 17px;
  height: 17px;
}

.mobile-sublink {
  padding-left: 30px;
  font-size: 14px;
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.mobile-search kbd {
  margin-left: auto;
}

.mobile-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-socials {
  display: flex;
  gap: 4px;
}

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 58px) 0 12px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.55;
  will-change: transform;
}

.blob--1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(99, 102, 241, 0.55), rgba(139, 92, 246, 0.16) 60%, transparent 72%);
  animation: drift 18s ease-in-out infinite alternate;
}

.blob--2 {
  width: 470px;
  height: 470px;
  top: -90px;
  right: -110px;
  background: radial-gradient(circle at 60% 40%, rgba(6, 182, 212, 0.42), rgba(59, 130, 246, 0.14) 60%, transparent 72%);
  animation: drift 22s ease-in-out -6s infinite alternate-reverse;
}

.blob--3 {
  width: 430px;
  height: 430px;
  top: 42%;
  left: 36%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 70%);
  opacity: 0.35;
  animation: drift 26s ease-in-out -12s infinite alternate;
}

[data-theme="dark"] .blob {
  opacity: 0.6;
}

[data-theme="dark"] .blob--1 {
  background: radial-gradient(circle at 35% 35%, rgba(79, 70, 229, 0.75), rgba(76, 29, 149, 0.2) 60%, transparent 72%);
}

[data-theme="dark"] .blob--2 {
  background: radial-gradient(circle at 60% 40%, rgba(6, 182, 212, 0.45), rgba(14, 116, 144, 0.12) 60%, transparent 72%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
  opacity: 0.55;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, transparent 82%);
}

.hero-grid {
  display: block;
  min-height: 0;
}

.hero-copy {
  max-width: 840px;
}

.hero-title {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  margin: 24px 0 22px;
  font-size: clamp(2.55rem, 5.1vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-title .grad {
  display: inline-block;
  background: linear-gradient(105deg, var(--accent) 0%, var(--accent-2) 46%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.hero-socials {
  display: flex;
  gap: 6px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.hero-location .icon {
  width: 15px;
  height: 15px;
}

.hero-stats {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hero-stat strong {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Hero featured card */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 18px 0;
}

.hero-orbit {
  position: absolute;
  inset: -12% -14%;
  pointer-events: none;
  z-index: -1;
}

.hero-orbit span {
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  inset: 0;
  animation: spin 44s linear infinite;
}

.hero-orbit span:nth-child(2) {
  inset: 12%;
  border-color: color-mix(in srgb, var(--accent-3) 24%, transparent);
  animation-duration: 32s;
  animation-direction: reverse;
}

.hero-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.1deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.hero-feature:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: 0 50px 110px -36px rgba(15, 23, 42, 0.4);
}

.hero-feature-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  background: hsl(var(--hue, 240) 60% 92%);
}

.hero-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hero-feature:hover .hero-feature-media img {
  transform: scale(1.05);
}

.hero-feature-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 13, 24, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.22);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-feature-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 24px 24px;
}

.hero-feature-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 550;
}

.hero-feature-meta > span:first-child {
  color: var(--accent);
  font-weight: 650;
}

.hero-feature-title {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hero-feature-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.7;
}

.hero-feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-feature-reading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.hero-feature-reading .icon {
  width: 14px;
  height: 14px;
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.round-arrow .icon {
  width: 16px;
  height: 16px;
}

.hero-feature:hover .round-arrow {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(45deg);
}

.hero-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-float .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.hero-float--1 {
  top: 4px;
  left: -26px;
  animation: float 6s ease-in-out infinite;
}

.hero-float--2 {
  right: -18px;
  bottom: -18px;
  animation: float 7s ease-in-out -2s infinite;
}

.float-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-3);
}

.float-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual--empty {
  display: grid;
  place-items: center;
}

.hero-abstract {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, hsl(245 60% 92%), hsl(190 55% 92%));
}

.hero-foot {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.scroll-cue:hover {
  color: var(--accent);
}

.scroll-cue .icon {
  width: 14px;
  height: 14px;
  animation: nudge 2s ease-in-out infinite;
}

.scroll-cue-mouse {
  display: inline-flex;
  justify-content: center;
  width: 18px;
  height: 28px;
  padding-top: 5px;
  border: 1.4px solid var(--line-strong);
  border-radius: 999px;
}

.scroll-cue-mouse span {
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

/* Topic strip */
.topic-strip {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.topic-strip-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  overflow: hidden;
}

.topic-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topic-strip-label .icon {
  width: 15px;
  height: 15px;
}

.topic-strip-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  flex: 1;
  mask-image: linear-gradient(to right, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
}

.topic-strip-links::-webkit-scrollbar {
  display: none;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.topic-pill span {
  color: var(--muted-2);
  font-size: 10.5px;
}

.topic-pill:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: var(--accent-softer);
}

.topic-strip-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.topic-strip-all .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.topic-strip-all:hover {
  color: var(--accent);
}

.topic-strip-all:hover .icon {
  transform: translateX(3px);
}


/* Hero metrics rail */
.hero-metrics {
  align-self: center;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.hero-metrics-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-metrics-list {
  display: flex;
  flex-direction: column;
}

.hero-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.hero-metric:first-child {
  border-top: 1px solid var(--line);
}

.hero-metric strong {
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-metric span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
