/* CSS Reset & Variables */
:root {
  --bg-color: #0B1120;
  --bg-secondary: #111827;
  --accent-primary: #3B82F6;
  --accent-primary-hover: #2563EB;
  --accent-secondary: #60A5FA;
  --success: #22C55E;
  --danger: #EF4444;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.08);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Background Effects */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  animation: pulse-glow 10s infinite alternate;
}

.bg-glow-1 {
  top: -200px;
  left: -200px;
  background: rgba(59, 130, 246, 0.4);
}

.bg-glow-2 {
  bottom: -200px;
  right: -200px;
  background: rgba(96, 165, 250, 0.3);
  animation-delay: 2s;
}

.bg-glow-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(34, 197, 94, 0.1);
  width: 800px;
  height: 800px;
}

@keyframes pulse-glow {
  0% { opacity: 0.2; transform: scale(0.9); }
  100% { opacity: 0.4; transform: scale(1.1); }
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p { color: var(--text-secondary); font-size: 1.125rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: var(--card-bg-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background-color: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-icon {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

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

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  color: var(--accent-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  width: 100%;
  height: 700px;
  position: relative;
}

.workflow-diagram {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.line-anim {
  animation: dash 3s linear infinite;
}

@keyframes dash {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

.node {
  position: absolute;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  min-width: 150px;
}

.customer-node { top: 12%; left: 50%; }
.cloud-node { top: 38%; left: 50%; padding: 1.5rem; background: rgba(17, 24, 39, 0.95); border-color: rgba(59, 130, 246, 0.4); transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.2); z-index: 3; }
.agent-node { top: 64%; left: 50%; background: rgba(17, 24, 39, 0.9); border-color: rgba(96, 165, 250, 0.3); }
.p-left { top: 88%; left: 25%; }
.p-right { top: 88%; left: 75%; }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.icon-circle.primary { background: rgba(59, 130, 246, 0.15); color: var(--accent-primary); width: 56px; height: 56px; }
.icon-circle.agent { background: rgba(96, 165, 250, 0.15); color: var(--accent-secondary); }
.icon-circle.success { background: rgba(34, 197, 94, 0.15); color: var(--success); }

.node-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.node-caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-secondary);
  white-space: nowrap;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.glow-behind {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  filter: blur(30px);
  opacity: 0.25;
  z-index: -1;
  border-radius: 50%;
}

.agent-glow {
  background: var(--accent-secondary);
  opacity: 0.15;
}

.float-anim { animation: float 6s ease-in-out infinite; }
.float-anim-delayed { animation: float 6s ease-in-out infinite 3s; }

@keyframes float {
  0% { margin-top: 0px; }
  50% { margin-top: -10px; }
  100% { margin-top: 0px; }
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Cards (How it works & Features) */
.card, .feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card:hover, .feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: var(--card-bg-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.feature-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-content p {
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Comparison Section */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.comparison-card.printflow {
  border-color: rgba(59, 130, 246, 0.4);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 2;
  background: var(--bg-secondary);
}

.comparison-card h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.comparison-card.printflow h3 {
  color: var(--accent-primary);
}

.glow-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.feature-list {
  position: relative;
  z-index: 1;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.comparison-card.printflow .feature-list li {
  color: var(--text-primary);
}

.icon-x { color: var(--danger); width: 24px; height: 24px; flex-shrink: 0; }
.icon-check { color: var(--success); width: 24px; height: 24px; flex-shrink: 0; }

/* Final CTA Section */
.cta-section {
  padding: 8rem 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  position: relative;
  z-index: 1;
}

.cta-btn {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
  font-size: 1rem;
}

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

.link-group h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.link-group a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.link-group a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-subtitle {
    margin: 0 auto 2.5rem auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .badge {
    margin: 0 auto 2rem auto;
  }
  .hero-visual {
    height: 400px;
    max-width: 600px;
    margin: 0 auto;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .comparison-card.printflow {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-actions.active {
    display: flex;
    position: absolute;
    top: calc(var(--nav-height) + 150px);
    left: 0;
    width: 100%;
    justify-content: center;
    background: var(--bg-secondary);
    padding-bottom: 2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
  }
}
