/* ============================================
   AgentRobbi Brand System & Global Styles
   Mirrored from robiclaw.com (same visual system,
   only the name and product nouns differ).
   ============================================ */

:root {
  /* Colors */
  --orange: #e13613;
  --orange-hover: #c42d0f;
  --orange-light: rgba(225, 54, 19, 0.1);
  --navy: #090b13;
  --navy-2: #0d0f1a;
  --navy-3: #111626;
  --navy-4: #1a1f33;
  --gray: #8b92a8;
  --gray-light: #c5c9d6;
  --white: #ffffff;

  /* Typography */
  --font-sans: 'Barlow', system-ui, -apple-system, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --section-padding: 120px;
  --container-padding: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hover); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--white);
  padding: 8px 12px; z-index: 2000; border-radius: 6px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--orange);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(225, 54, 19, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-image {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.logo-text {
  font-size: 24px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  gap: 0;
}

.logo-agent {
  font-weight: var(--font-weight-bold);
}

.logo-robbi {
  font-weight: var(--font-weight-normal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(225, 54, 19, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(225, 54, 19, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  border: 2px solid var(--navy-4);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(225, 54, 19, 0.2);
}

.btn-large {
  padding: 20px 40px;
  font-size: 16px;
}

.btn-subtitle {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
  margin-top: 4px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: 160px 0 120px;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 64px;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.highlight {
  color: var(--orange);
}

.hero-description {
  font-size: 20px;
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* Terminal Visual */
.terminal-window {
  background: var(--navy-3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: var(--navy-4);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray);
  opacity: 0.3;
}

.terminal-title {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.terminal-content {
  padding: 24px;
  min-height: 400px;
}

.chat-message {
  margin-bottom: 24px;
}

.chat-message.user .message-text {
  background: var(--navy-4);
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--orange);
}

.chat-message.assistant .message-text {
  color: var(--gray-light);
}

.typing-indicator {
  color: var(--orange);
  animation: pulse 1.5s infinite;
}

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

.code-block {
  margin-top: 16px;
  background: var(--navy-4);
  border-radius: 8px;
  overflow: hidden;
}

.code-header {
  padding: 8px 16px;
  background: var(--navy-2);
  font-size: 12px;
  color: var(--gray);
  font-weight: var(--font-weight-semibold);
  border-bottom: 1px solid var(--navy-3);
}

.code-block pre {
  padding: 16px;
  margin: 0;
  overflow-x: auto;
}

.code-block code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-light);
}

/* ============================================
   Section Shared Styles
   ============================================ */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.section-title {
  font-size: 56px;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.section-description {
  font-size: 18px;
  color: var(--gray-light);
  line-height: 1.6;
}

/* ============================================
   Features Section
   ============================================ */

.features {
  padding: var(--section-padding) 0;
  background: var(--navy);
}

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

.feature-card {
  background: var(--navy-3);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--navy-4);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(225, 54, 19, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.feature-description {
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.6;
}

/* ============================================
   How It Works
   ============================================ */

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

.how-card {
  background: var(--navy-3);
  border: 1px solid var(--navy-4);
  border-radius: 12px;
  padding: 32px 24px;
}

.how-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
}

.how-title {
  font-size: 17px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 8px;
}

.how-desc {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.6;
}

.how-desc code {
  background: var(--navy-4);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 12px;
  color: var(--gray-light);
}

/* ============================================
   System Requirements
   ============================================ */

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.req-col h3 {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--orange);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.req-col ul { list-style: none; }

.req-col li {
  font-size: 15px;
  color: var(--gray-light);
  padding: 6px 0;
  border-bottom: 1px solid var(--navy-4);
  display: flex;
  gap: 10px;
}

.req-col li::before {
  content: "·";
  color: var(--orange);
  font-weight: bold;
}

/* ============================================
   Pricing
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 880px;
  margin: 48px auto 0;
}

.price-card {
  background: var(--navy-3);
  border: 1px solid var(--navy-4);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--orange);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-tier {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.price-card.featured .price-tier { color: var(--orange); }

.price-amount-large {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.price-period-small {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 32px;
}

.price-features {
  list-style: none;
  margin-bottom: 36px;
}

.price-features li {
  font-size: 15px;
  color: var(--gray-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--navy-4);
}

.price-features li:last-child { border-bottom: none; }

.price-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  width: 100%;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-cta.outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--navy-4);
}

.price-cta.outline:hover {
  border-color: var(--orange);
  color: var(--white);
}

.price-cta.solid {
  background: var(--orange);
  color: var(--white);
}

.price-cta.solid:hover {
  background: var(--orange-hover);
  color: var(--white);
}

.price-cta-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--navy-2);
  padding: 80px 0 40px;
  border-top: 1px solid var(--navy-4);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-brand .logo .logo-image { filter: brightness(0) invert(1); }
.footer-brand .logo .logo-text { color: var(--white); }

.footer-tagline {
  color: var(--gray);
  margin-top: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  color: var(--gray-light);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--navy-4);
}

.footer-copyright,
.footer-attribution {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 8px;
}

.footer-attribution a {
  color: var(--orange);
  text-decoration: none;
}

.footer-attribution a:hover {
  text-decoration: underline;
}

/* ============================================
   Legal pages
   ============================================ */

.legal-page {
  padding: 140px 0 80px;
  background: var(--navy);
}

.legal-page .container { max-width: 880px; }

.legal-page h1 {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.legal-page h2 {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--white);
}

.legal-page h3 {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-page p,
.legal-page li {
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--navy-4);
  vertical-align: top;
}

.legal-page th {
  background: var(--navy-3);
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  font-weight: 700;
}

.legal-page code {
  background: var(--navy-3);
  border: 1px solid var(--navy-4);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.9em;
  color: var(--gray-light);
}

.legal-page pre {
  background: var(--navy-3);
  border: 1px solid var(--navy-4);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.legal-page pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.legal-page hr {
  border: 0;
  border-top: 1px solid var(--navy-4);
  margin: 32px 0;
}

.legal-page .legal-meta {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-page a {
  color: var(--orange);
  text-decoration: underline;
}

.legal-page a:hover { color: var(--orange-hover); }

.legal-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.legal-index a {
  background: var(--navy-3);
  border: 1px solid var(--navy-4);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
  display: block;
}

.legal-index a:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.legal-index a strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--white);
}

.legal-index a span {
  color: var(--gray-light);
  font-size: 14px;
}

/* ============================================
   Responsive
   ============================================ */

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

@media (max-width: 768px) {
  :root { --section-padding: 80px; }

  .hero { padding: 120px 0 60px; }

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

  .hero-title {
    font-size: 44px;
  }

  .section-title {
    font-size: 36px;
  }

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

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

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

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .nav-toggle { display: inline-block; }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--orange);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav.is-open { display: flex; }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-link:last-of-type { border-bottom: none; }

  .nav .btn-primary { margin-top: 12px; }

  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .stat-value { font-size: 36px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .legal-page h1 { font-size: 32px; }
}
