:root {
  --color-bg: #020844;
  --color-bg-deep: #01031a;
  --color-bg-void: #02040f;
  --color-surface: #0d1224;
  --color-surface-strong: #171b2a;
  --color-surface-alt: #292b3a;
  --color-text: #f6f8ff;
  --color-muted: #afb0b8;
  --color-subtle: #737482;
  --color-primary: #90ff00;
  --color-primary-hover: #b4ff48;
  --color-accent: #00b2ff;
  --color-blue: #2f2fbf;
  --color-border: rgba(175, 176, 184, 0.24);
  --color-border-strong: rgba(144, 255, 0, 0.48);
  --color-border-cool: rgba(0, 178, 255, 0.26);
  --color-panel: rgba(13, 18, 36, 0.82);
  --color-panel-strong: rgba(23, 27, 42, 0.92);
  --color-focus: #00b2ff;
  --shadow-soft: 0 24px 72px rgba(0, 0, 0, 0.36);
  --shadow-panel: 0 18px 52px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(246, 248, 255, 0.04);
  --shadow-cta: 0 18px 44px rgba(144, 255, 0, 0.22), 0 0 0 1px rgba(2, 8, 68, 0.2) inset;
  --motion: 180ms ease;
  --font-heading: "Funnel Display", "Space Grotesk", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --radius: 8px;
  --radius-small: 4px;
  --radius-round: 999px;
  --page-max: 620px;
}

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

* {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  min-height: 100%;
  background: var(--color-bg-deep);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--color-text);
  background:
    linear-gradient(145deg, rgba(47, 47, 191, 0.2) 0 18%, transparent 36%),
    linear-gradient(215deg, rgba(0, 178, 255, 0.12) 0 16%, transparent 36%),
    linear-gradient(180deg, rgba(2, 8, 68, 0.96) 0, rgba(1, 3, 26, 0.98) 56%, var(--color-bg-void) 100%),
    var(--color-bg-deep);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(144, 255, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 178, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(215, 215, 219, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 215, 219, 0.025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28) 48%, transparent 88%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(1, 3, 26, 0.82) 0, transparent 18%, transparent 82%, rgba(1, 3, 26, 0.82) 100%),
    linear-gradient(115deg, transparent 0 18%, rgba(144, 255, 0, 0.09) 18.1% 18.22%, transparent 18.42% 100%),
    linear-gradient(245deg, transparent 0 64%, rgba(0, 178, 255, 0.08) 64.1% 64.22%, transparent 64.42% 100%),
    linear-gradient(180deg, transparent 0 72%, rgba(2, 4, 15, 0.74) 100%);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.profile-header,
.page-shell {
  width: min(100%, var(--page-max));
  margin-inline: auto;
}

.profile-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  min-height: 342px;
  padding: 4.25rem var(--space-3) var(--space-4);
  overflow: hidden;
  background:
    linear-gradient(var(--color-border-strong), var(--color-border-strong)) left 18px top 28px / 72px 1px no-repeat,
    linear-gradient(var(--color-border-cool), var(--color-border-cool)) right 18px top 28px / 72px 1px no-repeat,
    linear-gradient(var(--color-border-cool), var(--color-border-cool)) left 18px bottom 20px / 46px 1px no-repeat,
    linear-gradient(var(--color-border-strong), var(--color-border-strong)) right 18px bottom 20px / 46px 1px no-repeat;
  text-align: center;
}

.profile-shell::before,
.profile-shell::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.profile-shell::before {
  top: 18px;
  left: 50%;
  width: 300px;
  aspect-ratio: 1;
  border: 1px solid rgba(144, 255, 0, 0.28);
  border-right-color: transparent;
  border-bottom-color: rgba(0, 178, 255, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(0, 178, 255, 0.035),
    0 0 0 78px rgba(144, 255, 0, 0.018);
  transform: translateX(-50%) rotate(-22deg);
}

.profile-shell::after {
  top: 67px;
  left: 50%;
  width: min(78%, 430px);
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(0, 178, 255, 0.6), transparent),
    linear-gradient(90deg, transparent 0 42%, rgba(144, 255, 0, 0.76) 42% 46%, transparent 46% 100%);
  transform: translateX(-50%);
}

.profile-image {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-round);
  background:
    linear-gradient(145deg, rgba(2, 8, 68, 0.92), rgba(13, 18, 36, 0.78)),
    rgba(17, 21, 34, 0.72);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.34),
    0 0 32px rgba(144, 255, 0, 0.12),
    inset 0 0 0 1px rgba(246, 248, 255, 0.04);
}

.profile-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.3rem 0.62rem;
  color: var(--color-primary);
  background: rgba(13, 18, 36, 0.76);
  border: 1px solid rgba(144, 255, 0, 0.22);
  border-radius: var(--radius-small);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-name {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 4.65rem;
  font-weight: 900;
  line-height: 0.86;
  text-shadow: 0 0 34px rgba(0, 178, 255, 0.12);
}

.profile-bio {
  position: relative;
  z-index: 1;
  max-width: 35rem;
  color: var(--color-muted);
  font-size: 1rem;
  font-weight: 600;
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 0 var(--space-3) var(--space-5);
}

.links-stack,
.links-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: var(--space-3);
  padding: 0.78rem;
  overflow: hidden;
  color: var(--color-text);
  background:
    linear-gradient(135deg, rgba(246, 248, 255, 0.055), transparent 28%),
    linear-gradient(180deg, var(--color-panel-strong), var(--color-panel));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  text-decoration: none;
  transition: border-color var(--motion), background var(--motion), box-shadow var(--motion), transform var(--motion);
  backdrop-filter: blur(16px);
}

.link-card::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, rgba(144, 255, 0, 0.1), rgba(0, 178, 255, 0.72), rgba(144, 255, 0, 0.1));
  opacity: 0.54;
  transition: opacity var(--motion), transform var(--motion);
}

.link-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(144, 255, 0, 0.11), transparent 46%),
    linear-gradient(135deg, transparent 0 calc(100% - 24px), rgba(0, 178, 255, 0.2) calc(100% - 23px), transparent calc(100% - 22px));
  opacity: 0;
  transition: opacity var(--motion);
}

.link-card:hover {
  background:
    linear-gradient(135deg, rgba(144, 255, 0, 0.065), transparent 32%),
    linear-gradient(180deg, rgba(30, 35, 54, 0.98), rgba(13, 18, 36, 0.96));
  border-color: rgba(144, 255, 0, 0.5);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(144, 255, 0, 0.08) inset;
  transform: translateY(-2px);
}

.link-card:hover::before {
  opacity: 1;
  transform: scaleY(1.08);
}

.link-card:hover::after {
  opacity: 1;
}

.link-card:active {
  transform: translateY(0);
}

.link-card-featured {
  color: #020844;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 32%),
    linear-gradient(100deg, #90ff00 0%, #b7ff3e 58%, #7cf400 100%);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-cta);
}

.link-card-featured::before {
  background: linear-gradient(180deg, rgba(2, 8, 68, 0.18), rgba(2, 8, 68, 0.78), rgba(2, 8, 68, 0.18));
  opacity: 1;
}

.link-card-featured::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 48%),
    linear-gradient(135deg, transparent 0 calc(100% - 24px), rgba(2, 8, 68, 0.22) calc(100% - 23px), transparent calc(100% - 22px));
  opacity: 1;
}

.link-card-featured:hover {
  color: #020844;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(100deg, var(--color-primary-hover) 0%, #cfff73 58%, #90ff00 100%);
  border-color: var(--color-primary-hover);
}

.link-thumb {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border-radius: var(--radius-small);
}


.link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.16rem;
}

.link-title {
  font-weight: 850;
  line-height: 1.22;
}

.link-desc {
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 550;
}

.link-card-featured .link-desc {
  color: rgba(2, 8, 68, 0.72);
}

.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.accordion-toggle {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: 100%;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.accordion-toggle:hover {
  color: var(--color-primary);
}

.accordion-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  transition: transform var(--motion);
}

.accordion-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition: grid-template-rows 220ms ease, opacity 220ms ease;
}

.accordion-content[aria-hidden="false"] {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-inner {
  min-height: 0;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.social-link {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background:
    linear-gradient(135deg, rgba(246, 248, 255, 0.05), transparent 42%),
    var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  text-decoration: none;
  transition: background var(--motion), border-color var(--motion), color var(--motion), transform var(--motion);
  backdrop-filter: blur(12px);
}

.social-link:hover {
  color: #020844;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%),
    var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-logo,
.simple-page-logo {
  max-width: min(180px, 58vw);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(144, 255, 0, 0.12));
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--color-subtle);
  font-size: 0.82rem;
}

.footer-meta a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--color-primary);
}

.simple-page {
  gap: var(--space-4);
  padding-top: var(--space-4);
}

.simple-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.back-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background:
    linear-gradient(135deg, rgba(246, 248, 255, 0.05), transparent 42%),
    var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}

.back-button:hover {
  color: #020844;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.back-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.content-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  color: var(--color-text);
  background:
    linear-gradient(135deg, rgba(246, 248, 255, 0.05), transparent 28%),
    var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.content-panel h1,
.content-panel h2 {
  font-family: var(--font-heading);
  line-height: 1.08;
}

.content-panel h1 {
  font-size: 3.1rem;
  text-transform: uppercase;
}

.content-panel h2 {
  margin-top: var(--space-2);
  color: var(--color-primary);
  font-size: 1.15rem;
}

.content-panel p {
  color: var(--color-muted);
}

@media (min-width: 680px) {
  .profile-shell {
    min-height: 374px;
    padding-top: 4.85rem;
  }

  .profile-name {
    font-size: 5.28rem;
  }

  .page-shell {
    padding-bottom: var(--space-6);
  }

  .link-card {
    padding: 0.88rem;
  }
}

@media (max-width: 420px) {
  .profile-shell {
    min-height: 328px;
    padding-top: 3.6rem;
  }

  .profile-shell::before {
    width: 252px;
  }

  .profile-image {
    width: 104px;
    height: 104px;
  }

  .profile-kicker {
    max-width: min(100%, 21rem);
    font-size: 0.68rem;
  }

  .profile-name {
    font-size: 3.32rem;
  }

  .profile-bio {
    font-size: 0.96rem;
  }

  .link-card {
    align-items: flex-start;
    min-height: 82px;
  }

  .link-thumb {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .link-title,
  .link-desc {
    overflow-wrap: anywhere;
  }

  .content-panel h1 {
    font-size: 2.18rem;
  }
}

@media (max-width: 340px) {
  .profile-name {
    font-size: 2.92rem;
  }

  .profile-kicker {
    font-size: 0.64rem;
  }
}
