/* ==========================================================================
   RZOTech, LLC — rzotech.com
   Dark theme · mobile-first · no framework
   ========================================================================== */

:root {
  --bg: #0b131b;
  --bg-alt: #0f1923;
  --surface: #14202c;
  --surface-2: #1a2937;
  --accent: #8c85ff;
  --accent-2: #673de6;
  --accent-soft: rgba(140, 133, 255, 0.12);
  --text: #e9eef4;
  --muted: #a3b3c2;
  --border: rgba(140, 133, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.07);
  --gradient: linear-gradient(135deg, #8c85ff 0%, #673de6 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #a9a3ff; }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-2);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 22px rgba(103, 61, 230, 0.4);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(103, 61, 230, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 19, 27, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 26px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.35rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }

.nav-cta { padding: 0.55rem 1.25rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(11, 19, 27, 0.82) 20%, rgba(140, 133, 255, 0.2) 150%),
    url('../bg-network-abstract.jpg') center / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero h1 {
  background: linear-gradient(120deg, #ffffff 40%, #b7b2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.hero .lead { max-width: 560px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.2rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.hero-points li { display: flex; align-items: center; gap: 0.45rem; }
.hero-points svg { color: var(--accent); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.4rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 1.1rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.review-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 0.4rem;
  left: 1.4rem;
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
}

.review-stars { color: #f5b83d; letter-spacing: 3px; font-size: 1.05rem; margin-top: 1rem; }
.review-text { color: var(--text); font-size: 1.02rem; font-style: italic; margin: 0; }
.review-source { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background:
    radial-gradient(ellipse at 20% -20%, rgba(140, 133, 255, 0.25), transparent 55%),
    radial-gradient(ellipse at 90% 130%, rgba(103, 61, 230, 0.3), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.2rem, 6vw, 4rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--muted); max-width: 520px; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse at 70% -40%, rgba(103, 61, 230, 0.28), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 { max-width: 760px; }
.page-hero .lead { max-width: 640px; }

/* --------------------------------------------------------------------------
   Content blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
}

.split-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
}
.check-list svg { color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.check-list strong { color: var(--text); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 1.4rem;
  text-align: center;
}
.stat .stat-num {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .stat-label { color: var(--muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.form-group .required { color: var(--accent); }

.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-control.invalid { border-color: #e5534b; }

textarea.form-control { min-height: 150px; resize: vertical; }

.form-error {
  display: none;
  color: #f08a84;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.form-group.has-error .form-error { display: block; }

.form-alert {
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  border: 1px solid;
}
.form-alert.error {
  background: rgba(229, 83, 75, 0.12);
  border-color: rgba(229, 83, 75, 0.4);
  color: #f2a09b;
}

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-card .card-icon { width: 46px; height: 46px; flex-shrink: 0; }
.contact-info-card h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.contact-info-card a, .contact-info-card p { font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.container.narrow { width: min(800px, 100% - 2.5rem); }
.muted { color: var(--muted); }

.blog-list { display: grid; gap: 1.5rem; }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.blog-card time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.blog-card h2 { font-size: 1.45rem; margin-bottom: 0.4em; }
.blog-card h2 a { color: var(--text); }
.blog-card h2 a:hover { color: var(--accent); }
.blog-card p { color: var(--muted); font-size: 0.98rem; }
.read-more { font-weight: 600; font-size: 0.95rem; }

.post-card { display: flex; flex-direction: column; }
.post-card .post-date {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.post-card h3 { margin-top: 0; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }
.post-card .post-more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: 0.93rem; }

.post-body { max-width: 760px; }
.post-body h2 { margin-top: 2em; font-size: 1.5rem; }
.post-body h3 { margin-top: 1.6em; }
.post-body p, .post-body li { color: #c4d0dc; font-size: 1.03rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body code {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.15em 0.45em;
  font-size: 0.9em;
}
.post-body blockquote {
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

.post-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }
.post-back { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Pricing (managed IT — coming soon)
   -------------------------------------------------------------------------- */

.coming-soon-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.price-card { text-align: left; position: relative; overflow: hidden; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price-tag { font-size: 2.2rem; font-weight: 800; margin: 0.8rem 0 0.2rem; }
.price-tag small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-note { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding: clamp(2.8rem, 6vw, 4rem) 0 0;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  padding-bottom: 2.5rem;
}

.footer-brand p { color: var(--muted); font-size: 0.93rem; max-width: 300px; }
.footer-logo { height: 22px; width: auto; margin-bottom: 1rem; }

.footer-col h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col ul a { color: var(--text); font-size: 0.95rem; opacity: 0.85; }
.footer-col ul a:hover { color: var(--accent); opacity: 1; }
.footer-contact li { color: var(--muted); font-size: 0.95rem; }

.social-links { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 1.4rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page { text-align: center; padding: clamp(5rem, 14vw, 9rem) 0; }
.error-code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Scroll-reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 19, 27, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.8rem 1.25rem 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .site-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.9rem 0.2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 1.2rem; justify-content: center; padding: 0.9rem; }
}
