:root {
  color-scheme: dark;
  --bg: #080b0f;
  --bg-soft: #111820;
  --panel: rgba(12, 17, 23, 0.82);
  --panel-solid: #10171e;
  --text: #f5f7fb;
  --muted: #aab5c2;
  --line: rgba(255, 255, 255, 0.14);
  --red: #d94b54;
  --blue: #4aa3ff;
  --steel: #7e8b99;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(8, 11, 15, 0.88), rgba(8, 11, 15, 0.2));
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 11, 15, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.button {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 750;
  font-size: 0.9rem;
}

.site-nav a {
  color: #dfe6ee;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta,
.button-primary {
  background: var(--text);
  color: #081018;
}

.discord-button {
  background: #5865f2;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.28);
}

.site-nav .discord-button {
  color: #ffffff;
}

.site-nav .discord-button:hover {
  background: #4752c4;
}

.site-nav .nav-cta {
  color: #081018;
}

.site-nav .nav-cta:hover {
  background: #ffffff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding: 132px clamp(18px, 5vw, 72px) 7vh;
  overflow: hidden;
}

.hero-media,
.hero-frame,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame-secondary {
  animation: heroFade 16s ease-in-out infinite;
  opacity: 0;
}

@keyframes heroFade {
  0%,
  38% {
    opacity: 0;
  }

  50%,
  88% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96) 0%, rgba(8, 11, 15, 0.74) 42%, rgba(8, 11, 15, 0.28) 80%),
    linear-gradient(0deg, rgba(8, 11, 15, 0.96) 0%, rgba(8, 11, 15, 0.12) 44%, rgba(8, 11, 15, 0.68) 100%);
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #cbd5df;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8.6vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 650px;
  color: #dde6f1;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metric {
  display: block;
  margin-bottom: 4px;
  font-size: 1.45rem;
  font-weight: 900;
}

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

.section {
  padding: clamp(76px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.section-tight {
  padding-top: clamp(56px, 8vw, 96px);
}

.section-heading {
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service,
.project,
.support-card,
.support-points div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.service {
  min-height: 260px;
  padding: 24px;
}

.service-icon,
.project span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #d7e8ff;
  font-size: 0.78rem;
  font-weight: 850;
}

.service p,
.project p,
.support-card p,
.support-points span {
  color: var(--muted);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(217, 75, 84, 0.14), transparent 34%),
    linear-gradient(290deg, rgba(74, 163, 255, 0.14), transparent 36%),
    #0d1218;
}

.feature-copy p {
  max-width: 620px;
  color: #d7dee8;
  font-size: 1.08rem;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project {
  padding: 24px;
}

.project span {
  margin-bottom: 20px;
  color: #10171e;
  background: #eff5ff;
}

.banner-band {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: #0a0d11;
}

.banner-band img {
  width: min(100%, 1180px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.support-card {
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.support-card .button {
  margin-top: 10px;
}

.support-points {
  display: grid;
  gap: 12px;
}

.support-points div {
  padding: 20px;
}

.support-points strong,
.support-points span {
  display: block;
}

.support-points strong {
  margin-bottom: 6px;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(52px, 8vw, 82px) clamp(18px, 5vw, 72px);
  background: #f4f7fb;
  color: #071018;
}

.contact-band .eyebrow {
  color: #526071;
}

.contact-band h2 {
  margin-bottom: 0;
}

.contact-band .button-secondary {
  border-color: rgba(7, 16, 24, 0.18);
  color: #071018;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 11, 15, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .site-nav .discord-button,
  .site-nav .nav-cta {
    justify-content: center;
  }

  .hero {
    min-height: 94vh;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 112px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 11, 15, 0.96), rgba(8, 11, 15, 0.62)),
      linear-gradient(0deg, rgba(8, 11, 15, 0.98) 0%, rgba(8, 11, 15, 0.28) 56%, rgba(8, 11, 15, 0.7) 100%);
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .feature-band,
  .support-section {
    grid-template-columns: 1fr;
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame-secondary {
    animation: none;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

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

  .button {
    width: 100%;
  }
}
