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

:root {
  --bg: #0c0c11;
  --surface: #0e0e15;
  --surface2: #13131c;
  --border: rgba(255, 255, 255, 0.06);

  --text: #ede8df;
  --muted: #6b665f;
  --muted2: #9c9590;

  --accent: #c8f060;
  --accent-dim: rgba(200, 240, 96, 0.12);

  --success: #4ade80;
  --error: #f87171;

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Instrument Sans', sans-serif;
}

body:not(.dark) {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f5f5f5;

  --border: rgba(0, 0, 0, 0.1);

  --text: #111111;
  --muted: #555555;
  --muted2: #333333;

  --accent: #5e8302;
  --accent-dim: rgba(200, 240, 96, 0.2);

  --success: #105529;
  --error: #dc2626;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
  cursor: none;
}

footer {
  margin-top: auto;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

#cur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  width: 10px;
  height: 10px;

  background: var(--accent);
  border-radius: 50%;

  pointer-events: none;
  mix-blend-mode: difference;

  transform: translate(-50%, -50%);
  transition: width .25s, height .25s;
}

#cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(200, 240, 96, .35);
  border-radius: 50%;

  pointer-events: none;

  transform: translate(-50%, -50%);
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
}

body:has(a:hover, button:hover, input:focus, textarea:focus) #cur {
  width: 22px;
  height: 22px;
}

body:has(a:hover, button:hover, input:focus, textarea:focus) #cur-ring {
  width: 60px;
  height: 60px;
  border-color: rgba(200, 240, 96, .15);
}

nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1.6rem 3.5rem;

  transition: all .5s;
}

nav.scrolled {
  padding: 1rem 3.5rem;
  background: rgba(9, 9, 14, .85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(1.4);
}

body:not(.dark) nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-logo {
  position: relative;

  color: var(--accent);
  text-decoration: none;

  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .18em;
}

.nav-logo::after {
  content: '';

  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: var(--accent);

  transition: width .3s;
}

.nav-logo:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  position: relative;

  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;

  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;

  transition: color .2s;
}

.nav-links a::before {
  content: attr(data-n);

  position: absolute;
  top: -9px;
  left: 0;

  font-size: .52rem;
  color: var(--accent);

  opacity: .55;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-cta,
.btn-dark-toggle,
#btnDark,
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .6rem;

  padding: .65rem 1.6rem;

  border-radius: 2px;

  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;

  transition: all .25s;
}

.nav-cta,
.btn-dark-toggle {
  border: 1px solid rgba(200, 240, 96, .3);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

.nav-cta:hover,
.btn-dark-toggle:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-submit,
#btnDark {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.btn-submit:hover,
#btnDark:hover {
  background: #d4f570;
  border-color: #d4f570;
}

.btn-submit:active {
  transform: scale(.97);
}

.btn-arrow {
  transition: padding-left .2s;
}

.btn-submit:hover .btn-arrow {
  padding-left: .3rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  width: 36px;
  height: 36px;

  padding: 4px;

  background: transparent;
  border: none;

  cursor: pointer;

  z-index: 600;
}

.nav-burger span {
  display: block;

  width: 100%;
  height: 1.5px;

  background: var(--text);
  border-radius: 2px;

  transition: transform .3s, opacity .3s;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 490;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  background: rgba(9, 9, 14, .97);
  backdrop-filter: blur(24px);
}

body:not(.dark) .nav-mobile {
  background: rgba(255, 255, 255, .98);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--muted2);
  text-decoration: none;
  text-transform: uppercase;

  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  letter-spacing: .08em;

  transition: color .2s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--accent);
}

.nav-mobile .nav-mobile-cta {
  margin-top: .5rem;
  padding: .65rem 1.8rem;

  border: 1px solid rgba(200, 240, 96, .3);
  border-radius: 2px;

  color: var(--accent) !important;

  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

section {
  padding: 6rem 3.5rem;
}

.label {
  display: flex;
  align-items: center;
  gap: .8rem;

  margin-bottom: 1.2rem;

  color: var(--accent);
  text-transform: uppercase;

  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .24em;
}

.label-n {
  font-size: .6rem;
  color: rgba(74, 100, 7, 0.815);
}

.section-h {
  margin-bottom: 4rem;

  text-align: center;
  line-height: 1.05;

  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.section-h em {
  font-style: italic;
}

.blob {
  position: absolute;

  border-radius: 50%;
  filter: blur(80px);

  pointer-events: none;
}

.blob-1 {
  top: -80px;
  right: -120px;

  width: 500px;
  height: 500px;

  background: rgba(200, 240, 96, .05);

  animation: drift1 12s ease-in-out infinite alternate;
}

.blob-2 {
  bottom: -50px;
  left: -80px;

  width: 350px;
  height: 350px;

  background: rgba(100, 140, 255, .04);

  animation: drift2 15s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-40px, 30px);
  }
}

@keyframes drift2 {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(30px, -40px);
  }
}

.corner {
  position: absolute;

  width: 16px;
  height: 16px;

  border-style: solid;
  border-color: rgba(200, 240, 96, .25);
}

.c-tl {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.c-tr {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
}

.c-bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
}

.c-br {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity .9s,
    transform .9s cubic-bezier(.25, .46, .45, .94);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.gb-hero {
  position: relative;

  min-height: 50vh;
  padding: 12rem 3.5rem 4rem;

  overflow: hidden;

  border-bottom: 1px solid var(--border);
}

.gb-hero-content {
  position: relative;
  z-index: 2;

  max-width: 700px;
}

.gb-subtitle {
  max-width: 450px;
  padding-left: 1.5rem;

  color: var(--muted2);
  line-height: 1.75;

  border-left: 1px solid rgba(200, 240, 96, .2);

  font-size: .95rem;
}

.gb-main-layout {
  display: flex;
  flex-direction: column;
}

.gb-form-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.gb-form-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;

  align-items: start;
}

.validation-bars {
  display: flex;
  gap: 6px;
  margin: 1rem 0;
}

.v-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.v-bar.--red {
  background: #e74c3c;
}

.v-bar.--orange {
  background: #f39c12;
}

.v-bar.--green {
  background: #2ecc71;
}

.gb-illus-col {
  position: sticky;
  top: 7rem;
}

.gb-illus-box {
  position: relative;

  overflow: hidden;

  padding: 2rem;

  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.gb-illus {
  display: block;
  width: 100%;

  opacity: .85;

  transition: opacity .3s;
}

.gb-illus-box:hover .gb-illus {
  opacity: 1;
}

.gb-form-col {
  max-width: 640px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: .6rem;

  margin-bottom: 1.5rem;
  padding: .85rem 1.2rem;

  border-radius: 2px;

  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
}

.msg p {
  margin: .15rem 0;
}

.msg-icon {
  flex-shrink: 0;
}

.msg--success {
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, .25);
  color: var(--success);
}

.msg--error {
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, .25);
  color: var(--error);
}

.form-row,
.form-row--half {
  display: grid;
  gap: 1rem;

  margin-bottom: 1rem;
}

.form-row,
.form-row--half {
  grid-template-columns: 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;

  margin-bottom: 1rem;
}

.form-group label {
  margin-bottom: .5rem;

  color: var(--muted);
  text-transform: uppercase;

  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;

  color: var(--text);

  outline: none;

  font-family: var(--font-body);
  font-size: .92rem;

  transition:
    border-color .25s,
    box-shadow .25s;

  cursor: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(200, 240, 96, .4);
  box-shadow: 0 0 0 3px rgba(200, 240, 96, .06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  font-size: .82rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: .5rem;
}

.char-counter {
  color: var(--muted);

  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
}

.char-counter.--warning {
  color: var(--error);
}

.gb-messages-section {
  border-bottom: 1px solid var(--border);
}

.gb-msg-count {
  margin-top: -2.5rem;
  margin-bottom: 3rem;

  color: var(--muted);
  text-transform: uppercase;

  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
}

.gb-messages-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;

  background: var(--border);
}

.gb-message-card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;

  align-items: start;

  padding: 2rem;

  background: var(--bg);

  transition: background .3s;
}

.gb-message-card:hover {
  background: var(--surface2);
}

.gb-msg-idx {
  color: transparent;
  line-height: 1;

  -webkit-text-stroke: 1px rgba(120, 155, 32, 0.842);

  font-family: var(--font-display);
  font-size: 2.5rem;
}

.gb-msg-author {
  margin-bottom: .25rem;

  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.gb-msg-meta {
  margin-bottom: .75rem;

  color: var(--muted);

  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
}

.gb-msg-body {
  color: var(--muted2);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: .9rem;
}

.gb-back {
  padding: 2rem 3.5rem;

  border-bottom: 1px solid var(--border);
}

.gb-back-link {
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;

  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;

  transition: opacity .2s;
}

.gb-back-link:hover {
  opacity: .7;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 2rem 3.5rem;

  border-top: 1px solid var(--border);
}

footer .f-left,
.f-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.f-logo {
  color: var(--accent);

  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .18em;
}

.f-copy,
.f-right a {
  color: #a8a39c;

  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
}

.f-right a {
  text-decoration: none;
  text-transform: uppercase;

  transition: color .2s;
}

.f-right a:hover {
  color: var(--text);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;

  margin-top: 2rem;
}

.page-link {
  padding: .45rem .9rem;

  border: 1px solid var(--border);
  border-radius: 2px;

  color: var(--muted);
  text-decoration: none;

  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;

  transition: all .2s;
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

@media (hover:none),
(pointer:coarse) {
  body {
    cursor: auto !important;
  }

  #cur,
  #cur-ring {
    display: none !important;
  }

  .btn-submit,
  a,
  button,
  input,
  textarea {
    cursor: pointer;
  }
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;

    margin-bottom: .75rem;
  }

  .form-group label {
    width: 110px;
    flex-shrink: 0;

    margin-bottom: 0;

    text-align: right;
  }

  .form-group:has(textarea) {
    align-items: flex-start;
  }

  .form-group:has(textarea) label {
    padding-top: .75rem;
  }
}

@media (min-width: 960px) {
  .gb-main-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .gb-main-layout .gb-form-section,
  .gb-main-layout .gb-messages-section {
    flex: 1;
    border-bottom: none;
  }

  .gb-main-layout .gb-form-section {
    border-right: 1px solid var(--border);
  }

  .gb-main-layout .gb-messages-section {
    position: sticky;
    top: 0;

    max-height: calc(100vh - 8rem);

    overflow-y: auto;
  }
}

@media (max-width: 1024px) {
  html {
    width: 100%;
    margin: auto;
  }

  .gb-form-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gb-illus-col {
    position: static;
  }

  .gb-illus-box {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .gb-hero {
    min-height: 40vh;
    padding: 9rem 1.5rem 3rem;
  }

  .section-h {
    margin-bottom: 2.5rem;
  }

  .form-row,
  .form-row--half {
    grid-template-columns: 1fr;
  }

  .form-group {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group label {
    width: auto;
    text-align: left;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .btn-submit {
    justify-content: center;
  }

  .gb-message-card {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;

    padding: 1.5rem;
  }

  .gb-msg-idx {
    font-size: 1.8rem;
  }

  .gb-back {
    padding: 2rem 1.5rem;
  }

  footer {
    flex-direction: column;
    gap: 1.2rem;

    text-align: center;
  }

  footer .f-left {
    flex-direction: column;
    gap: .5rem;
  }
}

@media (max-width: 480px) {
  .form-row--half {
    grid-template-columns: 1fr;
  }
}