@font-face {
  font-family: "gg sans";
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/gg%20sans%20Regular.ttf") format("truetype");
}

@font-face {
  font-family: "gg sans";
  font-display: swap;
  font-style: normal;
  font-weight: 500;
  src: url("/assets/fonts/gg%20sans%20Medium.ttf") format("truetype");
}

@font-face {
  font-family: "gg sans";
  font-display: swap;
  font-style: normal;
  font-weight: 600;
  src: url("/assets/fonts/gg%20sans%20Semibold.ttf") format("truetype");
}

@font-face {
  font-family: "gg sans";
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/gg%20sans%20Bold.ttf") format("truetype");
}

:root {
  --landing-bg: #040611;
  --landing-bg-soft: #070813;
  --landing-panel: #17181f;
  --landing-panel-elevated: #20222b;
  --landing-panel-deep: #080a13;
  --landing-line: #343746;
  --landing-line-soft: rgba(255, 255, 255, 0.08);
  --landing-ink: #f7f5f1;
  --landing-muted: #a9a7ad;
  --landing-faint: #74727c;
  --landing-discord: #5747f5;
  --landing-discord-hover: #685aff;
  --landing-green: #43b581;
  --landing-yellow: #faa61a;
  --landing-red: #f04747;
  --landing-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --landing-shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

/* Code-drawn landing visuals use one fixed internal stage and scale as a whole. */
.landing-fixed-scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--landing-fixed-scene-ratio);
  container-type: inline-size;
}

.landing-fixed-stage {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--landing-fixed-scene-width);
  height: var(--landing-fixed-scene-height);
  transform-origin: top left;
  transform: scale(calc(100cqw / var(--landing-fixed-scene-width)));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 58%, rgba(97, 77, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 31%, rgba(117, 105, 255, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 43%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    linear-gradient(180deg, #050711 0%, #03050e 56%, #05060b 100%);
  color: var(--landing-ink);
  font-family: "gg sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 23%, rgba(255, 255, 255, 0.09) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 23%, rgba(132, 122, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 77%, rgba(255, 255, 255, 0.1) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(14, 16, 36, 0.6), transparent 34%);
}

a {
  color: inherit;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(4, 5, 12, 0.93);
  border-bottom: 1px solid var(--landing-line-soft);
  backdrop-filter: blur(18px);
}

.landing-header-inner {
  display: grid;
  width: min(1376px, 100%);
  min-height: 92px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.landing-header-left {
  display: contents;
}

.landing-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  color: var(--landing-ink);
  font-size: 25px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.landing-brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.landing-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: clamp(34px, 3.2vw, 58px);
  color: rgba(247, 245, 241, 0.76);
  font-size: 18px;
  font-weight: 600;
}

.landing-nav a,
.landing-footer a,
.landing-nav-menu summary {
  text-decoration: none;
}

.landing-nav a:hover,
.landing-footer a:hover,
.landing-nav-menu summary:hover {
  color: var(--landing-ink);
}

.landing-nav-menu {
  position: relative;
}

.landing-nav-menu summary {
  display: inline-flex;
  min-height: 38px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  gap: 9px;
  color: rgba(247, 245, 241, 0.76);
}

.landing-nav-menu summary::-webkit-details-marker {
  display: none;
}

.landing-nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.landing-nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 40;
  display: grid;
  width: 260px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--landing-line-soft);
  border-radius: 8px;
  background: rgba(36, 36, 36, 0.98);
  box-shadow: var(--landing-shadow);
  transform: translateX(-50%);
}

.landing-nav-dropdown a {
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--landing-muted);
}

.landing-nav-dropdown a:hover {
  background: rgba(88, 101, 242, 0.13);
  color: var(--landing-ink);
}

.landing-nav-menu:not([open]) .landing-nav-dropdown {
  display: none;
}

.landing-header-cta,
.landing-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.landing-header-cta,
.landing-button-primary {
  background: linear-gradient(180deg, #695cff 0%, var(--landing-discord) 100%);
  color: #ffffff;
  box-shadow: 0 0 28px rgba(86, 70, 245, 0.42);
}

.landing-header-cta {
  min-width: 176px;
  min-height: 56px;
  font-size: 20px;
}

.landing-header-cta:hover,
.landing-button-primary:hover {
  background: var(--landing-discord-hover);
}

.landing-button-secondary {
  border: 1px solid rgba(154, 159, 195, 0.36);
  background: rgba(255, 255, 255, 0.015);
  color: var(--landing-ink);
}

.landing-button-secondary:hover {
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.12);
}

.landing-hero {
  display: flex;
  min-height: 680px;
  align-items: center;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 72px) clamp(54px, 7vw, 88px);
}

.landing-hero-home {
  border-bottom: 0;
}

.landing-hero-inner {
  display: grid;
  width: min(1240px, 100%);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  margin: 0 auto;
}

.landing-hero-copy-block {
  min-width: 0;
}

.landing-eyebrow {
  margin: 0 0 22px;
  color: #73bf7b;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fbfaf6;
  font-size: clamp(50px, 5.2vw, 78px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  text-shadow: 0 3px 18px rgba(255, 255, 255, 0.09);
}

.landing-hero-copy {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--landing-muted);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.28;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.landing-reassurance {
  margin: 17px 0 0;
  color: var(--landing-faint);
  font-size: 16px;
  font-weight: 500;
}

.landing-section {
  width: min(1240px, 100%);
  scroll-margin-top: 92px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.landing-text-link {
  color: #a7a8ff;
  font-size: inherit;
  font-weight: 700;
  text-decoration: none;
}

.landing-footer {
  padding: 44px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--landing-line-soft);
  background: rgba(22, 23, 25, 0.96);
}

.landing-footer-grid {
  display: grid;
  width: min(1240px, 100%);
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(130px, 1fr));
  align-items: start;
  gap: 32px;
  margin: 0 auto;
}

.landing-footer-grid > div,
.landing-footer-grid nav {
  align-self: start;
}

.landing-footer h2 {
  margin: 0 0 12px;
  color: var(--landing-ink);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-footer-grid nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  color: var(--landing-muted);
}

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

.landing-footer-bottom {
  display: flex;
  width: min(1240px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 34px auto 0;
  border-top: 1px solid var(--landing-line-soft);
  padding-top: 22px;
}

.landing-footer-bottom p {
  margin: 0;
  color: #878787;
  font-size: 13px;
  line-height: 1.7;
}

.landing-footer-bottom p a {
  color: #a9a9a9;
}

.landing-footer-bottom p span {
  display: block;
}

.landing-footer .landing-footer-social {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.landing-footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--landing-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--landing-muted);
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.landing-footer-social a:hover {
  border-color: rgba(88, 101, 242, 0.56);
  background: rgba(88, 101, 242, 0.12);
  color: var(--landing-ink);
}

.landing-footer-social svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.landing-support-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(88, 101, 242, 0.62);
  border-radius: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.3), rgba(36, 36, 36, 0.96));
  color: #ffffff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  box-shadow:
    0 14px 34px rgba(88, 101, 242, 0.24),
    var(--landing-shadow-soft);
}

.landing-support-fab:hover {
  border-color: rgba(128, 139, 255, 0.9);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.42), rgba(36, 36, 36, 0.98));
}

.landing-page-home .landing-support-fab {
  display: none;
}

@media (max-width: 1120px) {
  .landing-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-footer {
    padding-bottom: 104px;
  }

  .landing-footer-grid {
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    gap: 28px 36px;
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 0 18px;
  }

  .landing-header-inner {
    display: grid;
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .landing-header-left {
    min-width: 0;
    display: flex;
  }

  .landing-brand {
    gap: 9px;
    font-size: 17px;
  }

  .landing-brand-logo {
    width: 28px;
    height: 28px;
  }

  .landing-nav {
    display: none;
  }

  .landing-header-cta {
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .landing-hero {
    min-height: 0;
    padding-top: 48px;
  }

  .landing-hero h1 {
    font-size: clamp(42px, 12.4vw, 54px);
  }

  .landing-actions,
  .landing-button {
    width: 100%;
  }

  .landing-section {
    padding: 36px 18px;
  }

  .landing-support-fab {
    display: none;
  }

  .landing-footer {
    padding-bottom: 44px;
  }

  .landing-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-footer .landing-footer-social {
    width: 100%;
  }
}
