/* ITOps V4 Landing Page Styles */

:root {
  --primary: #1976D2;
  --primary-dark: #1565C0;
  --accent: #00BCD4;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #334155; line-height: 1.6; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: all 0.3s;
}
.navbar.scrolled { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); padding: 8px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar a { color: #cbd5e1; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.navbar a:hover { color: white; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-cta {
  background: var(--primary); color: white !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600; transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); }
.logo { font-size: 20px; font-weight: 800; color: white !important; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.mobile-menu { display: none; padding: 16px 0; }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: #cbd5e1; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 50%, var(--dark-light) 100%);
  padding: 140px 0 80px; color: white; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; color: var(--accent); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 18px; color: #94a3b8; margin-bottom: 32px; max-width: 540px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: white; padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.1); color: white; padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: 13px; color: #64748b; margin-top: 4px; }

/* Section common */
section { padding: 80px 0; }
section.dark { background: var(--dark); color: white; }
section.grey { background: #f8fafc; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 16px; color: #64748b; margin-bottom: 48px; max-width: 600px; }
.dark .section-subtitle { color: #94a3b8; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: white; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 28px; transition: all 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px; font-size: 24px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #64748b; line-height: 1.6; }

/* How it Works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary);
  color: white; font-size: 24px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: #64748b; }
.step code {
  display: block; background: var(--dark); color: var(--accent); padding: 12px;
  border-radius: 8px; font-size: 12px; margin-top: 12px; text-align: left;
  white-space: pre; overflow-x: auto;
}

/* Architecture */
.arch-diagram {
  background: var(--dark-light); border-radius: 12px; padding: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #94a3b8;
  white-space: pre; overflow-x: auto; line-height: 1.8;
}
.arch-diagram .highlight { color: var(--accent); font-weight: 600; }
.arch-diagram .green { color: var(--green); }
.arch-diagram .orange { color: var(--orange); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.price-card {
  background: white; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 32px; text-align: center; transition: all 0.2s;
}
.price-card.popular { border-color: var(--primary); box-shadow: 0 8px 32px rgba(25,118,210,0.15); }
.price-card .popular-badge {
  background: var(--primary); color: white; padding: 4px 16px;
  border-radius: 12px; font-size: 12px; font-weight: 600; display: inline-block; margin-bottom: 12px;
}
.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.price-amount { font-size: 36px; font-weight: 800; color: var(--primary); }
.price-amount small { font-size: 16px; color: #64748b; font-weight: 400; }
.price-features { list-style: none; margin: 24px 0; text-align: left; }
.price-features li { padding: 8px 0; font-size: 14px; color: #475569; border-bottom: 1px solid #f1f5f9; }
.price-features li::before { content: '\2713'; color: var(--green); margin-right: 8px; font-weight: 700; }

/* Footer */
footer { background: var(--dark); color: #94a3b8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand p { font-size: 14px; margin-top: 12px; }
footer h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
footer a { color: #94a3b8; text-decoration: none; font-size: 14px; display: block; padding: 4px 0; transition: color 0.2s; }
footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; }

/* Docs page */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 100px; }
.docs-sidebar { position: sticky; top: 80px; height: fit-content; }
.docs-sidebar a {
  display: block; padding: 8px 16px; color: #64748b; text-decoration: none;
  font-size: 14px; border-left: 2px solid transparent; transition: all 0.2s;
}
.docs-sidebar a:hover, .docs-sidebar a.active { color: var(--primary); border-left-color: var(--primary); background: #f1f5f9; }
.docs-content { max-width: 800px; }
.docs-content h2 { font-size: 24px; font-weight: 700; margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.docs-content h2:first-child { margin-top: 0; border-top: none; }
.docs-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
.docs-content p { margin-bottom: 16px; }
.docs-content pre {
  background: var(--dark); color: #e2e8f0; padding: 20px; border-radius: 8px;
  overflow-x: auto; font-size: 13px; line-height: 1.6; margin-bottom: 16px;
}
.docs-content code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.docs-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.docs-content th, .docs-content td { padding: 10px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.docs-content th { font-weight: 600; background: #f8fafc; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
}
