/* Ace Secure Tech - Engineering & Institutional IT Solutions */
:root {
  --tech-dark: #090e17;
  --tech-header: #0f172a;
  --tech-accent: #0284c7;
  --tech-accent-hover: #0369a1;
  --tech-cyan: #06b6d4;
  --tech-cyan-soft: rgba(6, 182, 212, 0.12);
  --tech-text: #1e293b;
  --tech-muted: #64748b;
  --tech-bg: #f8fafc;
  --tech-surface: #ffffff;
  --tech-border: #e2e8f0;
  --tech-border-dark: #334155;
  --tech-radius: 6px;
  --tech-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --tech-max-width: 1220px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--tech-text);
  background-color: var(--tech-bg);
  line-height: 1.55;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid var(--tech-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--tech-dark);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 10px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--tech-dark);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 2.6rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--tech-text); }
a { color: var(--tech-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container */
.site-container {
  max-width: var(--tech-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* TWO-TIER HEADER (Unique to Site 2) */
.header-top-utility {
  background-color: var(--tech-dark);
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.utility-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.utility-links a {
  color: #cbd5e1;
  text-decoration: none;
}
.utility-links a:hover {
  color: var(--tech-cyan);
}

.header-main-nav {
  background-color: #ffffff;
  border-bottom: 1px solid var(--tech-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand-tech {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon-shield {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0284c7 0%, #0f172a 100%);
  border-radius: var(--tech-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}
.brand-title-wrap {
  display: flex;
  flex-direction: column;
}
.brand-title-wrap strong {
  font-size: 1.25rem;
  color: var(--tech-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-title-wrap span {
  font-size: 0.72rem;
  color: var(--tech-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links-tech {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links-tech a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--tech-text);
  padding: 6px 0;
  position: relative;
}
.nav-links-tech a:hover, .nav-links-tech a.active {
  color: var(--tech-accent);
  text-decoration: none;
}
.nav-links-tech a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tech-accent);
}

.btn-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--tech-radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-tech-primary {
  background-color: var(--tech-accent);
  color: #ffffff;
}
.btn-tech-primary:hover {
  background-color: var(--tech-accent-hover);
  text-decoration: none;
  color: #fff;
}
.btn-tech-dark {
  background-color: var(--tech-dark);
  color: #ffffff;
}
.btn-tech-dark:hover {
  background-color: #1e293b;
  text-decoration: none;
  color: #fff;
}
.btn-tech-outline {
  border-color: var(--tech-border-dark);
  color: var(--tech-dark);
  background: transparent;
}
.btn-tech-outline:hover {
  background: #f1f5f9;
  text-decoration: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ASYMMETRICAL 2-COLUMN HERO (Unique to Site 2) */
.hero-asymmetric {
  background: linear-gradient(135deg, #090e17 0%, #0f172a 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  border-bottom: 2px solid rgba(6, 182, 212, 0.4);
}
.hero-asymmetric-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-left h1 {
  color: #ffffff;
  font-size: 2.7rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-left h1 span.cyan-text {
  color: var(--tech-cyan);
}
.hero-left p.lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}
.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--tech-radius);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
}
.hero-badge-item span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tech-cyan);
}
.hero-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Interactive Topology Card (Hero Right) */
.topology-card {
  background: #111827;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--tech-radius);
  padding: 1.75rem;
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}
.card-header-term {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}
.card-header-term .dots {
  display: flex;
  gap: 6px;
}
.card-header-term .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #374151;
}
.card-title-term {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--tech-cyan);
}
.topology-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.node-row {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--tech-accent);
  padding: 10px 14px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.node-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f8fafc;
}
.node-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(6,182,212,0.15);
  color: var(--tech-cyan);
  font-weight: 600;
  font-family: monospace;
}
.topology-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* Section styling */
.tech-section {
  padding: 4.5rem 0;
}
.tech-section-alt {
  background-color: #f1f5f9;
  border-top: 1px solid var(--tech-border);
  border-bottom: 1px solid var(--tech-border);
}
.section-headline-group {
  margin-bottom: 3rem;
}
.section-subhead {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--tech-accent);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.section-headline-group h2 {
  font-size: 2.2rem;
}
.section-headline-group p {
  color: var(--tech-muted);
  max-width: 680px;
  font-size: 1.05rem;
}

/* Solutions 3-Column Spec Cards */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.solution-spec-card {
  background: var(--tech-surface);
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--tech-shadow);
}
.solution-spec-card:hover {
  transform: translateY(-4px);
  border-color: var(--tech-accent);
  box-shadow: 0 10px 24px -3px rgba(2, 132, 199, 0.15);
}
.spec-scope-tag {
  align-self: flex-start;
  background: var(--tech-cyan-soft);
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.solution-spec-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.solution-spec-card p {
  color: var(--tech-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.checklist-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--tech-text);
}
.checklist-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5rem;
}
.checklist-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tech-accent);
  font-weight: 800;
}

/* Implementation Lifecycle (Timeline View) */
.timeline-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.stage-card {
  background: var(--tech-surface);
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius);
  padding: 1.5rem;
  position: relative;
}
.stage-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--tech-accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* Inner Page Header */
.tech-page-header {
  background: #0f172a;
  color: #ffffff;
  padding: 3.5rem 0;
  border-bottom: 2px solid var(--tech-accent);
}
.tech-page-header h1 {
  color: #ffffff;
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}
.tech-breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.tech-breadcrumb a {
  color: #cbd5e1;
}

/* Technical Forms */
.tech-form-box {
  background: #ffffff;
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius);
  padding: 2.2rem;
  box-shadow: var(--tech-shadow);
}
.input-row {
  margin-bottom: 1.25rem;
}
.input-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tech-dark);
  margin-bottom: 0.35rem;
}
.input-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--tech-border);
  border-radius: var(--tech-radius);
  background: #fff;
}
.input-control:focus {
  border-color: var(--tech-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.tech-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--tech-radius);
  font-size: 0.92rem;
  display: none;
}
.tech-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.tech-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Technical Footer */
.tech-footer {
  background-color: var(--tech-dark);
  color: #94a3b8;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-main-row {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}
.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
.footer-nav-list {
  list-style: none;
}
.footer-nav-list li {
  margin-bottom: 0.6rem;
}
.footer-nav-list a {
  color: #94a3b8;
  font-size: 0.9rem;
}
.footer-nav-list a:hover {
  color: var(--tech-cyan);
  text-decoration: none;
}
.footer-disclaimer-row {
  background-color: #05080d;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: #64748b;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Technical Split Grids */
.tech-grid-split-2 {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}
.tech-grid-split-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
.tech-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Responsive */
@media (max-width: 960px) {
  .tech-grid-split-2, .tech-grid-split-2-1, .tech-grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .timeline-stages {
    grid-template-columns: 1fr 1fr;
  }
  .footer-main-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  h1, .hero-left h1 {
    font-size: 1.35rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  h2 {
    font-size: 1.35rem;
  }
  .hero-asymmetric {
    padding: 2.5rem 0;
  }
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-btn-group .btn-tech {
    width: 100%;
    text-align: center;
  }
  .brand-title-wrap strong {
    font-size: 1.05rem;
  }
  .brand-title-wrap span {
    font-size: 0.65rem;
  }
  .utility-inner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.75rem;
    gap: 6px;
  }
  .utility-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links-tech {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--tech-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-links-tech.open {
    display: flex;
  }
  .timeline-stages {
    grid-template-columns: 1fr;
  }
  .footer-main-row {
    grid-template-columns: 1fr;
  }
}
