/* Agentegra — Virtuals.io-inspired Design System */

:root {
  --mint-bg: #EDF4F5;
  --navy: #0C1C28;
  --teal: #0A7A6F;
  --teal-light: #159988;
  --text: #0C1C28;
  --text-light: #4a5a68;
  --border: #d0dfe6;
  --background: #ffffff;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--mint-bg);
  line-height: 1.6;
  font-size: 16px;
}

/* Navigation */
.nav {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-icon {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--teal);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.35rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  background-color: var(--teal);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: var(--teal-light);
}

/* Hero Section */
.page-hero {
  background: linear-gradient(135deg, var(--mint-bg) 0%, rgba(10, 122, 111, 0.05) 100%);
  padding: 6rem 1.5rem;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text);
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--teal);
  color: white;
}

.btn-primary:hover {
  background-color: var(--teal-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline.white {
  color: white;
  border-color: white;
}

.btn-outline.white:hover {
  color: var(--teal);
  border-color: var(--teal);
  background-color: white;
}

/* Sections */
section {
  padding: 5rem 1.5rem;
}

.light {
  background-color: var(--mint-bg);
  color: var(--text);
}

.dark {
  background-color: var(--navy);
  color: white;
}

.dark h4,
.dark h3,
.dark h2 {
  color: white;
}

.dark .dark-panel {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Section Labels */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
}

.section-bar {
  width: 40px;
  height: 2px;
  background-color: var(--teal);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.dark .section-title {
  color: white;
}

/* Intro Text */
.intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 800px;
}

.dark .intro {
  color: rgba(255, 255, 255, 0.85);
}

/* Layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split.center {
  align-items: center;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Feature Cards */
.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: white;
  transition: all 0.2s ease;
}

.light .feature-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(10, 122, 111, 0.1);
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.dark .feature-card {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.dark .feature-card h4 {
  color: white;
}

.dark .feature-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* Dark Panel */
.dark-panel {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: white;
}

/* Dark panel placed inside a light section needs explicit dark background */
.light .dark-panel {
  background-color: var(--navy);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-panel h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.dark-panel ul {
  list-style: none;
}

.dark-panel li {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.dark-panel li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal-light);
  font-weight: 600;
}

/* Step Flow */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  padding: 1.5rem;
  border-left: 3px solid var(--teal);
  background-color: rgba(10, 122, 111, 0.05);
  border-radius: 0 4px 4px 0;
}

.dark .step {
  background-color: transparent;
  border-left-color: var(--teal-light);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}

.dark .step-num {
  color: var(--teal-light);
}

.step h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.dark .step h4 {
  color: white;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.dark .step p {
  color: rgba(255, 255, 255, 0.8);
}

/* Agent Grid */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.agent-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: white;
}

.agent-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--teal);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.agent-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.agent-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cta-section > .section-inner > p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.cta-buttons,
.engagement-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: start;
}

.engagement-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: white;
}

.engagement-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.engagement-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: 3rem;
}

.faq-group-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--teal);
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: white;
  transition: background-color 0.2s ease;
  font-weight: 600;
  color: var(--text);
}

.faq-item:hover .faq-question {
  background-color: rgba(10, 122, 111, 0.05);
}

.faq-icon {
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  background-color: rgba(10, 122, 111, 0.02);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.faq-answer p:last-child {
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Contact Info */
.contact-info {
  margin-bottom: 2rem;
}

.contact-row {
  display: flex;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--teal);
  text-transform: uppercase;
  min-width: 120px;
}

.contact-val {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-val a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.contact-val a:hover {
  text-decoration: underline;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
  margin: 2rem 0;
}

/* Solution Stack */
.solution-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stack-layer {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.03);
}

.stack-header {
  margin-bottom: 1.5rem;
}

.stack-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.stack-layer h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: white;
}

.stack-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.stack-features {
  list-style: none;
}

.stack-features li {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.stack-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal-light);
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--navy);
  color: white;
  padding: 3rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .page-hero {
    padding: 4rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

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

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

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

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

  .hero-sub {
    font-size: 0.95rem;
  }

  .section-label {
    flex-wrap: wrap;
  }

  .split {
    gap: 1.5rem;
  }

  .contact-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .contact-label {
    min-width: auto;
  }
}
