/* ============================================
   Null Agency — nullagency.com
   "Technically, nobody works here."
   ============================================ */

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

:root {
  --deep-ink: #0F1923;
  --signal-green: #00FFB4;
  --abyss: #0A0E14;
  --white: #FFFFFF;
  --muted: #8899AA;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--deep-ink);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:hover {
  opacity: 0.8;
}

::selection {
  background: var(--signal-green);
  color: var(--deep-ink);
}

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 180, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-logo svg {
  width: 100%;
  height: 100%;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero h1 .null {
  color: var(--white);
}

.hero h1 .agency {
  color: var(--signal-green);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--signal-green);
  border: 1px solid rgba(0, 255, 180, 0.3);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
  letter-spacing: 0.05em;
}

.hero-cta:hover {
  background: rgba(0, 255, 180, 0.08);
  border-color: var(--signal-green);
  opacity: 1;
}

.hero-cta .arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.hero-cta:hover .arrow {
  transform: translateY(3px);
}

/* --- Section Headers --- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* --- Story Section --- */
.story {
  background: var(--abyss);
  border-top: 1px solid rgba(0, 255, 180, 0.08);
  border-bottom: 1px solid rgba(0, 255, 180, 0.08);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-text strong {
  color: var(--white);
  font-weight: 500;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(0, 255, 180, 0.1);
  border-radius: 8px;
  background: rgba(0, 255, 180, 0.02);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--signal-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Products Section --- */
.products {
  background: var(--deep-ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  border: 1px solid rgba(0, 255, 180, 0.12);
  border-radius: 8px;
  padding: 2.5rem;
  background: rgba(0, 255, 180, 0.02);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: rgba(0, 255, 180, 0.3);
  background: rgba(0, 255, 180, 0.04);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal-green), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}

.badge-live {
  background: rgba(0, 255, 180, 0.15);
  color: var(--signal-green);
  border: 1px solid rgba(0, 255, 180, 0.3);
}

.badge-active {
  background: rgba(0, 255, 100, 0.2);
  color: #00FF64;
  border: 1px solid rgba(0, 255, 100, 0.5);
  font-weight: 700;
}

.badge-soon {
  background: rgba(136, 153, 170, 0.1);
  color: var(--muted);
  border: 1px solid rgba(136, 153, 170, 0.2);
}

.product-name {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* --- Team Section --- */
.team {
  background: var(--abyss);
  border-top: 1px solid rgba(0, 255, 180, 0.08);
  border-bottom: 1px solid rgba(0, 255, 180, 0.08);
}

.terminal {
  background: var(--deep-ink);
  border: 1px solid rgba(0, 255, 180, 0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 255, 180, 0.04);
  border-bottom: 1px solid rgba(0, 255, 180, 0.1);
  gap: 0.5rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(136, 153, 170, 0.3);
}

.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c940; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  overflow-x: auto;
}

.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--signal-green);
  margin-bottom: 1rem;
}

.terminal-prompt .cmd {
  color: var(--white);
}

.process-table {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-collapse: collapse;
}

.process-table thead th {
  text-align: left;
  color: var(--signal-green);
  font-weight: 400;
  padding: 0.25rem 1rem 0.5rem 0;
  border-bottom: 1px solid rgba(0, 255, 180, 0.1);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.process-table tbody td {
  padding: 0.35rem 1rem 0.35rem 0;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.process-table tbody tr {
  transition: background 0.15s ease;
}

.process-table tbody tr:hover {
  background: rgba(0, 255, 180, 0.03);
}

.process-table tbody tr:hover td {
  color: var(--white);
}

.process-table .col-pid {
  color: var(--muted);
}

.process-table .col-role {
  color: var(--white);
  font-weight: 700;
}

.process-table .col-status {
  color: var(--signal-green);
}

/* --- Press Section --- */
.press {
  background: var(--deep-ink);
}

.press-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.press-card {
  border: 1px solid rgba(0, 255, 180, 0.1);
  border-radius: 8px;
  padding: 2rem;
  background: rgba(0, 255, 180, 0.02);
  transition: all 0.3s ease;
}

.press-card:hover {
  border-color: rgba(0, 255, 180, 0.25);
  background: rgba(0, 255, 180, 0.04);
}

.press-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.press-headline {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.press-excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.press-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* --- Footer --- */
.footer {
  background: var(--abyss);
  border-top: 1px solid rgba(0, 255, 180, 0.08);
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--signal-green);
  opacity: 1;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(136, 153, 170, 0.5);
  letter-spacing: 0.05em;
}

/* --- Suggest Section --- */
.suggest {
  background: var(--abyss);
  border-top: 1px solid rgba(0, 255, 180, 0.08);
  border-bottom: 1px solid rgba(0, 255, 180, 0.08);
}

.suggest-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.suggest-intro strong {
  color: var(--white);
  font-weight: 500;
}

/* Suggest Cards Grid */
.suggest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.suggest-card {
  border: 1px solid rgba(0, 255, 180, 0.12);
  border-radius: 8px;
  padding: 1.75rem;
  background: rgba(0, 255, 180, 0.02);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.suggest-card:hover {
  border-color: rgba(0, 255, 180, 0.3);
  background: rgba(0, 255, 180, 0.04);
}

.suggest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal-green), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.suggest-card:hover::before {
  opacity: 1;
}

.suggest-card.voted {
  border-color: rgba(0, 255, 180, 0.25);
  background: rgba(0, 255, 180, 0.05);
}

.suggest-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  width: fit-content;
}

.suggest-badge-backlog {
  background: rgba(136, 153, 170, 0.1);
  color: var(--muted);
  border: 1px solid rgba(136, 153, 170, 0.2);
}

.suggest-badge-community {
  background: rgba(0, 255, 180, 0.1);
  color: var(--signal-green);
  border: 1px solid rgba(0, 255, 180, 0.25);
}

.suggest-card-name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.suggest-card-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Vote Button */
.suggest-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(0, 255, 180, 0.2);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--signal-green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  width: fit-content;
}

.suggest-vote-btn:hover {
  background: rgba(0, 255, 180, 0.08);
  border-color: var(--signal-green);
  transform: translateY(-1px);
}

.suggest-vote-btn:active {
  transform: translateY(0);
}

.suggest-vote-btn.voted {
  background: rgba(0, 255, 180, 0.12);
  border-color: var(--signal-green);
  cursor: default;
}

.suggest-vote-btn.voted:hover {
  transform: none;
}

.suggest-vote-arrow {
  transition: transform 0.2s ease;
}

.suggest-vote-btn:hover:not(.voted) .suggest-vote-arrow {
  transform: translateY(-2px);
}

.suggest-vote-count {
  font-weight: 700;
}

/* Suggest Form */
.suggest-form-wrap {
  max-width: 600px;
}

.suggest-form-terminal {
  background: var(--deep-ink);
  border: 1px solid rgba(0, 255, 180, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.suggest-form-body {
  padding: 1.5rem;
}

.suggest-field {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.suggest-field label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--signal-green);
  white-space: nowrap;
  min-width: 120px;
}

.suggest-field input {
  flex: 1;
  background: rgba(0, 255, 180, 0.04);
  border: 1px solid rgba(0, 255, 180, 0.15);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.suggest-field input::placeholder {
  color: rgba(136, 153, 170, 0.5);
}

.suggest-field input:focus {
  border-color: var(--signal-green);
  background: rgba(0, 255, 180, 0.06);
}

.suggest-submit {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(0, 255, 180, 0.3);
  border-radius: 4px;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--signal-green);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.suggest-submit:hover {
  background: rgba(0, 255, 180, 0.08);
  border-color: var(--signal-green);
}

.suggest-success {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal-green);
  padding: 0.75rem 0;
  line-height: 1.6;
  animation: fadeInUp 0.4s ease forwards;
}

.suggest-success-icon {
  color: var(--signal-green);
  font-weight: 700;
  margin-right: 0.25rem;
}

.suggest-forum-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
}

.suggest-coming-soon {
  font-size: 0.65rem;
  color: rgba(136, 153, 170, 0.5);
  font-style: italic;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.cursor-blink {
  animation: blink 1s step-end infinite;
}

/* Scroll-triggered fade in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .process-table {
    font-size: 0.65rem;
  }

  .process-table thead th,
  .process-table tbody td {
    padding-right: 0.5rem;
  }

  .terminal-body {
    padding: 1rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .suggest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .suggest-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .suggest-field label {
    min-width: unset;
  }

  .suggest-field input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-logo {
    width: 110px;
    height: 110px;
  }

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

  .press-cards {
    grid-template-columns: 1fr;
  }

  .suggest-grid {
    grid-template-columns: 1fr;
  }
}
