:root {
  --bg: #020203;
  --bg-soft: #050509;
  --border: #1f1f23;
  --fg: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --chip-bg: #18181b;
  --radius-lg: 18px;
  --radius-md: 999px;
  --radius-xs: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
}

/* layout */

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 480px) {
  .page {
    background-image: linear-gradient(
        to right,
        rgba(39, 39, 42, 0.3) 1px,
        transparent 1px
      ),
      linear-gradient(to bottom, rgba(39, 39, 42, 0.3) 1px, transparent 1px);
    background-size: 120px 120px;
  }
}

.panel {
  border-inline: 1px solid transparent;
}

.panel--blank {
  display: none;
}

.panel--main {
  padding: 2rem 1.1rem 1.8rem;
  background:
    radial-gradient(circle at top left, #18181b 0, transparent 55%),
    radial-gradient(circle at bottom right, #0b0b10 0, #020203 60%);
  max-width: 780px;
  margin: 0 auto;
  animation: page-fade 0.8s ease-out forwards;
}

/* hero */

.hero {
  margin-bottom: 2.2rem;
  animation: hero-rise 0.8s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.hero__time {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  margin: 0 0 0.6rem;
  background: linear-gradient(90deg, #fafafa, #f97316);
  -webkit-background-clip: text;
  color: transparent;
  animation: title-glow 5s ease-in-out infinite;
}

.hero__title span {
  font-weight: 600;
}

.hero__subtitle {
  margin: 0 0 0.9rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.hero__meta-dot {
  opacity: 0.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero__scroll {
  margin-top: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.hero__scroll-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, #f97316, transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: #f97316;
  animation: scroll-line 1.5s infinite;
}

/* chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  line-height: 1;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease;
}

.chip__icon {
  font-size: 0.95rem;
}

.chip--primary {
  background: var(--fg);
  color: #020203;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.chip--primary:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
}

.chip--ghost {
  background: rgba(24, 24, 27, 0.7);
  border-color: var(--border);
  color: var(--fg);
}

.chip--ghost:hover {
  background: rgba(39, 39, 42, 0.9);
  transform: translateY(-1px);
}

.chip--outline {
  background: transparent;
  border-color: rgba(113, 113, 122, 0.9);
  color: var(--muted);
}

.chip--outline:hover {
  color: var(--fg);
  border-color: rgba(244, 244, 245, 0.4);
}

/* sections */

.block {
  margin-bottom: 2.1rem;
}

.block__header {
  margin-bottom: 0.8rem;
}

.block__title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.block__subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* cards */

.card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-soft), #020203);
  border: 1px solid rgba(39, 39, 42, 0.9);
  transition: border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, background 0.2s ease;
}

.card--fade {
  opacity: 0;
  animation: card-fade 0.8s ease-out forwards;
}

.card--delay-1 {
  animation-delay: 0.15s;
}

.card--delay-2 {
  animation-delay: 0.3s;
}

.card:hover {
  border-color: rgba(250, 250, 250, 0.1);
  background: radial-gradient(circle at top left, #18181b, #020203 55%);
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
}

.card__title {
  font-size: 0.94rem;
  margin: 0 0 0.28rem;
}

.card__desc {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 32rem;
}

.card__meta {
  margin: 0;
  font-size: 0.74rem;
  color: #71717a;
}

.card__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  text-decoration: none;
  background: var(--accent);
  color: #020203;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.card__pill:hover {
  background: #fb923c;
  transform: translateY(-1px);
}

.card__pill--soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.card__arrow {
  font-size: 0.82rem;
}

/* tags */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  border-radius: var(--radius-lg);
  background: rgba(15, 15, 18, 0.9);
  border: 1px solid rgba(39, 39, 42, 0.9);
  padding: 0.45rem 0.8rem;
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tag__label {
  font-weight: 500;
}

.tag__note {
  color: var(--muted);
  font-size: 0.7rem;
}

/* stack icons + tooltips */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 0.6rem;
}

.stack-grid--icons {
  align-items: stretch;
}

.stack-icon-wrap {
  position: relative;
  border: none;
  padding: 0.65rem 0;
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid rgba(39, 39, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease,
    transform 0.12s ease, box-shadow 0.12s ease;
}

.stack-icon-wrap:hover,
.stack-icon-wrap:focus-visible,
.stack-icon-wrap.is-touch {
  background: #111827;
  border-color: rgba(250, 250, 250, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  outline: none;
}

.stack-icon-wrap:focus-visible {
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
}

.stack-icon {
  font-size: 1.5rem;
  color: #e4e4e7;
}

/* tooltip */

.stack-tooltip {
  position: absolute;
  left: 50%;
  bottom: 115%;
  transform: translateX(-50%) translateY(6px);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #18181b;
  color: var(--fg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  border: 1px solid rgba(63, 63, 70, 0.9);
  z-index: 5;
}

.stack-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(24, 24, 27, 1) transparent transparent transparent;
}

.stack-icon-wrap:hover .stack-tooltip,
.stack-icon-wrap:focus-visible .stack-tooltip,
.stack-icon-wrap.is-touch .stack-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* footer */

.footer {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(39, 39, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.footer__link {
  color: var(--muted);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--fg);
}

/* animations */

@keyframes page-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-glow {
  0%, 100% {
    text-shadow: 0 0 0 rgba(249, 115, 22, 0);
  }
  50% {
    text-shadow: 0 0 16px rgba(249, 115, 22, 0.4);
  }
}

@keyframes scroll-line {
  0% {
    top: -10px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    top: 24px;
    opacity: 0;
  }
}

/* reduced motion */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* small phones */

@media (max-width: 480px) {
  .panel--main {
    padding: 1.6rem 1rem 1.7rem;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__subtitle {
    font-size: 0.84rem;
  }

  .card {
    flex-direction: column;
    align-items: flex-start;
  }

  .card__pill {
    align-self: flex-start;
    margin-top: 0.45rem;
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .hero__scroll {
    margin-top: 1.4rem;
  }
}

/* tablets / desktop */

@media (min-width: 768px) {
  .panel--main {
    padding: 3rem 2.4rem 2.3rem;
  }

  .hero__title {
    font-size: 2.6rem;
  }

  .hero__subtitle {
    font-size: 0.92rem;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page {
    grid-template-columns: 1fr minmax(0, 780px) 1fr;
  }

  .panel {
    border-inline: 1px solid var(--border);
  }

  .panel--blank {
    display: block;
  }

  .panel--main {
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 3rem;
  }
}
