/* ===== CNSTECH Managed IT Services — managed-it.css ===== */
/* Dark technical base, cyan accent, restrained premium tone */

:root {
  --bg: #0d1117;
  --bg-alt: #131920;
  --bg-card: #161b22;
  --bg-card-hover: #1c2430;
  --cyan: #00c8ff;
  --cyan-dim: #0099cc;
  --cyan-glow: rgba(0, 200, 255, .12);
  --green: #2dd47b;
  --amber: #f0ad4e;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --border: #21262d;
  --radius: 8px;
  --max-w: 1200px;
  --header-h: 64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: #fff; }
ul { list-style: none; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-link { display: flex; align-items: center; }
.logo-img { width: 253px; height: auto; }
.nav-list { display: flex; gap: 32px; }
.nav-list a {
  color: var(--text-dim);
  font-size: .938rem;
  font-weight: 500;
  transition: color .2s;
  padding: 4px 0;
}
.nav-list a:hover, .nav-list a:focus-visible { color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    transform: translateY(calc(-100% - var(--header-h)));
    transition: transform .3s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 16px; }
  .nav-list a { font-size: 1.1rem; }
  .logo-img { width: 180px; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  max-height: 520px;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,.3) 0%, rgba(13,17,23,.75) 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px 32px;
}
.ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,17,23,.75);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.led-green {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: led-pulse 2.5s ease-in-out infinite;
}
.led-cyan {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: led-pulse 2.5s ease-in-out infinite .5s;
}
@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.hero-content {
  padding: 48px 24px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #fff;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: .938rem;
  font-weight: 600;
  transition: background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--cyan);
  color: #0d1117;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #33d4ff;
  color: #0d1117;
  box-shadow: 0 0 20px rgba(0,200,255,.25);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== OPS STRIP ===== */
.ops-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  overflow-x: auto;
}
.ops-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-width: max-content;
}
.ops-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
}
.ops-icon { color: var(--cyan); flex-shrink: 0; }

@media (max-width: 768px) {
  .ops-strip {
    overflow-x: visible;
    padding: 22px 20px;
  }
  .ops-strip-inner {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }
  .ops-item {
    white-space: normal;
    align-items: flex-start;
    line-height: 1.35;
  }
}

@media (max-width: 420px) {
  .ops-strip-inner {
    grid-template-columns: 1fr;
  }
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-align: center;
}
.section-intro {
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== SERVICE CARDS ===== */
.services-section { padding: 80px 0; }
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.svc-card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px var(--cyan-glow);
}
.svc-card-icon {
  color: var(--cyan);
  margin-bottom: 16px;
}
.svc-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}
.svc-card p {
  color: var(--text-dim);
  font-size: .938rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* ===== MANAGED IT MODEL ===== */
.model-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.model-text p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}
.model-text p:last-child { margin-bottom: 0; }

/* Mini dashboard */
.model-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dash-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-label {
  font-size: .813rem;
  color: var(--text-dim);
  width: 140px;
  flex-shrink: 0;
}
.dash-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  min-width: 80px;
}
.dash-fill {
  height: 100%;
  width: var(--fill);
  background: var(--cyan);
  border-radius: 3px;
  animation: bar-fill 1.5s ease-out forwards;
  transform-origin: left;
}
.dash-fill-ok { background: var(--green); }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dash-val {
  font-size: .813rem;
  color: var(--green);
  font-weight: 600;
  min-width: 90px;
  text-align: right;
}
.dash-val-zero {
  font-size: .95rem;
  color: var(--cyan);
  text-align: center;
  width: 100%;
}

/* Ticket flow */
.ticket-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.ticket-state {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-align: center;
}
.t-new {
  background: rgba(240, 173, 78, .15);
  color: var(--amber);
  border: 1px solid rgba(240, 173, 78, .3);
}
.t-progress {
  background: rgba(0, 200, 255, .1);
  color: var(--cyan);
  border: 1px solid rgba(0, 200, 255, .25);
  animation: ticket-glow 2s ease-in-out infinite;
}
.t-done {
  background: rgba(45, 212, 123, .12);
  color: var(--green);
  border: 1px solid rgba(45, 212, 123, .25);
}
@keyframes ticket-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 8px rgba(0,200,255,.2); }
}
.ticket-arrow { color: var(--text-dim); flex-shrink: 0; }

@media (max-width: 768px) {
  .model-grid { grid-template-columns: 1fr; }
}

/* ===== PROCESS ===== */
.process-section { padding: 80px 0; }
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
/* Connector line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}
.process-step h3 {
  font-size: .975rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.process-step p {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-timeline::before { display: none; }
  .process-step {
    text-align: left;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 16px;
    align-items: start;
  }
  .step-num {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }
  .process-step h3 { align-self: end; }
  .process-step p { grid-column: 2; }
}

/* ===== USE CASES ===== */
.usecases-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.usecase-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s;
}
.usecase-item:hover { border-color: var(--cyan-dim); }
.usecase-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.usecase-item p {
  color: var(--text-dim);
  font-size: .938rem;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

/* ===== INTEGRATION ===== */
.integration-section { padding: 80px 0; }
.integration-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.int-link {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .25s, transform .25s;
  color: var(--text);
}
.int-link:hover, .int-link:focus-visible {
  border-color: var(--cyan-dim);
  transform: translateY(-2px);
  color: var(--text);
}
.int-link-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 4px;
}
.int-link-desc {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .integration-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .integration-links { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.faq-item {
  max-width: 800px;
  margin: 0 auto 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .2s;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--cyan); }
.faq-answer {
  padding: 0 24px 20px;
}
.faq-answer p {
  color: var(--text-dim);
  font-size: .938rem;
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
  padding: 80px 0;
  text-align: center;
}
.cta-section p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1rem;
  line-height: 1.7;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 24px 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { margin-bottom: 12px; }
.footer-tagline {
  color: var(--text-dim);
  font-size: .875rem;
  line-height: 1.5;
}
.footer-title {
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-nav li, .footer-contact li { margin-bottom: 8px; }
.footer-nav a, .footer-contact a {
  color: var(--text-dim);
  font-size: .875rem;
  transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-copy {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-copy p {
  color: var(--text-dim);
  font-size: .813rem;
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo { margin: 0 auto 12px; }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
