:root {
  --bg: #020304;
  --fg: #f5f7f4;
  --muted: #8a958e;
  --accent: #9be15d;
  --accent-soft: rgba(155, 225, 93, 0.14);
  --accent-strong: rgba(155, 225, 93, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-lg: 24px;
  --radius-pill: 999px;
  --blur-strong: 42px;
  --sheet-bg: rgba(7, 12, 8, 0.98);
  --sheet-border: rgba(155, 225, 93, 0.2);
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button {
  font: inherit;
}

.page {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at top left, #0a1410 0, #020304 52%, #000 100%);
  overflow: hidden;
}

/* grain + orbs */

.noise-layer {
  pointer-events: none;
  position: absolute;
  inset: -10px;
  background-image: url("https://grainy-gradients.vercel.app/noise.png");
  opacity: 0.08;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.grain-canvas {
  position: absolute;
  inset: -20px;
  opacity: 0.13;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(var(--blur-strong));
  opacity: 0.7;
  background: radial-gradient(circle at 20% 20%, var(--accent-strong), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.orb--left {
  width: 320px;
  height: 320px;
  left: -140px;
  bottom: -80px;
}

.orb--right {
  width: 260px;
  height: 260px;
  right: -140px;
  top: 20%;
}

.orb--top {
  width: 210px;
  height: 210px;
  left: 10%;
  top: -80px;
}

/* content */

.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(2, 3, 4, 0.7);
  backdrop-filter: blur(16px);
}

.logo {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  background: transparent;
  filter: saturate(0.95) contrast(1.02);
}

.header-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-accent {
  color: var(--accent);
  text-shadow: 0 0 21px rgba(155, 225, 93, 0.7);
}

.hero-sub {
  display: block;
  color: #d7e0d6;
}

.hero-desc {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(155, 225, 93, 0.12), transparent 70%),
    rgba(2, 3, 4, 0.85);
  backdrop-filter: blur(22px);
  padding: 12px;
  gap: 12px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(155, 225, 93, 0.6);
  background: radial-gradient(circle at left, var(--accent-soft), transparent 70%),
    rgba(0, 0, 0, 0.7);
  font-size: 11px;
  color: #d9f7c2;
  gap: 6px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, var(--accent));
  box-shadow: 0 0 24px rgba(155, 225, 93, 0.8);
}

.dot--pulse {
  animation: pulse 1.8s infinite ease-in-out;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 9, 8, 0.82);
  color: #d1ddd1;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tag:active {
  transform: scale(0.96) translateY(1px);
}

.tag--active {
  border-color: rgba(155, 225, 93, 0.7);
  background: rgba(155, 225, 93, 0.08);
  color: #e4f7d4;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-cta {
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--accent), #40c057);
  color: #041006;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(155, 225, 93, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.meta-value {
  font-size: 11px;
  color: #e3f0e3;
}

/* ticker removed — simplified header and UI for minimal look */

/* bottom sheet */

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
  /* ensure bottom sheet is visually offscreen until opened */
  will-change: transform, opacity;
}

.bottom-sheet--open {
  pointer-events: auto;
}

.sheet-inner {
  width: min(520px, 100% - 32px);
  border-radius: 22px 22px 16px 16px;
  border: 1px solid var(--sheet-border);
  background: var(--sheet-bg);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.8);
  padding: 10px 12px 14px;
  transform: translateY(100%);
}

.bottom-sheet--open .sheet-inner {
  transform: translateY(0);
}

.sheet-handle {
  position: absolute;
  top: 6px;
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.sheet-label {
  margin-top: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.sheet-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top right, rgba(155, 225, 93, 0.15), transparent 60%),
    rgba(5, 8, 6, 0.95);
  padding: 10px;
}

.card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(155, 225, 93, 0.8);
  margin-bottom: 4px;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #c4d2c2;
}

.card-tag {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(155, 225, 93, 0.4);
  font-size: 10px;
  color: #e4f7d4;
  background: rgba(155, 225, 93, 0.05);
}

.sheet-cta {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(155, 225, 93, 0.7);
  background: transparent;
  color: #e6fadd;
  padding: 7px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
}

/* animations */

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(155, 225, 93, 0.7);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 34px rgba(155, 225, 93, 1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(155, 225, 93, 0.7);
  }
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* responsive */

@media (max-width: 720px) {
  .page {
    padding: 12px 12px 12px;
  }

  /* stack into single column for clearer mobile hierarchy */
  .hero-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .hero-copy h1 {
    font-size: 20px;
  }

  .hero-desc {
    font-size: 12px;
  }

  .hero-panel {
    padding: 12px;
  }

  /* touch-friendly footer layout */
  .hero-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero-cta {
    justify-content: center;
    padding: 12px 14px;
    min-height: 48px;
    font-size: 12px;
  }

  .hero-meta {
    align-items: flex-start;
  }

  .tag {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-copy h1 {
    font-size: 18px;
    line-height: 1.06;
  }

  .hero-desc {
    margin-top: 8px;
    font-size: 12px;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .tag {
    padding: 10px 12px;
    font-size: 13px;
  }

  .sheet-inner {
    width: calc(100% - 24px);
    max-height: 72vh;
    overflow: auto;
    padding-bottom: 16px;
  }

  .sheet-handle {
    left: 50%;
    transform: translateX(-50%);
  }

  .ticker-item {
    font-size: 10px;
  }
}