/* ==========================================================================
   hexabyte.sh — Landing Page Styles
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-subtle: #1a1a1a;
  --color-text: #e0e0e0;
  --color-accent: #00ff88;
  --color-cyan: #00bcd4;
  --color-muted: #555555;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-mono);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--spacing-md);
  background: var(--color-accent);
  color: var(--color-bg);
  padding: var(--spacing-sm) var(--spacing-md);
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* --- Scroll Snap Container --- */
.scroll-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* --- Sections --- */
.section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  position: relative;
}

.section__content {
  max-width: 720px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section__heading {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: var(--spacing-lg);
  white-space: nowrap;
}

/* --- Scanlines Overlay --- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(255, 255, 255, 0.03) 1px,
    rgba(255, 255, 255, 0.03) 2px
  );
}

/* --- Navigation Dots --- */
.nav-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-muted);
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.nav-dot:hover {
  border-color: var(--color-accent);
}

.nav-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.nav-dot__label {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-subtle);
  color: var(--color-text);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-dot:hover .nav-dot__label {
  opacity: 1;
}

/* --- Prompt & Comment --- */
.prompt {
  color: var(--color-accent);
  user-select: none;
}

.comment {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.accent {
  color: var(--color-accent);
}

/* --- Hero --- */
.section--hero .section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: 280px;
  height: auto;
}

.hero__cursor {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-top: var(--spacing-md);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Manifesto --- */
.manifesto__output {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.manifesto__output p {
  font-size: 1.1rem;
  padding-left: var(--spacing-md);
  border-left: 2px solid var(--color-bg-subtle);
}

.manifesto__output p.accent {
  border-left-color: var(--color-accent);
}

/* --- Services --- */
.services__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services__item {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-bg-subtle);
  font-size: 0.95rem;
  transition: padding-left 0.2s ease;
}

.services__item:last-child {
  border-bottom: none;
}

.services__item:hover {
  padding-left: var(--spacing-sm);
}

.services__item:hover .prompt {
  color: var(--color-accent);
}

/* --- Neofetch --- */
.neofetch {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.neofetch__ascii {
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--color-accent);
  flex-shrink: 0;
  white-space: pre;
}

.neofetch__info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-sm);
}

.neofetch__row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.neofetch__label {
  color: var(--color-cyan);
  font-weight: 700;
  min-width: 110px;
}

.neofetch__separator {
  color: var(--color-muted);
}

.neofetch__value {
  color: var(--color-text);
}

/* --- Contact --- */
.contact__links {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.contact__row {
  font-size: 0.95rem;
}

.contact__link {
  margin-left: 0.5rem;
}

.contact__status {
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* --- Footer --- */
.footer {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--color-muted);
  z-index: 100;
  white-space: nowrap;
}

/* --- Responsive: Tablet --- */
@media (max-width: 768px) {
  .nav-dots {
    display: none;
  }

  .neofetch__ascii {
    display: none;
  }

  .neofetch {
    gap: 0;
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .section__content {
    max-width: 100%;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero__logo {
    width: 200px;
  }

  .manifesto__output p {
    font-size: 1rem;
  }

  .neofetch__label {
    min-width: 90px;
  }

  .neofetch__row {
    font-size: 0.8rem;
  }

  .services__item .comment {
    display: none;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .scroll-container {
    scroll-behavior: auto;
  }

  .section__content {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__cursor {
    animation: none;
  }

  .services__item {
    transition: none;
  }

  .nav-dot,
  .nav-dot__label,
  a {
    transition: none;
  }
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Print --- */
@media print {
  .scanlines,
  .nav-dots,
  .hero__cursor,
  .footer {
    display: none;
  }

  .scroll-container {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .section {
    height: auto;
    scroll-snap-align: none;
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  .section__content {
    opacity: 1;
    transform: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .prompt,
  .neofetch__ascii {
    display: none;
  }
}
