:root {
  --bg: #050814;
  --bg-soft: #0b1020;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.11);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #aab6cf;
  --blue: #2b8cff;
  --cyan: #36d8ff;
  --green: #33e097;
  --violet: #725cff;
  --pink: #ff4fd8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 70%);
  z-index: -3;
}

a {
  color: inherit;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -4;
  background:
    radial-gradient(circle at 20% 10%, rgba(43, 140, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(114, 92, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 50% 90%, rgba(51, 224, 151, 0.12), transparent 30rem),
    #050814;
}

.orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.45;
  animation: floatOrb 11s ease-in-out infinite alternate;
}

.orb-one {
  left: -120px;
  top: 120px;
  background: var(--blue);
}

.orb-two {
  right: -120px;
  top: 220px;
  background: var(--violet);
  animation-delay: 1.3s;
}

.orb-three {
  left: 40%;
  bottom: -160px;
  background: var(--green);
  animation-delay: 2.1s;
}

@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -36px, 0) scale(1.08); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(5, 8, 20, 0.76);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--card-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo {
  width: 178px;
  height: 72px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 18px rgba(54, 216, 255, 0.18));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.brand-logo:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 0 22px rgba(51, 224, 151, 0.46));
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: 0.18s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.menu-button {
  display: none;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 20px;
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 86px clamp(18px, 5vw, 64px);
}

.hero {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-text {
  max-width: 980px;
  margin: 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--card-border);
  color: #dce8ff;
  font-weight: 800;
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(51,224,151,0.13), 0 0 22px rgba(51,224,151,0.9);
}

.eyebrow {
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.055em;
}

h1 {
  font-size: clamp(48px, 8.6vw, 96px);
  line-height: 0.9;
  text-wrap: balance;
}

.typing-hero {
  min-height: 1.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1em;
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: -0.075em;
}

.terminal-prompt {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(54, 216, 255, 0.65);
  animation: slashBlink 0.9s steps(1, end) infinite;
}

.typed-text {
  color: var(--text);
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.12);
}

.typing-cursor {
  color: var(--blue);
  animation: cursorBlink 0.8s steps(1, end) infinite;
  text-shadow: 0 0 18px rgba(57, 137, 255, 0.65);
}

@keyframes slashBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0.28; }
}

@keyframes cursorBlink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  text-wrap: balance;
}

h3 {
  font-size: 24px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 780px;
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 28px auto 34px;
  color: #dce8ff;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.center-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 18px 44px rgba(43, 140, 255, 0.32);
}

.button.ghost {
  background: var(--card);
  color: white;
  border-color: var(--card-border);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 30px;
}

.hero-stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-card,
.category-card,
.project-card,
.download-card,
.content-card,
.split-section,
.roadmap-card,
.cta-section,
.mini-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  border: 1px solid var(--card-border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-stack {
  position: relative;
  min-height: 440px;
}

.main-widget {
  overflow: hidden;
  transform: rotate(0.8deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.window-bar p {
  margin: 0 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.window-bar span:nth-child(2) { background: #ffbd2e; }
.window-bar span:nth-child(3) { background: #28c840; }

.counter-preview {
  padding: 46px 34px 42px;
  text-align: center;
}

.preview-label {
  color: var(--cyan);
  font-weight: 900;
}

#counterText {
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 950;
  color: white;
  line-height: 1;
  margin: 28px 0 30px;
}

.preview-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-buttons button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(43,140,255,0.24);
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  width: 235px;
}

.mini-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(54,216,255,0.14);
}

.mini-card strong {
  display: block;
}

.mini-card p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.floating-card {
  position: absolute;
  backdrop-filter: blur(16px);
}

.floating-card.one {
  left: -42px;
  bottom: 58px;
}

.floating-card.two {
  right: -22px;
  top: 42px;
}

.marquee-section {
  padding-top: 20px;
  padding-bottom: 20px;
}

.marquee {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--card-border);
}

.marquee span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.075);
  color: #dbe7ff;
  font-weight: 900;
  font-size: 13px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  font-size: 18px;
}

.categories-section .section-heading {
  text-align: center;
}

.categories-section .section-heading p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.categories-section .category-card {
  text-align: center;
}

.categories-section .category-card span {
  margin-left: auto;
  margin-right: auto;
}


.category-grid,
.project-grid,
.download-grid,
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.category-card,
.project-card,
.download-card,
.content-card,
.roadmap-card {
  padding: 26px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before,
.project-card::before,
.download-card::before,
.roadmap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(54,216,255,0.18), transparent 50%);
  opacity: 0;
  transition: opacity .2s ease;
}

.category-card:hover::before,
.project-card:hover::before,
.download-card:hover::before,
.roadmap-card:hover::before {
  opacity: 1;
}

.category-card > *,
.project-card > *,
.download-card > *,
.roadmap-card > * {
  position: relative;
}

.category-card span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-bottom: 18px;
  background: rgba(54,216,255,0.12);
  font-size: 28px;
}

.category-card small {
  display: inline-flex;
  margin-top: 12px;
  color: var(--cyan);
  font-weight: 900;
}

.category-card:hover,
.project-card:hover,
.download-card:hover,
.roadmap-card:hover {
  transform: translateY(-5px);
  border-color: rgba(54, 216, 255, 0.42);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055));
}

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr auto;
  align-items: center;
  gap: 24px;
}

.featured-panel {
  position: relative;
  overflow: hidden;
}

.featured-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(43,140,255,0.18);
  filter: blur(35px);
}

.feature-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px clamp(18px, 5vw, 64px) 30px;
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  display: inline-flex;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.content-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 64px) 84px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.sidebar {
  position: sticky;
  top: 96px;
}

.list {
  color: var(--muted);
  line-height: 1.9;
}

.roadmap-card strong {
  color: var(--cyan);
  font-size: 15px;
  letter-spacing: .14em;
}

.cta-section {
  text-align: center;
  padding-top: 70px;
  padding-bottom: 70px;
  background:
    radial-gradient(circle at top, rgba(43,140,255,0.2), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
}

.cta-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--card-border);
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  margin-left: 14px;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: 390px;
  }

  .floating-card.one {
    left: 0;
    bottom: -8px;
  }

  .floating-card.two {
    right: 0;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .brand-logo {
    width: 142px;
    height: 58px;
    padding: 0;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #0b1020;
    border: 1px solid var(--card-border);
    border-radius: 18px;
  }

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

  .site-footer {
    flex-direction: column;
  }

  .site-footer a {
    margin-left: 0;
    margin-right: 14px;
  }
}

@media (max-width: 620px) {
  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .main-widget {
    transform: none;
  }

  .brand-logo {
    width: 108px;
    height: 42px;
  }
}


@media (max-width: 620px) {
  .typing-hero {
    min-height: 1.35em;
    font-size: clamp(38px, 14vw, 68px);
  }
}


/* Hacker Hero Upgrade */
.hacker-hero {
  position: relative;
  overflow: hidden;
}

.hacker-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(51, 224, 151, 0.055) 0px, rgba(51, 224, 151, 0.055) 1px, transparent 1px, transparent 8px),
    radial-gradient(circle at 50% 38%, rgba(51, 224, 151, 0.16), transparent 34rem);
  opacity: 0.72;
  mix-blend-mode: screen;
  animation: scanMove 5s linear infinite;
}

@keyframes scanMove {
  from { transform: translateY(-18px); }
  to { transform: translateY(18px); }
}

.hacker-status {
  background: rgba(51, 224, 151, 0.09);
  border-color: rgba(51, 224, 151, 0.32);
  color: #baffdf;
  box-shadow: 0 0 34px rgba(51, 224, 151, 0.12);
}

.hacker-eyebrow {
  color: #33e097;
  text-shadow: 0 0 18px rgba(51, 224, 151, 0.55);
}

.terminal-hero {
  position: relative;
  max-width: 980px;
  margin: 18px auto 0;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(5, 14, 18, 0.74)),
    radial-gradient(circle at top left, rgba(51, 224, 151, 0.18), transparent 42%);
  border: 1px solid rgba(51, 224, 151, 0.35);
  box-shadow:
    0 0 0 1px rgba(54, 216, 255, 0.08),
    0 0 52px rgba(51, 224, 151, 0.20),
    0 30px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.terminal-hero::before {
  content: none;
}

.terminal-hero::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(90deg, transparent, rgba(51, 224, 151, 0.32), rgba(54, 216, 255, 0.22), transparent);
  opacity: 0.0;
  animation: terminalFlash 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes terminalFlash {
  0%, 76%, 100% { opacity: 0; transform: translateX(-35%); }
  82% { opacity: .35; }
  92% { opacity: .06; transform: translateX(35%); }
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -16px -16px 28px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-topbar span:nth-child(2) { background: #ffbd2e; }
.terminal-topbar span:nth-child(3) { background: #28c840; }

.terminal-topbar p {
  margin: 0 0 0 8px;
  color: rgba(220, 255, 235, 0.70);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.terminal-hero .typing-hero {
  position: relative;
  z-index: 1;
  min-height: 1.05em;
  justify-content: flex-start;
  text-align: left;
  font-size: clamp(48px, 9vw, 118px);
  line-height: 0.92;
  color: #dffff0;
}

.terminal-hero .terminal-prompt {
  color: #33e097;
  margin-right: 0.18em;
  text-shadow: 0 0 18px rgba(51, 224, 151, 0.9), 0 0 44px rgba(51, 224, 151, 0.45);
  animation: promptPulse 1s steps(1, end) infinite;
}

@keyframes promptPulse {
  0%, 52% { opacity: 1; }
  53%, 100% { opacity: .38; }
}

.terminal-hero .typed-text {
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(51, 224, 151, 0.45),
    0 0 36px rgba(54, 216, 255, 0.22);
  filter: drop-shadow(0 0 12px rgba(51, 224, 151, .28));
}

.terminal-hero .typing-cursor {
  color: #33e097;
  margin-left: 0.08em;
  text-shadow: 0 0 18px rgba(51, 224, 151, 0.9);
}

.terminal-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.terminal-meta span {
  color: rgba(220, 255, 235, 0.72);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(51, 224, 151, 0.07);
  border: 1px solid rgba(51, 224, 151, 0.16);
}

.hacker-hero .hero-subtitle {
  margin-top: 30px;
  text-shadow: 0 0 24px rgba(43, 140, 255, 0.12);
}

@media (max-width: 620px) {
  .terminal-hero {
    padding: 22px 18px 28px;
    border-radius: 22px;
  }

  .terminal-topbar {
    margin: -8px -6px 22px;
  }

  .terminal-hero .typing-hero {
    font-size: clamp(38px, 13vw, 62px);
  }

  .terminal-meta span {
    font-size: 11px;
  }
}



/* Cleaner hero: only one hacker typewriter line, no extra rows or block cursor */
.terminal-topbar,
.terminal-meta,
.typing-cursor {
  display: none !important;
}

.terminal-hero {
  width: min(920px, 100%);
  padding: clamp(26px, 4.2vw, 54px);
}

.terminal-hero .typing-hero {
  justify-content: center;
  text-align: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-height: 1em;
}

.terminal-hero .terminal-prompt {
  display: inline-block;
}

.terminal-hero .typed-text {
  display: inline-block;
}

.hacker-hero .hero-subtitle {
  margin-top: 24px;
}

@media (max-width: 620px) {
  .terminal-hero .typing-hero {
    font-size: clamp(32px, 11vw, 56px);
    letter-spacing: -0.09em;
  }
}
