/* ============================================================
   JARVIS — STYLESHEET
   Theme: Retro-Futuristic Pixel Cyberpunk
   ============================================================ */

/* ── RESET & TOKENS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #08090d;
  --bg-alt:       #0d0f17;
  --bg-card:      #11141f;
  --border:       #1e2336;
  --border-glow:  #00e5ff55;

  --cyan:         #00e5ff;
  --cyan-dim:     #00b8cc;
  --cyan-glow:    0 0 16px #00e5ff66, 0 0 40px #00e5ff22;
  --white:        #e8edf5;
  --grey:         #6b7394;
  --grey-light:   #9aa3c2;

  --font-mono:    'Share Tech Mono', monospace;
  --font-body:    'Outfit', sans-serif;

  --radius:       4px;
  --radius-lg:    8px;
  --transition:   .2s cubic-bezier(.4,0,.2,1);

  --nav-h:        64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── SCANLINES ──────────────────────────────────────────── */
.scanlines {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,.12) 2px,
    rgba(0,0,0,.12) 4px
  );
  mix-blend-mode: overlay;
  opacity: .5;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 700; line-height: 1.15; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
code, pre { font-family: var(--font-mono); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition);
  text-transform: uppercase;
}
.btn--primary {
  background: var(--cyan); color: #000; border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
}
.btn--primary:hover {
  background: #fff; color: #000; border-color: #fff;
  box-shadow: 0 0 24px #ffffff88;
}
.btn--ghost {
  background: transparent; color: var(--cyan); border-color: var(--border-glow);
}
.btn--ghost:hover {
  background: rgba(0,229,255,.08); border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(8,9,13,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border-glow); }

.nav__logo { display: flex; align-items: center; gap: .7rem; }
.nav__logo-img { width: 32px; height: 32px; image-rendering: pixelated; }
.nav__logo-text {
  font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: .2em;
  color: var(--cyan); text-shadow: 0 0 10px var(--cyan);
}

.nav__links { display: flex; gap: 2rem; list-style: none; }
.nav__links a {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em;
  color: var(--grey-light); text-transform: uppercase;
}
.nav__links a:hover { color: var(--cyan); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--cyan); transition: all var(--transition);
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
}

.hero__bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__glow {
  position: absolute; top: 20%; left: 60%; z-index: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,.12) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.hero__content {
  position: relative; z-index: 1;
  max-width: 640px;
  animation: fadeUp .8s ease both;
}

.hero__badge {
  display: inline-block; margin-bottom: 1.5rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .15em;
  color: var(--cyan); text-transform: uppercase;
  border: 1px solid var(--border-glow); border-radius: 2px;
  padding: .25rem .75rem;
  background: rgba(0,229,255,.06);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__title-line { display: block; color: var(--white); }
.hero__title-accent {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0,229,255,.6);
  font-family: var(--font-mono); letter-spacing: .05em;
}

.hero__sub {
  color: var(--grey-light); font-size: 1.05rem;
  margin-bottom: 2rem; line-height: 1.7;
}

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero__robot {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  z-index: 1;
  animation: float 4s ease-in-out infinite;
  opacity: .25;
}
.hero__robot-img {
  width: 300px; height: 300px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 40px rgba(0,229,255,.4));
}

/* ── TERMINAL ───────────────────────────────────────────── */
.terminal__bar {
  display: flex; align-items: center; gap: .4rem;
  background: #1a1d2e; padding: .5rem .8rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.terminal__label {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--grey); margin-left: .5rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.terminal__body {
  background: rgba(0,0,0,.6); padding: .9rem 1rem;
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.terminal__line {
  font-family: var(--font-mono); font-size: .85rem; color: var(--white);
}
.terminal__prompt { color: var(--cyan); margin-right: .5rem; }
.terminal__typed { color: #e8edf5; }
.terminal__cursor {
  color: var(--cyan); animation: blink 1s step-end infinite;
  font-size: .85rem;
}

.hero__terminal { max-width: 520px; }

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section--dark { background: var(--bg-alt); }

.section__header { margin-bottom: 3rem; }
.section__tag {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .2em;
  color: var(--cyan); text-transform: uppercase;
  display: block; margin-bottom: .4rem;
}
.section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--white);
}
.section__desc { color: var(--grey-light); margin-top: .6rem; max-width: 500px; }

/* ── OVERVIEW CARDS ─────────────────────────────────────── */
.overview__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.overview-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0,229,255,.08);
  transform: translateY(-3px);
}
.overview-card__icon { font-size: 1.8rem; margin-bottom: .9rem; display: block; }
.overview-card__title {
  font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .4rem;
}
.overview-card__desc { font-size: .88rem; color: var(--grey-light); line-height: 1.6; }

/* ── FEATURES ───────────────────────────────────────────── */
.features__list { display: flex; flex-direction: column; gap: 3rem; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.feature:last-child { border-bottom: none; }
.feature:nth-child(even) .feature__info { order: 2; }
.feature:nth-child(even) .feature__bullets { order: 1; }

.feature__number {
  font-family: var(--font-mono); font-size: 3.5rem; font-weight: 700;
  color: rgba(0,229,255,.12); line-height: 1;
  margin-bottom: .3rem; display: block;
}
.feature__title {
  font-size: 1.4rem; color: var(--white); margin-bottom: .75rem;
}
.feature__desc { color: var(--grey-light); font-size: .95rem; line-height: 1.7; }

.feature__bullets { list-style: none; padding: 0; margin-top: .5rem; }
.feature__bullets li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .9rem; color: var(--grey-light); padding: .45rem 0;
  border-bottom: 1px solid var(--border);
}
.feature__bullets li:last-child { border: none; }
.feature__bullets li::before {
  content: '▸';
  color: var(--cyan); flex-shrink: 0; margin-top: .05em;
}

/* ── TREE ───────────────────────────────────────────────── */
.tree__showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center;
}
.tree__terminal { border-radius: var(--radius-lg); overflow: hidden; }
.tree__body { padding: 1.2rem 1.4rem; }
.tree__code {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--grey-light); line-height: 1.75;
  white-space: pre;
}
.tree__code .cyan { color: var(--cyan); }

.tree__desc p {
  color: var(--grey-light); font-size: .95rem; margin-bottom: 1rem;
}
.tree__list { list-style: none; padding: 0; }
.tree__list li {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem 0;
  font-family: var(--font-mono); font-size: .85rem; color: var(--white);
  border-bottom: 1px solid var(--border);
}
.tree__list li:last-child { border: none; }
.tree__list li::before { content: '▸'; color: var(--cyan); }

/* ── INSTALLATION ────────────────────────────────────────── */
.install__coming {
  text-align: center; padding: 5rem 2rem;
  border: 1px dashed var(--border-glow);
  border-radius: var(--radius-lg);
  background: rgba(0,229,255,.02);
}
.install__icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; animation: spin 4s linear infinite; }
.install__text { font-size: 1.2rem; color: var(--white); margin-bottom: .4rem; }
.install__sub { color: var(--grey); font-size: .9rem; }

/* ── COMMANDS ────────────────────────────────────────────── */
.commands__list { display: flex; flex-direction: column; gap: 2rem; }

.command-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.command-card:hover { border-color: var(--border-glow); }

.command-card__header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: rgba(0,229,255,.04);
  border-bottom: 1px solid var(--border);
}
.command-card__name {
  font-family: var(--font-mono); font-size: 1rem;
  color: var(--cyan); font-weight: 700;
}
.command-card__usage {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--grey); margin-left: auto;
}

.command-card__body { padding: 1.4rem 1.6rem; }
.command-card__desc { color: var(--grey-light); font-size: .93rem; margin-bottom: 1.2rem; }

.command-card__steps { list-style: none; margin-bottom: 1.2rem; }
.command-card__steps li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .35rem 0;
  font-family: var(--font-mono); font-size: .8rem; color: var(--grey-light);
}
.command-card__step-num {
  color: var(--cyan); font-size: .7rem; opacity: .7; flex-shrink: 0;
  margin-top: .15em;
}

.command-card__example {
  background: rgba(0,0,0,.5); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .7rem 1rem;
}
.command-card__example code {
  font-size: .8rem; color: var(--white);
}

.command-card__example, .terminal__example, .hero__terminal {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--grey-light);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border-color: var(--cyan);
}

.copy-btn.copied {
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer__left { display: flex; align-items: center; gap: .9rem; }
.footer__logo { width: 32px; height: 32px; image-rendering: pixelated; opacity: .7; }
.footer__name { font-family: var(--font-mono); font-size: .9rem; color: var(--cyan); }
.footer__copy { font-size: .75rem; color: var(--grey); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-family: var(--font-mono); font-size: .75rem; color: var(--grey); letter-spacing: .1em; text-transform: uppercase; }
.footer__links a:hover { color: var(--cyan); }

.btn--github {
  background: #161b22; color: var(--white); border-color: #30363d;
}
.btn--github:hover {
  background: #21262d; border-color: var(--cyan);
  box-shadow: var(--cyan-glow); color: var(--cyan);
}
.nav__github {
  padding: .45rem 1rem; font-size: .78rem;
}
.footer__github {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--cyan) !important; letter-spacing: .1em; text-transform: uppercase;
}
.footer__github:hover { color: #fff !important; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-53%) translateX(-6px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; gap: 1rem; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(8,9,13,.98); padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }

  .hero__robot { display: none; }
  .hero__title { font-size: 2rem; }

  .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature:nth-child(even) .feature__info,
  .feature:nth-child(even) .feature__bullets { order: unset; }

  .tree__showcase { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
