/* ===============================
   Global Reset & Variables
================================ */
:root {
  --primary: #4f46e5;   /* Indigo */
  --secondary: #06b6d4; /* Cyan */
  --dark: #0f172a;      /* Slate */
  --light: #f8fafc;
  --muted: #64748b;
  --card: #111827;
  --border: #1e293b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #020617, #020617);
  color: var(--light);
  line-height: 1.6;
}

/* ===============================
   Layout
================================ */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* ===============================
   Header / Nav
================================ */
header {
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

/* Header container layout to align logo and nav */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-height: 64px;
  border-radius: 8px;
}

/* small subtle background for logo to help it sit in dark header */
.logo { padding: 6px; background: rgba(255,255,255,0.02); border-radius: 8px; }

@media (max-width: 720px) {
  .logo-img { height: 36px; }
  .nav a { margin-left: 12px; font-size: 0.95rem; }
  .site-header .container { padding: 8px 14px; }
}

/* Larger logo variant used on homepage (index) */
.logo-img--large { height: 72px; max-height: 92px; }
@media (max-width: 720px) {
  .logo-img--large { height: 56px; }
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.logo .dot {
  color: var(--secondary);
}

nav a {
  margin-left: 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: white;
}

/* ===============================
   Hero
================================ */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: radial-gradient(circle at top, rgba(79,70,229,0.15), transparent 60%);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero p {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  font-size: 1.12rem;
}

/* ===============================
   Buttons
================================ */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(79,70,229,0.3);
}

/* ===============================
   Cards / Services
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(79,70,229,0.9);
  box-shadow: 0 20px 50px rgba(2,6,23,0.45);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
}

/* Plans layout (Managed IT RMM) */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0 32px 0;
}

.plan-card {
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card .plan-title {
  font-size: 1.06rem;
  font-weight: 700;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.plan-features { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.plan-features li::before { content: "✓"; color: var(--secondary); margin-right: 8px; }

.plan-card.plan-premium { border-color: rgba(79,70,229,0.9); box-shadow: 0 14px 40px rgba(79,70,229,0.06); position: relative; }

.badge-premium {
  display: inline-block;
  background: linear-gradient(90deg, #f59e42, #fbbf24);
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 10px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(251,191,36,0.13);
}

.plan-cta { margin-top: auto; }

@media (max-width: 720px) {
  .plans { gap: 14px; }
  .plan-price { font-size: 1.25rem; }
}

/* Horizontal services row */
.horizontal-row {
  display: flex;
  gap: 28px;
  align-items: stretch;
  overflow-x: auto;
  padding: 18px 0 18px 0;
  margin-bottom: 0;
  scroll-snap-type: x mandatory;
}

.service-small-card {
  min-width: 240px;
  flex: 0 0 240px;
  padding: 22px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  scroll-snap-align: start;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(2,6,23,0.10);
  opacity: 1;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s, opacity 0.4s;
}

.service-small-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 36px rgba(2,6,23,0.22);
  z-index: 2;
}

.service-icon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.03); flex-shrink: 0; }
.service-icon img { width: 28px; height: 28px; display: block; filter: invert(1); }

/* Icon color variants */
.service-icon.security { background: linear-gradient(135deg,#ef4444,#fb923c); }
.service-icon.backup { background: linear-gradient(135deg,#10b981,#06b6d4); }
.service-icon.cloud { background: linear-gradient(135deg,#60a5fa,#7c3aed); }
.service-icon.consulting { background: linear-gradient(135deg,#f59e0b,#f97316); }
.service-small-card h4 { margin: 0; font-size: 1rem; }

/* Staggered reveal for horizontal row */
.service-small-card.preview { opacity: 0; transform: translateY(16px) scale(0.98); }
.service-small-card.in-view { opacity: 1; transform: translateY(0) scale(1); transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 420ms cubic-bezier(.2,.9,.2,1); }

.service-small-card.stagger-1 { transition-delay: 0.08s; }
.service-small-card.stagger-2 { transition-delay: 0.16s; }
.service-small-card.stagger-3 { transition-delay: 0.24s; }
.service-small-card.stagger-4 { transition-delay: 0.32s; }
.service-small-card.stagger-5 { transition-delay: 0.40s; }

/* make grid items look less boxy when nested cards present */
.card .grid { gap: 14px; }

/* subtle divider for sections */
.card h2, .card h3 { position: relative; }
.card h2::after, .card h3::after { content: ''; height: 1px; width: 40px; background: rgba(255,255,255,0.04); display: block; margin-top:10px; border-radius:2px; }

/* ===============================
   Features (cards with icons)
================================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,70,229,0.9);
  box-shadow: 0 12px 30px rgba(79,70,229,0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
  will-change: transform;
}

.feature-card h3 {
  margin: 6px 0 10px 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.feature-card ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
}

.feature-card ul li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 700;
  display: inline-block;
  width: 18px;
  margin-right: 8px;
}

@media (max-width: 880px) {
  .hero { padding: 80px 20px; }
  .features { gap: 18px; }
}

/* Per-card icon color variants and micro-interactions */
.feature-icon.monitoring { background: linear-gradient(135deg, #06b6d4, #0ea5a4); }
.feature-icon.security { background: linear-gradient(135deg, #ef4444, #f97316); }
.feature-icon.backup { background: linear-gradient(135deg, #10b981, #06b6d4); }

.feature-card:hover .feature-icon {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 10px 30px rgba(2,6,23,0.35);
}

.feature-icon svg { color: white; width: 22px; height: 22px; }

/* Reveal animation */
.feature-card.preview { opacity: 0; transform: translateY(12px); }
.feature-card.in-view { opacity: 1; transform: translateY(0); transition: opacity 420ms cubic-bezier(.2,.9,.2,1), transform 420ms cubic-bezier(.2,.9,.2,1); }

/* Icon image sizing */
.feature-icon img { width: 22px; height: 22px; display: block; filter: invert(1) sepia(0.1) saturate(5) hue-rotate(180deg); }

/* ===============================
   Forms
================================ */
form {
  max-width: 500px;
  margin: auto;
}

input, textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===============================
   About CTA
================================ */
.about-cta {
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.06));
  border-top: 1px solid rgba(79,70,229,0.2);
  border-bottom: 1px solid rgba(79,70,229,0.2);
  text-align: center;
  padding: 80px 20px;
}

.about-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ===============================
   Footer
================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.footer-nav a:hover {
  color: white;
}

/* CTA Row helper */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.cta-row .btn {
  margin-top: 0;
}

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

.btn-outline:hover {
  background: rgba(79,70,229,0.1);
}
