/* ============================================================
   CLAW SYSTEMS — Cyber Terminal Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --black: #000000;
  --dark-gray: #111111;
  --charcoal: #1a1a1a;
  --terminal-green: #00ff41;
  --matrix-green: #00cc33;
  --amber: #ffb000;
  --cyan: #00d4ff;
  --light-green: #b4f0b4;
  --body-text: #e0e0e0;
  --muted: #888888;
  --border-green: rgba(0, 255, 65, 0.15);
  --glow-green: rgba(0, 255, 65, 0.3);
  --font-mono: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--body-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--terminal-green);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: #33ff66;
  text-shadow: 0 0 8px var(--glow-green);
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--matrix-green);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--terminal-green);
}

/* --- Selection --- */
::selection {
  background: var(--terminal-green);
  color: var(--black);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-green);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0, 255, 65, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terminal-green);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .caret {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: var(--terminal-green);
  animation: blink 1s step-end infinite;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--terminal-green);
  background: rgba(0, 255, 65, 0.06);
  text-shadow: none;
}

.nav-links a.active {
  color: var(--terminal-green);
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--border-green);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--terminal-green);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--dark-gray);
}

.section-charcoal {
  background: var(--charcoal);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  color: var(--terminal-green);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 3rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.7;
}

p {
  margin-bottom: 16px;
}

.text-green { color: var(--terminal-green); }
.text-amber { color: var(--amber); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--muted); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 255, 65, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-terminal {
  background: var(--dark-gray);
  border: 1px solid var(--border-green);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
}

.hero-terminal::before {
  content: '$ claw-systems --init';
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  position: absolute;
  top: 12px;
  left: 16px;
}

.hero-terminal .dots {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.hero-terminal .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-terminal .dots span:nth-child(1) { background: #ff5f57; }
.hero-terminal .dots span:nth-child(2) { background: #ffbd2e; }
.hero-terminal .dots span:nth-child(3) { background: #28c840; }

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title .typed-text {
  color: var(--terminal-green);
  border-right: 3px solid var(--terminal-green);
  padding-right: 4px;
}

.hero-title .typed-text.done {
  border-right-color: transparent;
}

.hero-subtitle {
  color: var(--light-green);
  font-size: 1.1rem;
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 28px;
  border-radius: 4px;
  border: 1px solid var(--terminal-green);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--terminal-green);
  color: var(--black);
  font-weight: 600;
}

.btn-primary:hover {
  background: #33ff66;
  box-shadow: 0 0 20px var(--glow-green);
  color: var(--black);
  text-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--terminal-green);
}

.btn-outline:hover {
  background: rgba(0, 255, 65, 0.08);
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.15);
  color: var(--terminal-green);
  text-shadow: none;
}

/* ============================================================
   CARDS
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--dark-gray);
  border: 1px solid var(--border-green);
  border-radius: 8px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 255, 65, 0.08);
  border-color: rgba(0, 255, 65, 0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Feature list inside cards */
.feature-list {
  list-style: none;
  margin-top: 16px;
}

.feature-list li {
  padding: 6px 0;
  color: var(--body-text);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-list li::before {
  content: '>';
  color: var(--terminal-green);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   TERMINAL BLOCK (for code/feature showcases)
   ============================================================ */

.terminal-block {
  background: var(--dark-gray);
  border: 1px solid var(--border-green);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}

.terminal-header {
  background: var(--charcoal);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-green);
}

.terminal-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-header .dot.red { background: #ff5f57; }
.terminal-header .dot.yellow { background: #ffbd2e; }
.terminal-header .dot.green { background: #28c840; }

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

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--light-green);
}

.terminal-body .prompt {
  color: var(--terminal-green);
}

.terminal-body .comment {
  color: var(--muted);
}

.terminal-body .string {
  color: var(--amber);
}

.terminal-body .keyword {
  color: var(--cyan);
}

/* ============================================================
   STATS ROW
   ============================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--terminal-green);
  display: block;
  margin-bottom: 8px;
}

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

/* ============================================================
   VALUES / PILLARS
   ============================================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.value-item {
  padding: 24px 0;
  border-top: 2px solid var(--border-green);
}

.value-item h4 {
  color: var(--terminal-green);
  margin-bottom: 8px;
}

.value-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================
   TEAM
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  background: var(--dark-gray);
  border: 1px solid var(--border-green);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  transition: border-color 0.3s;
}

.team-card:hover {
  border-color: rgba(0, 255, 65, 0.3);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 2px solid var(--border-green);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--terminal-green);
}

.team-card h4 {
  color: var(--body-text);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 12px;
  display: block;
}

.team-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================================
   TECH STACK
   ============================================================ */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.tech-item {
  background: var(--dark-gray);
  border: 1px solid var(--border-green);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.tech-item:hover {
  border-color: rgba(0, 255, 65, 0.3);
  transform: translateY(-2px);
}

.tech-item .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.tech-item h4 {
  font-size: 0.9rem;
  color: var(--terminal-green);
  margin-bottom: 4px;
}

.tech-item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ============================================================
   CONTACT GRID
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form {
  max-width: 640px;
  margin-top: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--terminal-green);
  margin-bottom: 8px;
}

.form-group label::before {
  content: '$ ';
  color: var(--muted);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--dark-gray);
  border: 1px solid var(--border-green);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--terminal-green);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #444;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--terminal-green);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-content {
  max-width: 800px;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 40px;
  display: block;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-green);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--body-text);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 16px 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content .highlight-box {
  background: var(--dark-gray);
  border-left: 3px solid var(--terminal-green);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}

.legal-content .highlight-box h3 {
  margin-top: 0;
  color: var(--terminal-green);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark-gray);
  border-top: 1px solid var(--border-green);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-mono);
}

.footer-brand .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--terminal-green);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer h5 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--terminal-green);
  text-shadow: none;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   SCANLINE OVERLAY (subtle)
   ============================================================ */

.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.008) 2px,
    rgba(0, 255, 65, 0.008) 4px
  );
}

/* ============================================================
   PAGE HEADER (for inner pages)
   ============================================================ */

.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-green);
  margin-bottom: 0;
}

.page-header .section-label {
  margin-bottom: 8px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 0;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  margin-top: 40px;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--border-green);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terminal-green);
  box-shadow: 0 0 12px var(--glow-green);
}

.timeline-item h4 {
  color: var(--terminal-green);
}

.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  margin-bottom: 8px;
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.75rem; }
  .section { padding: 64px 0; }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border-green);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .hero-terminal {
    padding: 24px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .page-header {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 32px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .legal-content {
    padding-top: calc(var(--nav-height) + 32px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 1.6rem; }
  .hero-title { font-size: 1.4rem; }
  .hero-terminal { padding: 16px; }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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