:root {
  --bg: #020602;
  --panel: rgba(5, 14, 6, .78);
  --panel-strong: rgba(4, 10, 5, .94);
  --text: #f7fff2;
  --muted: #c4d6be;
  --green: #83ff52;
  --green-deep: #23d537;
  --lime: #c9ff72;
  --gold: #ffb33f;
  --gold-soft: #ffe3a1;
  --white: #ffffff;
  --line: rgba(152, 255, 102, .24);
  --line-soft: rgba(255, 179, 63, .18);
  --shadow-green: 0 0 28px rgba(131, 255, 82, .45);
  --shadow-gold: 0 0 26px rgba(255, 179, 63, .34);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 18% 18%, rgba(131, 255, 82, .18), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(255, 179, 63, .14), transparent 28%),
    radial-gradient(circle at 70% 86%, rgba(35, 213, 55, .13), transparent 32%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.48) 48%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.82)),
    url('glowlink-wallpaper.png') center/cover no-repeat;
  opacity: .88;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(131,255,82,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,179,63,.042) 1px, transparent 1px),
    radial-gradient(circle at 13% 20%, rgba(131,255,82,.14), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(255,179,63,.10), transparent 34%);
  background-size: 68px 68px, 68px 68px, auto, auto;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0,0,0,.9) 44%, transparent 88%);
}

body::selection {
  background: rgba(131,255,82,.32);
  color: #fff;
}

a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(1, 5, 2, .88), rgba(1, 5, 2, .44));
  border-bottom: 1px solid rgba(131,255,82,.15);
  box-shadow: 0 10px 45px rgba(0,0,0,.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-media {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(131,255,82,.18), transparent 60%),
    rgba(0,0,0,.28);
  border: 1px solid rgba(131,255,82,.24);
  box-shadow: 0 0 18px rgba(131,255,82,.2);
}

.brand-logo-media img,
.brand-logo-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .24s ease, transform .24s ease, filter .24s ease;
}

.brand-logo-media img {
  z-index: 2;
  padding: 4px;
  opacity: 1;
  filter:
    drop-shadow(0 0 9px rgba(131,255,82,.72))
    drop-shadow(0 0 12px rgba(255,179,63,.28));
}

.brand-logo-media video {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.brand.is-video-active .brand-logo-media img { opacity: 0; transform: scale(.94); }
.brand.is-video-active .brand-logo-media video { opacity: 1; transform: scale(1.04); }

.brand-text,
.brand span:last-child {
  letter-spacing: .32em;
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow:
    0 0 12px rgba(255,179,63,.32),
    0 0 18px rgba(131,255,82,.18);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: rgba(233,255,222,.76);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  transition: color .18s ease, text-shadow .18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  text-shadow: var(--shadow-green);
}

.hero {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 72px) 72px;
}

.hero-inner {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.hero-logo-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 48px);
  min-height: 420px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 45% 36%, rgba(131,255,82,.23), transparent 44%),
    radial-gradient(circle at 63% 64%, rgba(255,179,63,.18), transparent 42%),
    linear-gradient(145deg, rgba(9,25,8,.86), rgba(2,6,2,.66));
  border: 1px solid rgba(131,255,82,.28);
  box-shadow:
    0 0 44px rgba(131,255,82,.22),
    0 0 64px rgba(255,179,63,.12),
    inset 0 0 50px rgba(255,255,255,.035);
}

.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(131,255,82,.08), transparent 34%, rgba(255,179,63,.12) 63%, transparent),
    repeating-linear-gradient(90deg, rgba(131,255,82,.05) 0 1px, transparent 1px 30px);
  opacity: .85;
}

.hero-logo-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 26px;
  border: 1px solid rgba(255,179,63,.10);
  box-shadow:
    inset 0 0 26px rgba(131,255,82,.11),
    0 0 28px rgba(131,255,82,.12);
  pointer-events: none;
}

.hero-logo-static,
.hero-logo-video {
  width: min(100%, 520px);
  max-height: 520px;
  object-fit: contain;
  display: block;
  transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}

.hero-logo-static {
  position: relative;
  z-index: 1;
  opacity: 1;
  filter:
    drop-shadow(0 0 18px rgba(131,255,82,.58))
    drop-shadow(0 0 18px rgba(255,179,63,.28));
}

.hero-logo-video {
  position: absolute;
  width: 86%;
  height: 86%;
  inset: 7%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.hero-video-card.is-video-active .hero-logo-static {
  opacity: 0;
  transform: scale(.97);
}

.hero-video-card.is-video-active .hero-logo-video {
  opacity: 1;
  transform: scale(1.02);
}

.hero-copy {
  position: relative;
  padding: clamp(10px, 2vw, 24px) 0;
}

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-weight: 850;
  font-size: .8rem;
  text-shadow: 0 0 12px rgba(255,179,63,.34);
}

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

h1 {
  font-size: clamp(2.8rem, 6.35vw, 6.15rem);
  line-height: .9;
  margin: 14px 0 24px;
  letter-spacing: -.065em;
}

.gradient-text {
  background:
    linear-gradient(90deg, #ffffff 0%, #d9ffd0 26%, var(--green) 48%, var(--gold) 74%, #fff 100%);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(131,255,82,.20));
}

.lede {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.72vw, 1.32rem);
  max-width: 62ch;
  margin-bottom: 22px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(131,255,82,.22);
  background: rgba(0,0,0,.34);
  box-shadow: inset 0 0 18px rgba(131,255,82,.08);
  color: rgba(247,255,242,.88);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 780;
  font-size: .75rem;
}

.hero-status i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(131,255,82,.9);
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(131,255,82,.24);
  background: rgba(255,255,255,.055);
  color: #f8fff3;
  font-weight: 820;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button.primary {
  background: linear-gradient(90deg, rgba(35,213,55,.96), rgba(255,179,63,.96));
  color: #061006;
  border: 0;
  box-shadow: var(--shadow-green), var(--shadow-gold);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,179,63,.58);
  box-shadow: 0 0 24px rgba(131,255,82,.22);
}

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

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.9rem;
}

.section-heading.align-left {
  text-align: left;
  max-width: 850px;
}

.section-heading h2,
.section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .98;
  margin: 10px 0 16px;
  letter-spacing: -.045em;
}

.section-heading p,
.section .intro {
  color: var(--muted);
  max-width: 78ch;
  font-size: 1.08rem;
}

.feature-section {
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  border-radius: var(--radius-lg);
  padding: 28px;
  background:
    radial-gradient(circle at 10% 8%, rgba(131,255,82,.16), transparent 46%),
    linear-gradient(145deg, rgba(9,22,7,.82), rgba(4,8,4,.78));
  border: 1px solid rgba(131,255,82,.22);
  box-shadow:
    0 22px 76px rgba(0,0,0,.36),
    inset 0 0 28px rgba(255,255,255,.025);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 18%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,179,63,.18), transparent 58%);
  pointer-events: none;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin-bottom: 22px;
  color: #061006;
  background: linear-gradient(135deg, var(--green), var(--gold));
  box-shadow: var(--shadow-green);
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
  letter-spacing: -.025em;
}

.feature-card p {
  color: rgba(231,255,224,.75);
  margin-bottom: 0;
}

.project-links {
  margin: 4rem auto 2rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  max-width: var(--max);
  border: 1px solid rgba(131,255,82,.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(131,255,82,.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255,179,63,.15), transparent 36%),
    rgba(5, 13, 5, .78);
  box-shadow:
    0 0 35px rgba(131,255,82,.18),
    0 0 44px rgba(255,179,63,.09),
    inset 0 0 35px rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
}

.section-heading h2 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-shadow:
    0 0 14px rgba(131,255,82,.72),
    0 0 22px rgba(255,179,63,.22);
}

.project-links .section-heading p {
  margin: .55rem auto 0;
  color: rgba(247,255,242,.72);
  font-size: .98rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
}

.project-card {
  min-height: 170px;
  padding: 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(131,255,82,.16);
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.022)),
    rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  text-decoration: none;
  color: #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
  overflow: hidden;
}

.project-card:hover,
.project-card:focus-visible,
.project-card.is-video-active {
  transform: translateY(-5px);
  border-color: rgba(131,255,82,.76);
  background:
    radial-gradient(circle at 50% 20%, rgba(131,255,82,.15), transparent 48%),
    rgba(0,0,0,.42);
  box-shadow:
    inset 0 0 24px rgba(131,255,82,.24),
    inset 0 0 44px rgba(255,179,63,.11),
    0 0 26px rgba(131,255,82,.25),
    0 0 34px rgba(255,179,63,.12);
}

.logo-media {
  position: relative;
  width: 170px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-media img,
.logo-media video {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}

.logo-media img {
  z-index: 2;
  opacity: 1;
  filter:
    drop-shadow(0 0 10px rgba(131,255,82,.34))
    drop-shadow(0 0 10px rgba(255,179,63,.18));
}

.logo-media video {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  border-radius: 16px;
}

.project-fallback {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  border: 1px solid rgba(131,255,82,.30);
  color: var(--gold-soft);
  background:
    radial-gradient(circle, rgba(131,255,82,.15), transparent 65%),
    rgba(0,0,0,.22);
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: inset 0 0 20px rgba(131,255,82,.12);
}

[data-hover-video].is-video-active .logo-media img {
  opacity: 0;
  transform: scale(.94);
}

[data-hover-video].is-video-active .logo-media video {
  opacity: 1;
  transform: scale(1.03);
  filter:
    drop-shadow(0 0 13px rgba(131,255,82,.58))
    drop-shadow(0 0 18px rgba(255,179,63,.28));
}

.project-card > span:last-child {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(247,255,242,.88);
  text-align: center;
}

.footer {
  padding: 42px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(131,255,82,.16);
  color: rgba(231,255,224,.68);
  background: rgba(0,0,0,.42);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-inner,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-card {
    min-height: 320px;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }

  h1 { font-size: clamp(2.6rem, 11vw, 5rem); }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav { gap: 14px; }

  .hero { padding-top: 34px; }
  .hero-logo-card { min-height: 260px; border-radius: 26px; }
  .hero-status { align-items: flex-start; flex-wrap: wrap; letter-spacing: .16em; }
  .project-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
