/* ==========================================================================
   GrumpyOtter Technical Design System (Blueprint & Spec Sheets Edition)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('target-cursor.css');

:root {
  --bg: #09090b;
  --surface: #0c0c0e;
  --border: #27272a;
  --border-dim: #18181b;
  --text: #f4f4f5;
  --text-muted: #71717a;
  --accent: #10b981;
  --accent-dim: rgba(16, 185, 129, 0.15);
  
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* Strict sharp corners */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Base Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Layout Containers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grid & Border Framework */
.spec-box {
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  margin-bottom: 24px;
}

/* Crosshair corners */
.spec-box::before, .spec-box::after,
.crosshair::before, .crosshair::after {
  content: '+';
  position: absolute;
  font-family: var(--font-mono);
  color: var(--border);
  font-size: 11px;
  line-height: 1;
}
.spec-box::before { top: -6px; left: -4px; }
.spec-box::after { top: -6px; right: -4px; }
.spec-box-bottom::before { content: '+'; position: absolute; bottom: -6px; left: -4px; font-family: var(--font-mono); color: var(--border); font-size: 11px; }
.spec-box-bottom::after { content: '+'; position: absolute; bottom: -6px; right: -4px; font-family: var(--font-mono); color: var(--border); font-size: 11px; }

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-dim);
  transition: var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(8px);
}
.navbar .container {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 1px solid transparent;
  color: var(--text-muted);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}
.hero-content {
  max-width: 680px;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* Technical Specification Sheets */
.spec-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
}
.spec-header-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-header-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.spec-body {
  padding: 24px 20px;
}

/* Project Listings Table */
.spec-list {
  display: flex;
  flex-direction: column;
}
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-dim);
  transition: var(--transition);
}
.spec-row:last-child {
  border-bottom: none;
}
.spec-row:hover {
  background: var(--surface);
}
.spec-row-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.spec-row-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 80px;
}
.spec-row-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.spec-row-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 20px;
  max-width: 500px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spec-row-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.spec-row-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  text-transform: uppercase;
}
.spec-row-status.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.spec-row-action {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.spec-row:hover .spec-row-action {
  color: var(--accent);
}

/* Split content grid */
.spec-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.spec-split-item {
  padding: 24px 20px;
  border-right: 1px solid var(--border);
}
.spec-split-item:last-child {
  border-right: none;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}
.btn-accent {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* Sections */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-dim);
}
.section-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-title {
  font-size: 1.75rem;
  margin-bottom: 32px;
}

/* FAQ Component */
.faq-list {
  border: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border-dim);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover {
  background: var(--surface);
}
.faq-question .icon {
  color: var(--text-muted);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--surface);
}
.faq-answer-inner {
  padding: 0 20px 20px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.faq-item.active .faq-question {
  color: var(--accent);
}

/* Reveal Observer styling */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Footer styling */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-dim);
  background: var(--bg);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 12px;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  
  .spec-split {
    grid-template-columns: 1fr;
  }
  .spec-split-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .spec-split-item:last-child {
    border-bottom: none;
  }
  
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .spec-row-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .spec-row-desc {
    margin-left: 0;
    max-width: 100%;
    white-space: normal;
  }
  .spec-row-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
