/*
  latexrobot
  Shape system: buttons are pills, content surfaces use an 18px radius.
  Single accent: cool cobalt blue.
*/

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0b0e;
  --bg-raised: #131218;
  --bg-panel: #17161c;
  --line: rgba(240, 238, 244, 0.1);
  --line-strong: rgba(240, 238, 244, 0.2);
  --text: #f0eef4;
  --text-body: #b8b5c0;
  --text-dim: #8d8996;
  --accent: #315b91;
  --accent-text: #6f9fd8;
  --on-accent: #f2f6fc;
  --gloss: rgba(255, 255, 255, 0.07);
  --font-display: "Clash Display", "Avenir Next", system-ui, sans-serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-button: 999px;
  --container: 1180px;
  --nav-height: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  margin-bottom: 0.28em;
  font-size: clamp(3.8rem, 8vw, 7rem);
}

h2 {
  margin-bottom: 0.4em;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

p {
  max-width: 65ch;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

.container {
  width: min(100%, calc(var(--container) + clamp(2.5rem, 8vw, 5rem)));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-110%);
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
}

.site-head::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(12, 11, 14, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-head .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 220ms var(--ease);
}

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

.brand > img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.menu a:not(.btn) {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 220ms var(--ease);
}

.menu a:not(.btn):hover {
  color: var(--text);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.88rem 1.6rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 26px -18px rgba(49, 91, 145, 0.75);
}

.btn-primary::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.34) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 620ms var(--ease);
}

.btn-primary:hover::before {
  transform: translateX(130%);
}

.btn-ghost {
  border-color: rgba(240, 238, 244, 0.25);
  background: rgba(12, 11, 14, 0.18);
}

.btn-ghost:hover {
  border-color: rgba(240, 238, 244, 0.5);
  background: rgba(12, 11, 14, 0.5);
}

.btn-sm {
  min-height: 40px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

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

.btn-primary .btn-icon {
  opacity: 0.78;
  filter: brightness(0) saturate(100%);
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-height));
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--bg);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-scene img {
  position: absolute;
  height: 100%;
  object-fit: cover;
}

.hero-scene-blur {
  inset: -4%;
  width: 108%;
  opacity: 0.7;
  filter: blur(24px);
  transform: scale(1.06);
}

.hero-scene-sharp {
  top: 0;
  right: 0;
  width: min(73vw, 1120px);
  object-position: 64% center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #0c0b0e 28%, #0c0b0e);
  mask-image: linear-gradient(90deg, transparent, #0c0b0e 28%, #0c0b0e);
}

.hero-scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 11, 14, 0.97) 0%, rgba(12, 11, 14, 0.79) 40%, rgba(12, 11, 14, 0.2) 76%),
    linear-gradient(0deg, rgba(12, 11, 14, 0.7), transparent 45%);
}

.hero-inner {
  position: relative;
  left: clamp(-4rem, -4vw, -2rem);
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  padding-block: 2.5rem;
}

.hero-copy {
  max-width: 610px;
  padding-block: 2rem;
  justify-self: end;
  text-align: right;
}

.hero-avatar {
  width: clamp(86px, 9vw, 116px);
  height: clamp(86px, 9vw, 116px);
  aspect-ratio: 1;
  margin: 0 0 1.5rem auto;
  border: 1px solid rgba(111, 159, 216, 0.5);
  border-radius: 50%;
  box-shadow: 0 20px 54px rgba(2, 7, 14, 0.4);
  object-fit: cover;
}

.hero .lead {
  max-width: 40ch;
  margin: 0 0 0 auto;
  color: #d5d2db;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
}

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

.hero .lead span {
  display: block;
  margin-top: 0.35rem;
}

.hero .lead a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration-color: rgba(111, 159, 216, 0.45);
  text-underline-offset: 4px;
  transition: color 220ms var(--ease), text-decoration-color 220ms var(--ease);
}

.hero .lead a:hover {
  color: var(--text);
  text-decoration-color: var(--accent-text);
}

.actions {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.hero-channel-block {
  position: relative;
  left: clamp(-4rem, -4vw, -2rem);
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.hero-channel-block h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  text-align: left;
}

.channel-list {
  display: flex;
  flex-direction: column;
}

.channel-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-body);
  text-decoration: none;
  transition: color 240ms var(--ease), padding-left 240ms var(--ease);
}

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

.channel-row:hover {
  padding-left: 0.35rem;
  color: var(--text);
}

.channel-row strong,
.channel-row small {
  display: block;
}

.channel-row strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
}

.channel-row small {
  margin-top: 0.16rem;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-panel);
  box-shadow: inset 0 1px 0 var(--gloss);
}

.platform-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.platform-icon-dark img {
  padding: 2px;
  border-radius: 4px;
  background: #eeeef2;
}

.channel-go {
  color: var(--accent-text);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 240ms var(--ease);
}

.channel-row:hover .channel-go {
  transform: translateX(4px);
}

.site-foot {
  padding-block: 3.2rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.foot-brand > img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.foot-brand .brand {
  font-size: 1rem;
}

.foot-brand p {
  margin: 0.2rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.legal-row {
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.legal-row p {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-in 800ms var(--ease) both;
  }

  .hero-channel-block {
    animation: hero-panel-in 800ms 140ms var(--ease) both;
  }

  @keyframes hero-in {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes hero-panel-in {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 900px) {
  .hero-scene-blur {
    display: none;
  }

  .hero-scene-sharp {
    width: 100%;
    object-position: 61% center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-scene::after {
    background:
      linear-gradient(0deg, rgba(12, 11, 14, 0.96) 0%, rgba(12, 11, 14, 0.72) 52%, rgba(12, 11, 14, 0.18) 100%),
      linear-gradient(90deg, rgba(12, 11, 14, 0.65), transparent);
  }

  .hero {
    min-height: 0;
    align-items: stretch;
  }

  .hero-inner {
    left: 0;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-block: 4rem;
  }

  .hero-copy {
    max-width: 560px;
    padding-block: 0;
    justify-self: center;
    text-align: center;
  }

  .hero-avatar {
    margin-inline: auto;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .actions {
    justify-content: center;
  }

  .hero-channel-block {
    left: 0;
    justify-self: center;
  }

  .hero-channel-block h2,
  .channel-row > span:nth-child(2) {
    text-align: center;
  }
}

@media (max-width: 620px) {
  :root {
    --nav-height: 64px;
  }

  body {
    font-size: 1rem;
  }

  .menu > li:first-child {
    display: none;
  }

  .brand > img {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    gap: 3rem;
    padding-block: 3.5rem;
  }

  .hero-avatar {
    width: 78px;
    height: 78px;
    margin-bottom: 1.15rem;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .hero .lead {
    max-width: 32ch;
  }

  .actions {
    gap: 0.65rem;
  }

  .actions .btn {
    flex: 1 1 auto;
    padding-inline: 1.15rem;
  }

  .channel-row {
    padding-block: 1.15rem;
  }

  .legal-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-head::before {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
