@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   Aspiris Design System — Enterprise IT Operations & Advisory
   Light-first. Warm-paper base + near-black type + institutional
   cobalt accent. Dark used only as punctuation (CTA banner, footer).
   Display: Sora.  Body: Inter.  Eyebrows: // mono-tracked caps.
   ============================================================ */

:root {
  /* Light surfaces */
  --color-paper: #fbfcfe;       /* page base */
  --color-paper-2: #f1f4f9;     /* alt section */
  --color-paper-3: #e8edf5;     /* borders/dividers tint */
  --color-white: #ffffff;
  /* Ink / text */
  --color-ink: #0d1526;         /* near-black display */
  --color-ink-2: #1e293b;       /* strong body */
  --color-body: #41506a;        /* body text */
  --color-muted: #6b7a93;       /* secondary text */
  --color-faint: #93a0b5;       /* captions */
  --color-line: #e2e8f1;        /* hairlines on light */
  /* Dark surfaces (punctuation) */
  --color-navy: #0d1526;
  --color-navy-800: #111c33;
  --color-navy-700: #16223d;
  --color-navy-600: #233252;
  /* Accent: Aspiris institutional blue (from logo #2c5bb2) */
  --color-blue: #2c5bb2;
  --color-blue-600: #244c98;
  --color-blue-700: #1d3e7d;
  --color-blue-bright: #5b85d6;
  --color-blue-soft: #eaf0fa;   /* tint chips on light */
  --color-blue-12: rgba(44, 91, 178, 0.10);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 0.85rem;
  --shadow-sm: 0 1px 2px rgba(13,21,38,0.04), 0 1px 3px rgba(13,21,38,0.06);
  --shadow-md: 0 4px 16px -4px rgba(13,21,38,0.10), 0 2px 6px -2px rgba(13,21,38,0.06);
  --shadow-lg: 0 18px 40px -12px rgba(13,21,38,0.18);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--color-paper);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button, [role="button"], a[href], input, select, textarea, label[for] { cursor: pointer; }
input, textarea { cursor: text; }
em { font-style: normal; color: var(--color-blue); font-weight: 600; }
::selection { background: var(--color-blue); color: var(--color-white); }

/* Layout */
.container-x { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) { .container-x { padding-inline: 2.5rem; } }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before { content: "//"; color: var(--color-blue); opacity: 0.55; font-weight: 700; }
/* eyebrow on dark surfaces */
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--color-blue-bright); }
.on-dark .eyebrow::before { color: var(--color-blue-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  transition: all 180ms ease; white-space: nowrap;
}
.btn-lg { font-size: 1rem; padding: 0.9rem 2rem; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--color-blue); color: var(--color-white); box-shadow: 0 6px 18px -6px rgba(44,91,178,0.45); }
.btn-primary:hover { background: var(--color-blue-600); transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(44,91,178,0.5); }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-line); }
.btn-ghost:hover { border-color: var(--color-blue); color: var(--color-blue); }
/* ghost on dark surfaces */
.on-dark .btn-ghost { color: var(--color-white); border-color: var(--color-navy-600); }
.on-dark .btn-ghost:hover { border-color: var(--color-blue-bright); color: var(--color-blue-bright); }
.btn-light { background: var(--color-white); color: var(--color-ink); }
.btn-light:hover { background: var(--color-paper-2); transform: translateY(-1px); }

/* Headings */
.h-display { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 800; line-height: 1.04; }
.h-section { font-size: clamp(1.9rem, 3.5vw, 2.85rem); font-weight: 700; }
.text-accent { color: var(--color-blue); }
.hero-accent { color: var(--color-blue-bright); }

/* Sections */
.section { padding-block: 5rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }
.bg-paper { background: var(--color-paper); }
.bg-alt { background: var(--color-paper-2); }
.bg-dark { background: var(--color-navy); }
/* on-dark text helpers */
.on-dark { color: #c9d4e6; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }

.lead { font-size: 1.125rem; line-height: 1.7; }
.text-ink { color: var(--color-ink); }
.text-ink2 { color: var(--color-ink-2); }
.text-body { color: var(--color-body); }
.text-muted { color: var(--color-muted); }
.text-faint { color: var(--color-faint); }
.text-cloud { color: #c9d4e6; }
.text-fog-d { color: #8b9bb5; }
.mw-2xl { max-width: 42rem; }
.mw-3xl { max-width: 48rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-9 { margin-top: 2.25rem; } .mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; }
.center { text-align: center; } .mx-auto { margin-inline: auto; }

/* Cards (light) */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 220ms ease;
}
.card.hoverable:hover { border-color: rgba(30,84,217,0.4); box-shadow: var(--shadow-md); transform: translateY(-3px); }
/* dark card (for use on dark surfaces) */
.card-dark { background: var(--color-navy-700); border: 1px solid var(--color-navy-600); border-radius: var(--radius); }

/* Icon chip */
.icon-chip {
  width: 3rem; height: 3rem; border-radius: 0.7rem;
  background: var(--color-blue-soft);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--color-blue);
}
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip.sm { width: 2.5rem; height: 2.5rem; }
.icon-chip.sm svg { width: 18px; height: 18px; }
.on-dark .icon-chip { background: rgba(59,110,240,0.16); color: var(--color-blue-bright); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 252, 254, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.nav-links { display: none; align-items: center; gap: 2rem; }
/* Unscrolled over dark hero: light links + light logo + light toggle */
.nav:not(.scrolled).over-hero .nav-links a { color: rgba(255,255,255,0.82); }
.nav:not(.scrolled).over-hero .nav-links a:hover,
.nav:not(.scrolled).over-hero .nav-links a.active { color: #fff; }
.nav:not(.scrolled).over-hero .logo { color: #fff; }
.nav:not(.scrolled).over-hero .menu-toggle { color: #fff; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--color-body); transition: color 160ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--color-ink); }
.nav-cta { display: none; }
.logo { display: inline-flex; align-items: center; color: var(--color-blue); }
.logo svg { height: 26px; width: auto; display: block; }
.menu-toggle { display: inline-flex; background: none; border: none; color: var(--color-ink); padding: 0.5rem; }
.menu-toggle svg { width: 26px; height: 26px; }
.mobile-menu { display: none; flex-direction: column; gap: 0.25rem; padding: 1rem 0 1.5rem; border-top: 1px solid var(--color-line); background: var(--color-paper); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.7rem 0; font-weight: 500; color: var(--color-body); }
.mobile-menu a:hover { color: var(--color-ink); }
@media (min-width: 900px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- HERO (kept dark as a strong anchor) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--color-navy); }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right; }
/* animated circuit overlay */
.hero-circuits {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* faint baseline traces; brightness driven by cursor proximity via JS */
.hero-circuits .trace {
  stroke: var(--color-blue-bright); stroke-width: 1.4; fill: none;
  opacity: 0.08;
  transition: opacity 0.5s ease, stroke-width 0.5s ease, filter 0.5s ease;
}
.hero-circuits .node {
  fill: #8fb4f5; opacity: 0;
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.hero-circuits .pulse { display: none; } /* legacy, no longer used */

@media (prefers-reduced-motion: reduce) {
  .hero-circuits .trace { transition: none; }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--color-navy) 0%, rgba(13,21,38,0.86) 45%, rgba(13,21,38,0.25) 100%),
    linear-gradient(0deg, var(--color-navy) 0%, transparent 50%, rgba(13,21,38,0.4) 100%);
}
.hero .container-x { position: relative; z-index: 1; }
.hero-content { padding-top: 7rem; padding-bottom: 5rem; max-width: 42rem; }
/* curved light transition under hero */
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 4rem; z-index: 1;
  background: linear-gradient(0deg, var(--color-paper), transparent); }

.cta-row { display: flex; flex-direction: column; gap: 0.75rem; }
.cta-row.center { align-items: center; }
@media (min-width: 560px) { .cta-row { flex-direction: row; } .cta-row.center { justify-content: center; } }

/* Trust strip (on dark hero) */
.trust { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.stat { display: flex; align-items: center; gap: 0.75rem; }
.stat svg { width: 20px; height: 20px; color: var(--color-blue-bright); flex-shrink: 0; }
.stat .v { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stat .l { font-size: 0.75rem; color: #8b9bb5; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.feature-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 768px) { .split { grid-template-columns: 5fr 7fr; gap: 2.5rem; } }

.svc-card { padding: 1.75rem; }
.svc-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--color-ink); margin: 1.25rem 0 0.6rem; }
.svc-card p { font-size: 0.875rem; color: var(--color-body); line-height: 1.6; }

.checklist { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--color-ink-2); font-size: 0.9rem; font-weight: 500; line-height: 1.5; }
.checklist li strong { color: var(--color-ink); font-weight: 600; }
.checklist svg { width: 18px; height: 18px; color: var(--color-blue); flex-shrink: 0; margin-top: 0.18rem; }

/* dark images framed as "screens" so they read intentional on light */
.screen { border-radius: 1rem; border: 1px solid var(--color-line); box-shadow: var(--shadow-lg); width: 100%; background: var(--color-navy); }
.rounded-img { border-radius: 1rem; border: 1px solid var(--color-line); box-shadow: var(--shadow-md); width: 100%; }

.vert-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vert-grid { grid-template-columns: repeat(3, 1fr); } }
.vert {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--color-line); background: var(--color-white);
  border-radius: 0.75rem; padding: 1rem 1.25rem; font-weight: 500; color: var(--color-ink);
  box-shadow: var(--shadow-sm); transition: all 200ms ease;
}
.vert:hover { border-color: rgba(30,84,217,0.4); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vert .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--color-blue); flex-shrink: 0; }

.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-blue); font-weight: 600; transition: gap 160ms ease; }
.text-link:hover { gap: 0.75rem; }
.text-link svg { width: 18px; height: 18px; }

/* CTA banner (dark punctuation) */
.cta-banner { position: relative; overflow: hidden; padding-block: 6rem; background: var(--color-navy); }
@media (min-width: 768px) { .cta-banner { padding-block: 8rem; } }
.cta-banner .cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-banner .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.cta-banner .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,21,38,0.85), rgba(13,21,38,0.92)); }
.cta-banner .container-x { position: relative; z-index: 1; }

/* Services list page */
.svc-block { padding: 1.75rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .svc-block { grid-template-columns: 4fr 8fr; gap: 2.5rem; padding: 2.5rem; } }
.svc-block .tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-blue); }
.svc-block h2 { font-size: 1.5rem; font-weight: 700; color: var(--color-ink); margin-top: 1.25rem; }
.svc-block .body { color: var(--color-body); line-height: 1.7; }
.pills { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { font-size: 0.75rem; font-weight: 500; color: var(--color-muted); border: 1px solid var(--color-line); border-radius: 999px; padding: 0.4rem 0.9rem; background: var(--color-paper-2); }
.stack > * + * { margin-top: 1.5rem; }

/* Two delivery models */
.models { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .models { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.model { border: 1px solid var(--color-line); background: var(--color-white); border-radius: 0.7rem; padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.model-h { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.model-h::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--color-blue); flex-shrink: 0; }
.model-b { font-size: 0.85rem; color: var(--color-body); line-height: 1.55; margin-top: 0.5rem; }

/* Contact */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.contact-methods { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.cmethod { display: flex; align-items: flex-start; gap: 1rem; transition: color 160ms ease; }
.cmethod .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
.cmethod .value { color: var(--color-ink); font-weight: 500; transition: color 160ms ease; }
a.cmethod:hover .value { color: var(--color-blue); }
.form-field { margin-bottom: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
label.field-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--color-ink-2); margin-bottom: 0.5rem; }
.req { color: var(--color-blue); }
.input, .textarea {
  width: 100%; border-radius: 0.7rem; background: var(--color-paper);
  border: 1px solid var(--color-line); padding: 0.75rem 1rem;
  color: var(--color-ink); font-family: var(--font-body); font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder, .textarea::placeholder { color: var(--color-faint); }
.input:focus, .textarea:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(44,91,178,0.14); }
.textarea { resize: vertical; min-height: 7rem; }
.form-note { font-size: 0.75rem; color: var(--color-muted); text-align: center; margin-top: 0.75rem; }
.form-success { text-align: center; padding: 3rem 0; }
.form-success .success-badge {
  width: 72px; height: 72px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #e7f4ec;                 /* pale green chip */
}
.form-success .success-badge svg {
  width: 34px; height: 34px;
  color: #1f9254;                      /* muted, professional green */
  stroke-width: 2.25;
}
.form-success h2 { color: var(--color-ink); }
.error-msg { font-size: 0.875rem; color: #dc2626; margin-bottom: 1rem; display: none; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none; }

/* ---------- FOOTER (dark punctuation) ---------- */
.footer { background: var(--color-navy); border-top: 1px solid var(--color-navy-600); padding-top: 4rem; padding-bottom: 2rem; color: #8b9bb5; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }
.footer .logo { color: #fff; }
.footer .logo svg { height: 28px; }
.footer h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #6b7a93; font-weight: 600; margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.6rem; }
.footer a { font-size: 0.9rem; color: #aab6cc; transition: color 160ms ease; }
.footer a:hover { color: #fff; }
.footer-tagline { color: #aab6cc; font-size: 0.9rem; margin-top: 1rem; max-width: 22rem; line-height: 1.6; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-navy-600); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #6b7a93; }
.footer-bottom .links { display: flex; gap: 1.5rem; }
.footer .text-faint-d { color: #6b7a93; font-size: 0.85rem; }
.footer .text-mist { color: #6b7a93; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover, .btn-light:hover, .vert:hover { transform: none; }
}
