/* ============================================================
   ARCLIGHT COMPLIANCE — main.css
   Shared styles: variables, reset, background, nav, footer,
   components, animations, responsive breakpoints
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:         #0a1628;
  --navy-mid:     #0f1f3d;
  --navy-light:   #162444;
  --amber:        #FAC775;
  --amber-dim:    #EF9F27;
  --amber-glow:   rgba(250, 199, 117, 0.12);
  --amber-border: rgba(250, 199, 117, 0.25);
  --white:        #ffffff;
  --white-60:     rgba(255,255,255,0.6);
  --white-40:     rgba(255,255,255,0.4);
  --white-20:     rgba(255,255,255,0.2);
  --white-10:     rgba(255,255,255,0.1);
  --white-06:     rgba(255,255,255,0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--white);
  background-color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
select { font-family: inherit; }

/* ── Background System (fixed, behind all content) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Grid overlay */
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Amber radial glow */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 400px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 0%,
    rgba(250,199,117,0.06) 0%, transparent 70%);
}

/* Arc rings container */
.bg-arcs {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  width: 0; height: 0;
}
.bg-arc {
  position: absolute;
  border-radius: 50%;
  left: 50%; transform: translateX(-50%);
}
.bg-arc-1 {
  top: -160px;
  width: 800px; height: 360px;
  border: 0.5px solid rgba(255,255,255,0.06);
}
.bg-arc-2 {
  top: -220px;
  width: 1100px; height: 500px;
  border: 0.5px solid rgba(255,255,255,0.03);
}
.bg-arc-3 {
  top: -100px;
  width: 560px; height: 240px;
  border: 0.5px solid rgba(255,255,255,0.04);
}

/* Vertical amber beam */
.bg-beam {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 220px;
  background: linear-gradient(to bottom, rgba(250,199,117,0.5), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── Page content sits above background ── */
.page-content {
  position: relative;
  z-index: 1;
}

/* ── Navigation ── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
#site-nav.scrolled {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-logo:hover .logo-icon circle:last-of-type {
  filter: drop-shadow(0 0 6px rgba(250,199,117,0.5));
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.logo-name span {
  color: var(--amber);
}
.logo-sub {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-40);
  line-height: 1;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--white-40);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--amber);
  font-weight: 500;
}

/* Frameworks dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: '▾';
  font-size: 9px;
  margin-left: 5px;
  color: var(--white-20);
  vertical-align: middle;
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 176px;
  background: rgba(10,22,40,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid var(--white-10);
  border-radius: 10px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 110;
  margin-top: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 14px !important;
  color: var(--white-60) !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--amber-glow);
  color: var(--amber) !important;
}

/* Mobile nav frameworks row */
.mobile-nav-frameworks {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 320px;
}
.mobile-nav-frameworks a {
  font-size: 17px !important;
  color: var(--white-40);
}

/* Book a Call button */
.nav-cta {
  background: var(--amber);
  color: var(--navy) !important;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--amber-dim) !important; color: var(--navy) !important; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--white-60);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--amber); }
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--amber);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.mobile-nav-cta {
  margin-top: 1rem;
  background: var(--amber) !important;
  color: var(--navy) !important;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 16px !important;
}

/* ── Footer ── */
#site-footer {
  position: relative;
  z-index: 1;
  border-top: 0.5px solid var(--white-10);
  padding: 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.footer-logo svg { opacity: 0.5; transition: opacity 0.2s; }
.footer-logo:hover svg { opacity: 0.8; }
.footer-nav {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--white-20);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white-40); }
.footer-nav .sep {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--white-20);
  margin: 0 8px;
}
.footer-email {
  text-align: right;
}
.footer-email a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--amber);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-email a:hover { opacity: 0.75; }
.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--white-20);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ── Animation System ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll-triggered */
.fade-up-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up-ready.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Shared Components ── */

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber-glow);
  border: 0.5px solid var(--amber-border);
  color: var(--amber);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

/* Card */
.card {
  background: var(--white-06);
  border: 0.5px solid var(--white-10);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover {
  border-color: var(--amber-border);
  background: var(--amber-glow);
}

/* Pill */
.pill {
  background: var(--white-06);
  border: 0.5px solid var(--white-10);
  border-radius: 20px;
  padding: 7px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white-40);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-block;
}
.pill:hover {
  border-color: var(--amber-border);
  color: var(--amber);
  background: var(--amber-glow);
}

/* Primary button */
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--amber-dim); }
.btn-primary:active { transform: scale(0.98); }

/* Form input */
.form-input {
  width: 100%;
  height: 48px;
  background: var(--white-06);
  border: 0.5px solid var(--white-20);
  border-radius: 10px;
  padding: 0 18px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: var(--white-20); }
.form-input:focus {
  border-color: var(--amber-border);
  background: rgba(255,255,255,0.08);
}
.form-input.error {
  border-color: rgba(226,75,74,0.6);
}

/* ── Scroll reveal (vanilla JS driven, fires once) ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,0.61,0.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Tier arc (signature curve) — dots fade/scale in via JS ── */
.tier-arc-dot {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.tier-arc-dot.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .tier-arc-dot { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: none; }
}

/* ── Trust / framework band ── */
.trust-band {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.03);
  border-top: 0.5px solid var(--white-10);
  border-bottom: 0.5px solid var(--white-10);
  padding: 16px 32px;
  overflow-x: auto;
}
.trust-band-inner {
  display: flex; align-items: center; justify-content: center;
  min-width: max-content;
}
.trust-band-inner span.fw { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-40); }
.trust-band-inner span.dot { color: var(--amber); margin: 0 10px; font-size: 10px; }

/* ── Difference / icon cards ── */
.icon-tile {
  width: 40px; height: 40px;
  background: var(--amber-soft);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* ── Methodology (Arc Model) cards ── */
.phase-best {
  font-size: 12px;
  color: var(--amber);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  border-left: 2px solid var(--amber-glow);
  padding-left: 12px;
  line-height: 1.5;
  margin: 0.5rem 0;
}

/* ── Engagement tier cards ── */
.tier-card { display: flex; flex-direction: column; gap: 12px; }
.tier-card .tier-phase { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); }
.tier-card .tier-minimum { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-40); }
.tier-card .tier-best { font-size: 13px; color: var(--white-40); line-height: 1.6; margin: 2px 0 0; }
.tier-card .tier-best span { color: var(--white-60); }
.tier-card hr { border: none; height: 1px; background: var(--white-10); margin: 2px 0; width: 100%; }
.tier-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tier-card ul li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--white-60); line-height: 1.5; }
.tier-card ul li svg { flex-shrink: 0; margin-top: 3px; }
.tier-card ul li.note { color: var(--white-40); font-style: italic; }
.tier-card .price-row { display: flex; align-items: baseline; gap: 6px; }
.tier-card .price-row .amt { font-size: 27px; font-weight: 600; color: var(--amber); letter-spacing: -0.03em; }
.tier-card .price-row .unit { font-size: 12px; color: var(--white-40); font-family: 'DM Mono', monospace; }

/* ── Section / Layout Utilities ── */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
.text-center { text-align: center; }
.text-amber  { color: var(--amber); }

/* Section heading defaults */
h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(22px, 2.8vw, 34px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }
h4 { font-size: clamp(16px, 1.4vw, 18px); }

p {
  line-height: 1.75;
  color: var(--white-60);
}

/* Table shared styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 0.5px solid var(--white-10);
}
.data-table td {
  padding: 14px 16px;
  color: var(--white-60);
  border-bottom: 0.5px solid var(--white-10);
  line-height: 1.5;
}
.data-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}
.data-table td:first-child { color: var(--white); font-weight: 500; }
.savings { color: var(--amber); }

/* Divider */
.section-divider {
  border: none;
  border-top: 0.5px solid var(--white-10);
  margin: 4rem 0;
}

/* Amber text link */
.link-amber {
  color: var(--amber);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}
.link-amber:hover { opacity: 0.75; text-decoration: underline; }

/* ── Responsive Breakpoints ── */
@media (max-width: 768px) {
  .section { padding-top: 3rem; padding-bottom: 3rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo { display: flex; justify-content: center; }
  .footer-email { text-align: center; }
  .footer-nav { justify-content: center; }
  h1 { font-size: clamp(26px, 6vw, 38px); }
}

@media (max-width: 480px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  #site-nav { padding: 0 1.25rem; }
}
