/* ==========================================================
   Generaite Digital — Shared Stylesheet
   Extracted from 25 production pages (excludes intake design system)
   Rules included only if they appear in 3+ pages
   ========================================================== */

/* ── :root Variables (Light theme defaults) ──────────────── */

:root {
  --bg: #f4f5f6;
  --bg-tint: #eaecef;
  --ink: #141414;
  --ink-soft: #2a2a29;
  --mute: #6d6a64;
  --line: #ced3d8;
  --line-soft: #dde0e3;
  --accent: #1B9EE0;
  --accent-bright: #00AEEF;
  --accent-deep: #0E6FA3;
  --accent-soft: #e6f4fb;
  --paper: #ffffff;
  --maxw: 1200px;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Reset / Base ────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ── Layout ───────────────────────────────────────────────── */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Skip Link (Accessibility) ────────────────────────────── */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ── Label / Badge ────────────────────────────────────────── */

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.label .num { color: var(--ink); }
.label .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 2px;
  animation: dotbreath 3.2s ease-in-out infinite;
}

@keyframes dotbreath {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* ── Tag ──────────────────────────────────────────────────── */

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Navigation ───────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,245,246,0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: color .2s ease;
}
.brand:hover { color: var(--accent); }

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
  flex-shrink: 0;
  display: block;
}
.brand:hover .brand-mark { transform: rotate(-4deg); }

.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
}

.brand-img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.brand:hover .brand-img { transform: scale(1.02); }

.brand-img-lg {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--accent); }

.nav-links a:not(.btn) {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all .18s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: #141414 !important;
  color: #ffffff !important;
  border: 1px solid #141414 !important;
}
.btn-primary:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}
.btn-primary .btn-arrow { color: #ffffff !important; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--accent);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── Orbital Signature Module ─────────────────────────────── */

.orbit {
  --orbit-speed-1: 22s;
  --orbit-speed-2: 32s;
  --orbit-speed-3: 42s;
  position: relative;
  aspect-ratio: 1;
  display: block;
  pointer-events: none;
}
.orbit-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.orbit-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 0.8;
}
.orbit-center { fill: var(--ink); }
.orbit-dot {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
}

.orbit--three .orbit-dot.d1 { animation: orbit-r1 var(--orbit-speed-1) linear infinite; }
.orbit--three .orbit-dot.d2 { animation: orbit-r2 var(--orbit-speed-2) linear infinite reverse; }
.orbit--three .orbit-dot.d3 { animation: orbit-r3 var(--orbit-speed-3) linear infinite; }

.orbit--one .orbit-dot.d1 { animation: orbit-r3 var(--orbit-speed-3) linear infinite; }

@keyframes orbit-r1 {
  0%   { transform: rotate(0deg)   translateX(110px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}
@keyframes orbit-r2 {
  0%   { transform: rotate(0deg)   translateX(160px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
@keyframes orbit-r3 {
  0%   { transform: rotate(0deg)   translateX(200px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

/* ── Hero (Shared Base) ──────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerhero 6s ease-in-out infinite;
}

@keyframes shimmerhero {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-label { margin-bottom: 32px; }

/* Hero orbital background — positioned per page via inline styles or page-specific CSS */
.hero-orbit {
  position: absolute;
  opacity: 0.28;
  z-index: 0;
}

/* Hero graphic — decorative SVG per service/industry page */
.hero-graphic {
  position: absolute;
  top: 60px;
  right: -20px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
}
.hero-graphic svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hero-graphic-mobile { display: none; }

@media (min-width: 1280px) {
  .hero-graphic { top: 40px; right: 0; width: 600px; height: 600px; opacity: 0.36; }
}
@media (max-width: 1100px) {
  .hero-graphic { top: 80px; right: -80px; width: 460px; height: 460px; opacity: 0.28; }
}
@media (max-width: 900px) {
  .hero-graphic { top: 100px; right: -140px; width: 400px; height: 400px; opacity: 0.22; }
}
@media (max-width: 820px) {
  .hero-orbit { top: -260px; right: -400px; width: 640px; height: 640px; opacity: 0.18; }
}
@media (max-width: 560px) {
  .hero-graphic { display: none; }
  .hero-graphic-mobile {
    display: block;
    width: 160px;
    height: 100px;
    margin: 0 0 24px;
  }
  .hero-graphic-mobile svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
  }
  .hero-orbit { display: none; }
}

/* Hero pulse bar — live system indicator (index, contact) */
.hero-pulse-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px;
  max-width: 560px;
}
.hero-pulse-track {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.hero-pulse-track::before,
.hero-pulse-track::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-bright) 50%,
    transparent
  );
  animation: hero-flow 4.2s linear infinite;
  pointer-events: none;
}
.hero-pulse-track::after { animation-delay: 2.1s; }

@keyframes hero-flow {
  0%   { transform: translateX(-60px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(560px); opacity: 0; }
}

.hero-pulse-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hero-pulse-label .led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(27,158,224,0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,174,239,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(0,174,239,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,174,239,0); }
}

/* ── Section Base ─────────────────────────────────────────── */

section {
  padding: 96px 0;
  border-top: 1px solid var(--line-soft);
}

.sec-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: start;
}
.sec-head .kicker { padding-top: 8px; }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.sec-head h2 em {
  font-style: italic;
  color: var(--accent);
  transition: transform .5s cubic-bezier(.2,.6,.2,1), color .3s;
  display: inline-block;
  cursor: default;
}
.sec-head h2 em:hover {
  transform: translateY(-2px);
  color: var(--accent-deep);
}

/* ── Breadcrumb ───────────────────────────────────────────── */

.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 24px 0 0;
}
.breadcrumb a {
  color: var(--mute);
  transition: color .2s ease;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep {
  margin: 0 10px;
  color: var(--line);
}

/* ── Proof Dark Section ───────────────────────────────────── */

.proof-dark {
  background: var(--ink);
  color: #ffffff;
  padding: 112px 0 96px;
  position: relative;
  overflow: hidden;
  border-top: 0;
}

.proof-orbit {
  position: absolute;
  bottom: -340px;
  right: -340px;
  width: 780px;
  height: 780px;
  opacity: 0.22;
  z-index: 0;
}
.proof-orbit .orbit-ring { stroke: rgba(255,255,255,0.22); }
.proof-orbit .orbit-center { fill: rgba(255,255,255,0.55); }
.proof-orbit .orbit-dot { fill: var(--accent-bright); }

.proof-dark .container { position: relative; z-index: 1; }

.proof-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 28px;
}

.proof-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 2px;
  animation: dotbreath 3.2s ease-in-out infinite;
}

.proof-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  max-width: 22ch;
  color: #ffffff;
}
.proof-headline em {
  font-style: italic;
  color: var(--accent-bright);
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
  display: inline-block;
  cursor: default;
}
.proof-headline em:hover { transform: translateY(-2px); }

.proof-quote-dark {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #d4d4d4;
  font-style: italic;
  margin: 0 0 14px;
  max-width: 56ch;
  border-left: 3px solid var(--accent-bright);
  padding-left: 24px;
}
.proof-quote-dark em {
  font-style: italic;
  color: var(--accent-bright);
  font-weight: 400;
}

.proof-attrib-dark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 48px;
  padding-left: 27px;
}

.proof-stats-dark {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 40px;
}
.proof-stat-dark {
  background: var(--ink);
  padding: 32px 24px;
}
.proof-stat-dark .n {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent-bright);
  margin: 0 0 12px;
}
.proof-stat-dark .n em { font-style: italic; }
.proof-stat-dark .l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  line-height: 1.4;
  margin: 0;
}

.proof-cta-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 3px;
  transition: all .2s ease;
}
.proof-cta-dark:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
  transform: translateX(2px);
}

/* ── section.differ-dark (8 pages) ────────────────────────── */

section.differ-dark {
  background: var(--ink);
  color: #ffffff;
  border-top: 0;
  position: relative;
  overflow: hidden;
}
section.differ-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(0,174,239,0.08), transparent 55%),
    radial-gradient(circle at 15% 70%, rgba(0,174,239,0.05), transparent 55%);
  pointer-events: none;
}
section.differ-dark .container { position: relative; z-index: 1; }
section.differ-dark .label { color: #888; }
section.differ-dark .label .num { color: var(--accent-bright); }
section.differ-dark .label .dot { background: var(--accent-bright); }
section.differ-dark .sec-head h2 { color: #ffffff; }
section.differ-dark .sec-head h2 em { color: var(--accent-bright); }
section.differ-dark .sec-head h2 em:hover { color: var(--accent-bright); }

/* ── Footer ───────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.foot-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-col h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 18px;
  font-weight: 500;
}
.foot-col a, .foot-col p {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  line-height: 1.5;
}
.foot-col a:hover { color: var(--accent); }

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.foot-brand .brand-mark-lg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.foot-bottom {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  flex-wrap: wrap;
}

/* ── Fade-in Animations ───────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fade 0.9s cubic-bezier(.2,.6,.2,1) forwards;
}
.fade-up.d1 { animation-delay: .05s; }
.fade-up.d2 { animation-delay: .15s; }
.fade-up.d3 { animation-delay: .28s; }
.fade-up.d4 { animation-delay: .42s; }
.fade-up.d5 { animation-delay: .56s; }

@keyframes fade {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive: Nav ──────────────────────────────────────── */

@media (max-width: 780px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 0; }
}

/* ── Responsive: Sections ─────────────────────────────────── */

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .sec-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }
}

/* ── Responsive: Footer ──────────────────────────────────── */

@media (max-width: 720px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: Proof Dark ───────────────────────────────── */

@media (max-width: 860px) {
  .proof-stats-dark { grid-template-columns: repeat(2, 1fr); }
  .proof-dark { padding: 80px 0 72px; }
}

@media (max-width: 560px) {
  .proof-orbit { display: none; }
}

/* ── Reduced Motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero h1 em {
    animation: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--accent);
  }
  .orbit-dot { animation: none !important; }
  .label .dot { animation: none; }
  .proof-dot { animation: none; }
  .hero-pulse-track::before,
  .hero-pulse-track::after { animation: none; opacity: 0; }
  .hero-pulse-label .led { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Article internal links (subtle, non-distracting) ── */
.article-content a{
  color: var(--ink-soft);
  font-style: italic;
  text-decoration: none;
  border-bottom: none;
  transition: color .2s ease, text-decoration .2s ease;
}
.article-content a:hover{
  color: var(--accent);
  text-decoration: underline;
}
