:root {
  --bg: #ffffff;
  --panel: rgba(2, 6, 23, 0.04);
  --panel-2: rgba(2, 6, 23, 0.06);
  --text: rgba(2, 6, 23, 0.92);
  --muted: rgba(2, 6, 23, 0.72);
  --faint: rgba(2, 6, 23, 0.56);
  --border: rgba(2, 6, 23, 0.12);
  --shadow: 0 18px 60px rgba(2, 6, 23, 0.12);
  --accent: #7c5cff;
  --accent-2: #2ee9a6;
  --ring: rgba(124, 92, 255, 0.28);

  --radius: 18px;
  --container: 1060px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(124, 92, 255, 0.14), transparent 58%),
    radial-gradient(900px 650px at 90% 20%, rgba(46, 233, 166, 0.08), transparent 58%),
    radial-gradient(900px 700px at 40% 90%, rgba(124, 92, 255, 0.08), transparent 60%),
    var(--bg);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ring);
  border-radius: 10px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
}

.skip-link:focus {
  left: 0.75rem;
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(186, 230, 253, 0.95), rgba(219, 234, 254, 0.7));
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-icon {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

.nav a {
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.icon-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid transparent;
}

.icon-link:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
}

.hero {
  padding: 3.2rem 0 1.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 3.3vw, 3.2rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.2px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn.primary {
  border-color: rgba(124, 92, 255, 0.45);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(46, 233, 166, 0.12));
}

.note {
  margin: 1rem 0 0;
  color: var(--faint);
  font-size: 0.95rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.95em;
  padding: 0.08rem 0.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-wrap {
  width: min(280px, 100%);
  margin-left: auto;
  padding: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, rgba(124, 92, 255, 0.32), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(46, 233, 166, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 999px;
  display: block;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section {
  padding: 0.0rem 0 3.2rem;
}

.section-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.section-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.2px;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  padding: 1.1rem 1.1rem 0.95rem;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.35);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.card.muted {
  opacity: 0.92;
}

.card-top {
  display: grid;
  gap: 0.35rem;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.card-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: auto;
}

.link {
  color: rgba(2, 6, 23, 0.92);
  font-weight: 650;
  padding: 0.35rem 0.25rem;
  border-radius: 10px;
}

.link:hover {
  color: rgba(2, 6, 23, 1);
  background: rgba(2, 6, 23, 0.06);
}

.site-footer {
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.back-to-top {
  padding: 0.4rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.back-to-top:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .avatar-wrap {
    margin-left: 0;
    width: min(240px, 100%);
  }
  .card {
    grid-column: span 12;
  }
}
