:root {
  color-scheme: dark;
  --bg: #07100f;
  --panel: rgba(12, 20, 19, 0.86);
  --panel-strong: rgba(18, 28, 26, 0.96);
  --text: #eef7f2;
  --muted: #a8bbb5;
  --line: rgba(222, 246, 237, 0.16);
  --mint: #81f7bf;
  --cyan: #70d7f2;
  --coral: #ff8d72;
  --yellow: #f8d978;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--bg);
  background-size: 74px 74px, 74px 74px, auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1160px, calc(100% - 28px));
  padding: 8px;
  border: 1px solid rgba(238, 247, 242, 0.12);
  border-radius: 8px;
  background: rgba(7, 16, 15, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.brand,
.nav-action,
.button,
.tab {
  min-height: 42px;
  border-radius: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #07100f;
  border: 1px solid rgba(238, 247, 242, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint), var(--cyan) 52%, var(--yellow));
  box-shadow: 0 0 22px rgba(129, 247, 191, 0.22);
}

.nav-links {
  display: inline-flex;
  gap: 4px;
  justify-self: center;
  color: var(--muted);
}

.nav-links a {
  padding: 11px 14px;
  border-radius: 7px;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(238, 247, 242, 0.08);
}

.nav-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 0 15px;
  color: #06100d;
  font-weight: 800;
  overflow: hidden;
  background: var(--mint);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, 92vh);
  align-items: end;
  overflow: hidden;
  padding: 116px max(22px, calc((100vw - 1160px) / 2)) 28px;
  border-bottom: 1px solid var(--line);
}

.hero-visual,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 16, 15, 0.96), rgba(7, 16, 15, 0.5) 50%, rgba(7, 16, 15, 0.54)),
    linear-gradient(0deg, var(--bg), rgba(7, 16, 15, 0.14) 45%, rgba(7, 16, 15, 0.78));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-bottom: clamp(28px, 8vh, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(4rem, 13vw, 10.5rem);
  line-height: 0.86;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

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

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 26px;
  color: rgba(238, 247, 242, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.48;
}

.hero-actions,
.mini-stats,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button::after,
.tab::after,
.nav-action::after {
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 56%;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 520ms ease;
}

.button {
  min-width: 166px;
  padding: 0 17px;
  font-weight: 800;
}

.button:hover,
.tab:hover,
.signal-card:hover,
.record-card:hover,
.nav-action:hover {
  transform: translateY(-2px);
}

.button:hover::after,
.tab:hover::after,
.nav-action:hover::after {
  left: 120%;
}

.button:active,
.tab:active,
.nav-action:active,
.signal-card:active {
  transform: translateY(0) scale(0.98);
}

.button.primary {
  color: #06100d;
  border-color: rgba(129, 247, 191, 0.8);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 0 0 rgba(129, 247, 191, 0);
}

.button.primary:hover,
.nav-action:hover {
  box-shadow: 0 14px 36px rgba(129, 247, 191, 0.18);
}

.button.ghost {
  color: var(--text);
  background: rgba(238, 247, 242, 0.08);
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.signal-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(900px, 100%);
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 15, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-card {
  position: relative;
  min-width: 0;
  min-height: 138px;
  padding: 18px 24px;
  color: inherit;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease,
    box-shadow 180ms ease;
}

.signal-card:last-child {
  border-right: 0;
}

.signal-card:hover {
  background: rgba(238, 247, 242, 0.05);
  box-shadow: inset 0 1px 0 rgba(238, 247, 242, 0.08);
}

.signal-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.signal-card:hover strong {
  color: var(--mint);
  transform: translateX(3px);
}

.signal-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 247, 242, 0.035);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 24s linear infinite;
}

.ticker span {
  padding: 17px 34px;
  color: rgba(238, 247, 242, 0.64);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: end;
  margin-bottom: 30px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.62fr);
  gap: clamp(22px, 5vw, 76px);
  align-items: center;
}

.submit-copy p,
.record-card p,
.wheel-side p,
.empty-state p {
  color: var(--muted);
  line-height: 1.58;
}

.submit-copy p {
  max-width: 580px;
  margin: 22px 0;
  font-size: 1.05rem;
}

.mini-stats span {
  padding: 9px 12px;
  color: rgba(238, 247, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 247, 242, 0.05);
}

.idea-form {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.idea-form label {
  display: grid;
  gap: 8px;
}

.idea-form label span {
  color: rgba(238, 247, 242, 0.78);
  font-size: 0.85rem;
  font-weight: 760;
}

.idea-form input,
.idea-form select,
.idea-form textarea {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  border: 1px solid rgba(238, 247, 242, 0.14);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 10, 10, 0.6);
}

.idea-form input,
.idea-form select {
  padding: 0 13px;
}

.idea-form textarea {
  min-height: 126px;
  padding: 13px;
  resize: vertical;
}

.idea-form input:focus,
.idea-form select:focus,
.idea-form textarea:focus {
  border-color: rgba(129, 247, 191, 0.72);
  box-shadow: 0 0 0 3px rgba(129, 247, 191, 0.12);
}

.form-note {
  min-height: 20px;
  margin: 0;
  color: var(--mint);
  font-size: 0.92rem;
}

.board-section {
  padding-top: 36px;
}

.tabs {
  margin-bottom: 18px;
}

.tab {
  min-width: 132px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(238, 247, 242, 0.04);
}

.tab.active {
  color: #06100d;
  border-color: rgba(129, 247, 191, 0.8);
  background: var(--mint);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.record-card,
.empty-state,
.wheel-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.record-card {
  position: relative;
  display: grid;
  min-height: 230px;
  padding: 18px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.record-card:hover {
  border-color: rgba(129, 247, 191, 0.42);
}

.record-top,
.record-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.record-top {
  color: var(--muted);
  font-size: 0.86rem;
}

.record-card h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
}

.record-bottom {
  margin-top: auto;
  color: rgba(238, 247, 242, 0.74);
  font-size: 0.9rem;
}

.idea-meta {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.empty-state {
  padding: 24px;
}

.wheel-panel.active {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.7fr);
  gap: clamp(20px, 5vw, 58px);
  align-items: center;
  padding: clamp(18px, 4vw, 34px);
}

.wheel-wrap {
  position: relative;
  display: grid;
  width: min(460px, 100%);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto;
}

.wheel-disc {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 10px solid rgba(238, 247, 242, 0.12);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(7, 16, 15, 0.4),
    0 18px 70px rgba(0, 0, 0, 0.3);
  transition: transform 1300ms cubic-bezier(0.14, 0.72, 0.14, 1);
}

.wheel-disc::after {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  content: "";
  background: rgba(7, 16, 15, 0.78);
  box-shadow: 0 0 0 1px rgba(238, 247, 242, 0.22);
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  border-top: 24px solid var(--text);
  transform: translateX(-50%);
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 42%;
  max-width: 180px;
  color: #06100d;
  font-size: clamp(0.62rem, 1.5vw, 0.82rem);
  font-weight: 900;
  text-align: right;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.18);
  transform: rotate(var(--angle)) translateX(13%) rotate(90deg);
  transform-origin: left center;
}

.wheel-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.wheel-side {
  max-width: 430px;
}

.wheel-side h3 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding-top: 104px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg), rgba(7, 16, 15, 0.14) 52%, rgba(7, 16, 15, 0.8)),
      linear-gradient(90deg, rgba(7, 16, 15, 0.94), rgba(7, 16, 15, 0.42));
  }

  .split-section,
  .section-heading,
  .wheel-panel.active {
    grid-template-columns: 1fr;
  }

  .record-list {
    grid-template-columns: 1fr 1fr;
  }

  .signal-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-card {
    min-height: 116px;
    padding: 13px 10px;
  }
}

@media (max-width: 560px) {
  .brand,
  .nav-action,
  .button,
  .tab {
    min-height: 40px;
  }

  .topbar {
    top: 8px;
    width: calc(100% - 16px);
  }

  .brand span:last-child,
  .nav-action span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5.8rem);
  }

  .hero {
    min-height: 92svh;
    padding-right: 16px;
    padding-left: 16px;
  }

  .button,
  .tab {
    width: 100%;
  }

  .signal-card strong {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .signal-card span {
    font-size: 0.78rem;
  }

  .record-list {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
