/* Root Variable Definitions */
:root {
  --bg-primary: #07090e;
  --bg-secondary: #0f111a;
  --card-bg: rgba(15, 17, 26, 0.7);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 122, 0, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  --accent-orange: #ff7a00;
  --accent-orange-rgb: 255, 122, 0;
  --accent-teal: #10b981;
  --accent-teal-rgb: 16, 185, 129;
  --accent-cyan: #00f2fe;
  --accent-glow: rgba(255, 122, 0, 0.12);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Page Wrapper */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* Glowing Decorative Background Blobs */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
  top: -150px;
  left: 10%;
  animation: float-slow 25s infinite alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-teal) 0%, transparent 70%);
  top: 30%;
  right: -100px;
  animation: float-slow 30s infinite alternate-reverse;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: 10%;
  left: -50px;
  animation: float-slow 20s infinite alternate;
}

/* Header */
.header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.15);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent-orange);
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-link {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.social-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.15);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6.5rem 0 3.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 122, 0, 0.05);
  border: 1px solid rgba(255, 122, 0, 0.15);
  border-radius: 9999px;
  margin-bottom: 2rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-orange);
  animation: pulse 1.8s infinite;
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 850px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 40%, #ffd0a5 75%, #ff7a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* CTA Buttons */
.cta-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  z-index: 20;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-cta {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-teal) 100%);
  color: #07090e;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.15);
}

.primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.primary-cta:hover .btn-arrow {
  transform: translateX(3px);
}

.secondary-cta {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent-orange);
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.08);
}

/* Visual Section / Terminal Mockup */
.visual-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 4rem;
  z-index: 10;
  position: relative;
}

.terminal-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.5s ease;
}

.terminal-container:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 30px 60px -10px rgba(255, 122, 0, 0.08), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: rgba(10, 11, 16, 0.95);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
  display: flex;
  gap: 0.4rem;
}

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

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.terminal-title {
  margin-left: 2rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Orchestration Graph */
.orchestration-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
}

.graph-node {
  background: rgba(15, 17, 26, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-agent {
  padding: 1rem 1.5rem;
  background: rgba(255, 122, 0, 0.04);
  border-color: rgba(255, 122, 0, 0.25);
}

.main-agent .node-title {
  font-weight: 600;
  color: #fff;
  font-family: var(--font-heading);
}

.glowing-border {
  position: relative;
}

.glowing-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-teal));
  z-index: -1;
  opacity: 0.35;
  filter: blur(4px);
}

.sub-nodes-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-left: 4.5rem;
}

.sub-node {
  width: 195px;
  transition: all 0.3s ease;
}

.active-node {
  border-color: var(--accent-teal);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.12);
}

.node-title {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.node-status {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pulse-dot.green-pulse {
  background-color: var(--accent-teal);
  box-shadow: 0 0 6px var(--accent-teal);
  animation: pulse 1.5s infinite;
}

.pulse-dot.orange-pulse {
  background-color: var(--accent-orange);
  box-shadow: 0 0 6px var(--accent-orange);
  animation: pulse-orange 1.5s infinite;
}

.pulse-dot.idle-pulse {
  background-color: var(--text-muted);
}

/* Connector Lines & Packets */
.graph-connector {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 122, 0, 0.25), rgba(16, 185, 129, 0.25));
  z-index: 1;
}

.c-1 {
  width: 4.5rem;
  left: calc(50% - 2.25rem - 70px);
  top: 50%;
  transform: translateY(-50%);
}

.data-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  top: -2px;
  box-shadow: 0 0 8px var(--accent-orange);
  animation: move-packet 2s infinite linear;
}

/* Terminal logs console style */
.terminal-logs {
  background: rgba(5, 6, 10, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  max-height: 160px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.log-line {
  margin-bottom: 0.35rem;
}

.log-line:last-child {
  margin-bottom: 0;
}

.text-muted { color: var(--text-muted); }
.text-orange { color: var(--accent-orange); }
.text-teal { color: var(--accent-teal); }
.text-cyan { color: var(--accent-cyan); }
.text-green { color: #10b981; }

.animate-blink {
  border-right: 2px solid var(--accent-orange);
  animation: blink-cursor 0.8s infinite step-end;
  width: fit-content;
  padding-right: 4px;
}

/* Features Grid Section */
.features-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 5rem;
  padding: 2rem 0;
  text-align: center;
  z-index: 10;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 50%, #ffd0a5 85%, #ff7a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(15, 17, 26, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(255, 122, 0, 0.25);
  background: rgba(15, 17, 26, 0.75);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 122, 0, 0.04);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 122, 0, 0.05);
  border: 1px solid rgba(255, 122, 0, 0.12);
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.12);
  color: var(--accent-teal);
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer Section */
.footer {
  margin-top: auto;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

/* CSS Keyframe Animations */
@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.05); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-orange {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 122, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}

@keyframes move-packet {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-orange); }
}

/* Media Queries (Responsive Design) */
@media (max-width: 768px) {
  .hero-section {
    padding: 4.5rem 0 2.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .cta-container {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 0.75rem;
  }
  
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
  
  .orchestration-graph {
    flex-direction: column;
    min-height: auto;
    gap: 2rem;
  }
  
  .sub-nodes-container {
    margin-left: 0;
  }
  
  .c-1 {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 0;
  }
}
