:root {
  color-scheme: dark;
  --bg: #080915;
  --panel: rgba(12, 18, 38, 0.82);
  --panel-solid: #11182c;
  --cyan: #25f4ff;
  --pink: #ff3bcb;
  --amber: #ffd166;
  --green: #67ff9a;
  --text: #f5f7ff;
  --muted: #a7b0d6;
  --line: rgba(37, 244, 255, 0.28);
  --shadow: 0 0 24px rgba(255, 59, 203, 0.22), 0 0 42px rgba(37, 244, 255, 0.12);
  font-family: "Trebuchet MS", "Lucida Grande", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 59, 203, 0.26), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(37, 244, 255, 0.22), transparent 26rem),
    linear-gradient(180deg, #060613 0%, #0e1024 42%, #080915 100%);
  color: var(--text);
}

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

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(5, 7, 20, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 16px rgba(37, 244, 255, 0.55);
  color: var(--cyan);
}

.nav-links {
  gap: clamp(0.7rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 7rem clamp(1rem, 5vw, 5rem) 4rem;
}

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

.hero-image {
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 5, 16, 0.95) 0%, rgba(4, 5, 16, 0.72) 42%, rgba(4, 5, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 9, 21, 0.92) 0%, transparent 26%);
}

.hero-content {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(3.1rem, 8vw, 7.7rem);
  line-height: 0.92;
  text-shadow: 0 0 20px rgba(255, 59, 203, 0.62), 0 0 42px rgba(37, 244, 255, 0.32);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 39rem;
  color: #d9defb;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.button.primary {
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  color: #060613;
}

.button.ghost {
  background: rgba(8, 9, 21, 0.68);
  color: var(--cyan);
}

.band {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 72rem;
  margin: 0 auto 2rem;
}

.section-heading.split {
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.stack-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.stack-card,
.news-card,
.mini-guide,
.feature-tutorial,
.automation-panel,
.video-copy {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 24, 44, 0.9), rgba(7, 10, 26, 0.82));
  box-shadow: var(--shadow);
}

.stack-card,
.news-card,
.mini-guide {
  min-height: 14rem;
  padding: 1.25rem;
}

.chip {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(255, 209, 102, 0.48);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip.hot {
  border-color: rgba(255, 59, 203, 0.62);
  color: var(--pink);
}

.stack-card p,
.news-card p,
.mini-guide p,
.feature-tutorial p,
.automation-panel p,
.video-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.feature-tutorial {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.terminal-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.terminal-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.8rem;
  align-items: center;
  min-height: 3rem;
  border-top: 1px solid rgba(37, 244, 255, 0.2);
  color: #dce3ff;
}

.terminal-list span {
  color: var(--cyan);
  font-weight: 900;
}

.mini-guides {
  display: grid;
  gap: 1rem;
}

.mini-guide {
  min-height: 0;
}

.guide-steps {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: #dce3ff;
  line-height: 1.45;
}

pre {
  margin: 1rem 0 0;
  overflow-x: auto;
  border: 1px solid rgba(37, 244, 255, 0.24);
  background: rgba(2, 5, 14, 0.72);
  padding: 0.8rem;
  color: var(--green);
}

code {
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 0.86rem;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  min-height: 18rem;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #040814;
  box-shadow: var(--shadow);
}

.video-frame iframe,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame iframe {
  border: 0;
}

.video-placeholder {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.video-placeholder strong {
  color: var(--cyan);
}

.video-copy {
  padding: 1.25rem;
}

.video-tutorials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 72rem;
  margin: 1rem auto 0;
}

.video-tutorial-card {
  min-height: 14rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 24, 44, 0.9), rgba(7, 10, 26, 0.82));
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.video-tutorial-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  border: 1px solid rgba(37, 244, 255, 0.24);
  background: #050814;
}

.thumbnail-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 1rem 0;
  border: 1px solid rgba(255, 59, 203, 0.32);
}

.video-tutorial-card p {
  color: var(--muted);
  line-height: 1.65;
}

.video-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.video-tutorial-card a {
  color: var(--cyan);
  font-weight: 800;
}

.refresh-pill {
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  color: var(--cyan);
  background: rgba(8, 9, 21, 0.76);
  white-space: nowrap;
}

.news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card time {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.news-card a {
  color: var(--cyan);
  font-weight: 800;
}

.source-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.automation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.ticker {
  display: grid;
  gap: 0.75rem;
  align-content: center;
}

.ticker span {
  border-left: 3px solid var(--pink);
  padding: 0.75rem 1rem;
  background: rgba(255, 59, 203, 0.1);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .site-header,
  .section-heading.split,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: 88vh;
  }

  h1 {
    max-width: 10ch;
  }

  .stack-grid,
  .news-grid,
  .tutorial-layout,
  .automation-panel,
  .video-layout,
  .video-tutorials {
    grid-template-columns: 1fr;
  }

  .refresh-pill {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 9rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}
