:root {
  --bg: #02050b;
  --bg-mid: #07101a;
  --bg-soft: #0b1523;
  --panel: rgba(8, 13, 22, 0.78);
  --panel-strong: rgba(9, 15, 27, 0.92);
  --panel-deep: rgba(4, 8, 15, 0.94);
  --line: rgba(128, 168, 209, 0.14);
  --line-strong: rgba(198, 226, 255, 0.22);
  --text: #f5f8fc;
  --muted: #96a7ba;
  --muted-strong: #b7c6d6;
  --accent: #dcecff;
  --accent-ice: #8ec4ff;
  --accent-edge: #5e8db9;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(142, 196, 255, 0.08), 0 24px 70px rgba(32, 58, 94, 0.26);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(180deg, #02050b 0%, #040913 25%, #050d18 65%, #02050b 100%);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(circle at 16% 26%, rgba(103, 149, 209, 0.16), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(214, 236, 255, 0.12), transparent 20%),
    radial-gradient(circle at 52% 2%, rgba(90, 119, 160, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(6, 10, 17, 0) 0%, rgba(6, 10, 17, 0.55) 100%);
}

body::after {
  z-index: 0;
  background: url("/assets/banner-real.png") center top / cover no-repeat;
  opacity: 0.12;
  filter: blur(12px) saturate(0.88);
  transform: scale(1.04);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
li {
  color: var(--muted);
  line-height: 1.68;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  color: var(--text);
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(151, 191, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 191, 233, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  opacity: 0.52;
  pointer-events: none;
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 8, 15, 0.52);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(214, 235, 255, 0.22);
  box-shadow: 0 12px 28px rgba(57, 103, 162, 0.26);
  background: #050910;
}

.brand-copy,
.topnav,
.signal-strip dt,
.card-kicker,
.angle-type,
.eyebrow,
.panel-label,
.footer-small,
.pillar-index,
.legal-meta {
  font-family: "IBM Plex Mono", monospace;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.topnav a:hover,
.topnav a:focus-visible,
.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.8), rgba(4, 8, 15, 0.95));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(2, 4, 8, 0.96) 12%, rgba(2, 4, 8, 0.68) 42%, rgba(2, 4, 8, 0.92) 100%),
    url("/assets/banner-real.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% 34%;
  height: 56%;
  z-index: -1;
  background: radial-gradient(circle, rgba(142, 196, 255, 0.24), transparent 60%);
  filter: blur(26px);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.card-kicker,
.angle-type,
.panel-label,
.pillar-index,
.legal-meta,
.signal-strip dt {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent-ice);
}

.hero a,
.cta-band a {
  text-decoration: none;
}

.hero h1,
.section-heading h2,
.cta-band h2,
.legal-card h1 {
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-lede {
  max-width: 60ch;
  font-size: 1.07rem;
  margin: 1.5rem 0 0;
  color: var(--muted-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #07101a;
  background: linear-gradient(180deg, #f8fbff 0%, #dceeff 100%);
  box-shadow: 0 16px 42px rgba(123, 175, 233, 0.22);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(189, 221, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(189, 221, 255, 0.36);
  box-shadow: 0 16px 36px rgba(82, 122, 173, 0.16);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.signal-strip div,
.profile-card,
.info-card,
.angle-card,
.pillar-card,
.cta-band,
.legal-card {
  border: 1px solid rgba(188, 222, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.86), rgba(5, 9, 16, 0.96));
  box-shadow: var(--glow);
}

.signal-strip div {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
}

.signal-strip dd {
  margin: 0.55rem 0 0;
  color: var(--text);
}

.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -18% auto auto 58%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 223, 255, 0.2), transparent 68%);
  filter: blur(12px);
}

.banner-image {
  width: 100%;
  height: 214px;
  object-fit: cover;
  object-position: center;
}

.profile-body {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.5rem 1.45rem 1rem;
}

.avatar-image {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(222, 240, 255, 0.44);
  margin-top: -3.6rem;
  background: #050910;
  box-shadow: 0 0 0 10px rgba(4, 8, 15, 0.96), 0 18px 48px rgba(80, 123, 177, 0.22);
}

.profile-body h2 {
  font-size: 1.6rem;
  margin-top: 0.3rem;
}

.panel-copy {
  margin-top: 0.75rem;
  color: var(--muted-strong);
}

.profile-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0 1.45rem 1.45rem;
}

.profile-meta li {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(157, 204, 255, 0.14);
  background: rgba(129, 175, 227, 0.08);
  color: var(--accent);
  font-size: 0.92rem;
}

.section,
.cta-band,
.legal-shell {
  margin-top: 5.9rem;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.section-heading h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.section-note {
  margin: 0;
}

.thesis-grid,
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pillar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.pillar-card,
.angle-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.info-card::before,
.pillar-card::before,
.angle-card::before,
.legal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%),
    radial-gradient(circle at top right, rgba(154, 208, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.info-card h3,
.pillar-card h3 {
  font-size: 1.35rem;
  margin: 0.55rem 0 0.7rem;
}

.angles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.angle-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.angle-card blockquote {
  margin-top: 1.25rem;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pillar-index {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 199, 250, 0.18);
  background: rgba(129, 175, 227, 0.08);
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    linear-gradient(105deg, rgba(3, 6, 12, 0.94), rgba(4, 8, 15, 0.66) 44%, rgba(4, 8, 15, 0.88) 100%),
    url("/assets/banner-real.png") center / cover no-repeat;
}

.footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0 0 2.2rem;
  display: grid;
  gap: 0.85rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  text-decoration: none;
}

.footer-small {
  color: var(--muted);
}

.legal-shell {
  display: grid;
}

.legal-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.legal-card h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-top: 0.35rem;
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .thesis-grid,
  .pillar-grid,
  .angles-grid,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .topbar,
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .section-heading h2 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
  }

  main {
    padding-top: 1.6rem;
  }

  .hero {
    padding: 1.3rem;
    border-radius: 28px;
  }

  .profile-body {
    grid-template-columns: 1fr;
  }

  .avatar-image {
    margin-top: -4.2rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
