/* ==========================================================================
   Technical Theme — Vanguard Platform Advisory
   Dark mode, monospace accents, glowing borders. Vercel / Linear.
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg: #0a0a0a;
  --c-bg-raised: #111;
  --c-bg-card: #1a1a1a;
  --c-border: #2a2a2a;
  --c-border-hover: #3a3a3a;
  --c-text: #e0e0e0;
  --c-text-muted: #888;
  --c-text-dim: #666;
  --c-white: #f5f5f5;
  --c-accent: #06b6d4;
  --c-accent-hover: #22d3ee;
  --c-accent-glow: rgba(6, 182, 212, 0.15);
  --c-accent-glow-strong: rgba(6, 182, 212, 0.3);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', Consolas, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --nav-height: 60px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body.site {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Navigation (glassmorphism) --- */
.site__nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white) !important;
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-muted) !important;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
  color: var(--c-white) !important;
  background: var(--c-bg-card);
}

.nav__link--active {
  color: var(--c-accent) !important;
  background: var(--c-accent-glow);
}

/* --- Mobile toggle --- */
.nav__toggle-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav__toggle-label {
  display: none;
  cursor: pointer;
  width: 24px; height: 20px;
  position: relative;
  z-index: 101;
}

.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  display: block;
  width: 100%; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle-icon { position: relative; top: 9px; }
.nav__toggle-icon::before,
.nav__toggle-icon::after { content: ''; position: absolute; }
.nav__toggle-icon::before { top: -7px; }
.nav__toggle-icon::after { top: 7px; }

.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon { background: transparent; }
.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon::after { top: 0; transform: rotate(-45deg); }

/* --- Main --- */
.site__main {
  margin-top: var(--nav-height);
}

/* --- Sections --- */
.section {
  padding: 5rem max(2rem, 50% - var(--max-width) / 2);
}

.section > *:not(.card) {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section h2::before {
  content: '// ';
  color: var(--c-text-dim);
  font-weight: 400;
}

/* h3 — sans-serif, lighter weight, no monospace to create hierarchy */
.section h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-white);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}

.section p {
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

.section ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.section li {
  margin-bottom: 0.5rem;
  color: var(--c-text);
}

.section li::marker {
  color: var(--c-accent);
}

.section strong {
  color: var(--c-white);
  font-weight: 600;
}

/* --- Hero --- */
.section--hero {
  background: var(--c-bg);
  text-align: center;
  padding: 9rem max(2rem, 50% - var(--max-width) / 2) 6rem;
  position: relative;
  overflow: hidden;
}

.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--c-border) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}

.section--hero > * {
  position: relative;
}

.section--hero h1 {
  font-family: var(--font-sans);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}

.section--hero p {
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--c-text-muted);
  font-size: 1.15rem;
}

.section--hero strong {
  color: var(--c-text);
}

/* Hero CTAs — primary gradient / secondary ghost */
.section--hero p:last-child a {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.4rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.section--hero p:last-child a:first-child {
  background: linear-gradient(135deg, var(--c-accent), #0284c7);
  color: #000 !important;
}

.section--hero p:last-child a:first-child:hover {
  box-shadow: 0 0 24px var(--c-accent-glow-strong);
}

.section--hero p:last-child a:last-child {
  background: transparent;
  color: var(--c-text-muted) !important;
  border: 1px solid var(--c-border);
}

.section--hero p:last-child a:last-child:hover {
  border-color: var(--c-text-dim);
  color: var(--c-white) !important;
}

/* --- Alternating section backgrounds --- */
.section--problem,
.section--services-delivery,
.section--ai-approach,
.section--about {
  background: var(--c-bg-raised);
}

/* --- Section dividers (gradient lines) --- */
.section + .section {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--c-border), transparent) 1;
}

/* --- Cards (glowing borders) --- */
.card {
  max-width: var(--max-width);
  margin: 1.25rem auto;
  padding: 1.75rem 2rem;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 0 20px var(--c-accent-glow), inset 0 0 20px var(--c-accent-glow);
}

.card p:first-child {
  margin-bottom: 0.75rem;
}

.card p:first-child strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--c-accent);
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

/* Track record cards — white titles to distinguish from service cards */
.section--track-record .card p:first-child strong {
  color: var(--c-white);
}

/* --- AI Approach section — break up the wall of text with lead-in styling --- */
.section--ai-approach > p > strong:first-child {
  color: var(--c-accent);
}

/* --- About section values --- */
.section--about > p > strong:first-child {
  color: var(--c-accent);
}

/* --- How We Work — numbered step headings --- */
.section--how-we-work h3 {
  border-bottom-color: var(--c-accent);
}

/* --- Card grid on wider screens --- */
@media (min-width: 768px) {
  .section--services-advisory,
  .section--services-delivery,
  .section--track-record {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .section--services-advisory > h2,
  .section--services-advisory > h3,
  .section--services-advisory > p,
  .section--services-advisory > ul,
  .section--services-delivery > h3,
  .section--services-delivery > p,
  .section--track-record > h2,
  .section--track-record > p {
    width: 100%;
    flex: 0 0 100%;
  }
  .section--services-advisory > .card,
  .section--services-delivery > .card {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    margin-left: 0;
    margin-right: 0;
  }
  .section--services-advisory > .card:nth-child(odd of .card),
  .section--services-delivery > .card:nth-child(odd of .card) {
    margin-right: 0.75rem;
  }
  .section--services-advisory > .card:nth-child(even of .card),
  .section--services-delivery > .card:nth-child(even of .card) {
    margin-left: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .section--track-record > .card {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    margin-left: 0;
    margin-right: 0;
  }
  .section--track-record > .card:not(:nth-child(3n of .card)) {
    margin-right: 1rem;
  }
}

/* --- Contact Form (dark inputs, glow focus) --- */
.form {
  max-width: 600px;
  margin: 2rem auto 0;
}

.form__field {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-bg-card);
  color: var(--c-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 12px var(--c-accent-glow);
}

.form__select option {
  background: var(--c-bg-card);
  color: var(--c-text);
}

.form__submit {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: linear-gradient(135deg, var(--c-accent), #0284c7);
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.form__submit:hover {
  box-shadow: 0 0 24px var(--c-accent-glow-strong);
}

/* --- Footer --- */
.site__footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
  color: var(--c-text-dim);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__address {
  color: var(--c-border);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .nav__toggle-label { display: block; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 2rem 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav__toggle-input:checked ~ .nav__links { display: flex; }

  .nav__link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
  }
}

@media (max-width: 900px) {
  .section--hero h1 { font-size: 2.25rem; }
  .section { padding: 3.5rem 1.5rem; }
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
