/* ==========================================================================
   INNATE.BOT - YOUR FIRST PERSONAL ROBOT (EXACT REPLICA)
   Design Tokens: Electric Blue (#401FFB), Pure Black (#000000), Slate Gray (#f8fafc),
                  JetBrains Mono + Inter Typography, Interactive BASIC OS Code Editor
   ========================================================================== */

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

:root {
  --bg-black: #000000;
  --bg-white: #ffffff;
  --bg-gray: #f4f5f7;
  --bg-gray-dark: #121316;

  --blue: #401FFB;
  --blue-hover: #3216d6;
  --blue-light: rgba(64, 31, 251, 0.1);

  --purple: #8959a8;
  --orange: #f5871f;
  --green: #10b981;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Layout Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header & Navbar */
.navbar-innate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-innate.dark {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.brand-badge {
  display: flex;
  align-items: flex-end;
  background: var(--blue);
  padding: 10px 16px;
  height: 64px;
  margin-top: -1px;
}

.brand-wordmark {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.05em;
}

.nav-links-innate {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  opacity: 0.6;
}

/* Buttons */
.btn-blue {
  background: var(--blue);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-blue:hover {
  background: var(--blue-hover);
  transform: scale(0.985);
}

.btn-outline-white {
  background: transparent;
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-outline-white:hover {
  border-color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-innate {
  background: var(--bg-black);
  color: var(--text-white);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero-body {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.hero-badge-glow {
  background: rgba(64, 31, 251, 0.3);
  color: var(--text-white);
  border: 1px solid rgba(64, 31, 251, 0.5);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(64, 31, 251, 0.6);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* Feature 3-Grid */
.features-section {
  background: var(--bg-white);
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.feature-card p {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-media-placeholder {
  height: 280px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* BASIC OS Agent Code Playground Section */
.basic-section {
  background: var(--bg-gray);
  padding: 110px 0;
  position: relative;
}

.basic-section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 24px;
}

.basic-wordmark-img {
  display: block;
  margin: 0 auto 24px;
  height: 48px;
}

.basic-description {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

.playground-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.playground-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 8px 16px;
  border-radius: 6px 6px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--blue);
  color: var(--text-white);
  opacity: 1;
}

.editor-window {
  background: var(--bg-white);
  border: 1px solid rgba(64, 31, 251, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.editor-header {
  background: var(--bg-white);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(64, 31, 251, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.github-link-btn {
  background: #000;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-container {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 380px;
  overflow-y: auto;
  color: #333;
}

.code-keyword { color: var(--purple); font-weight: 600; }
.code-class { color: #2563eb; font-weight: 600; }
.code-string { color: #16a34a; }

/* Skills List Sidebar */
.skills-box {
  background: var(--bg-white);
  border: 1px solid rgba(64, 31, 251, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.skill-row.active {
  border-color: #000000;
  background: rgba(0, 0, 0, 0.02);
}

.skill-tag-physical {
  background: var(--orange);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.skill-tag-digital {
  background: var(--blue);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

/* Exploded Hardware Diagram */
.diagram-section {
  padding: 120px 0;
  background: var(--bg-white);
}

.diagram-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.diagram-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.faq-innate-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0;
}

.faq-innate-question {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-innate-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-innate-item.open .faq-innate-answer {
  padding-top: 16px;
}

/* Footer */
footer.footer-innate {
  background: var(--bg-black);
  color: var(--text-white);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal-backdrop-innate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop-innate.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box-innate {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

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