/* ==============================================
   GD Technology — Master Stylesheet v2
   All pages import this. Edit once, affects all.
   ============================================== */

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

:root {
  /* Ink — the one dark surface, used for nav, footer, hero, CTA bands */
  --navy:        #0A1628;
  --navy-mid:    #0F1F36;
  --navy-light:  #16304F;
  /* Paper — warm, not clinical white; this is what most of the page sits on */
  --off-white:   #F5F3EE;
  --paper-mid:   #EBE7DC;
  --white:       #FFFFFF;
  /* Signal — the one accent color in the entire system; never decorative, always meaning "this is the number/action that matters" */
  --accent:      #FF6B47;
  --accent-hover:#FF8163;
  --accent-dim:  #FFF1EC;
  /* Kept as an alias so existing component rules referencing --blue still resolve to the signal color */
  --blue:        #FF6B47;
  --blue-light:  #FFF1EC;
  /* Text — warm slate instead of flat black */
  --text:        #1C2620;
  --text-mid:    #4A5048;
  --text-muted:  #767D72;
  --border:      #DDD8CA;
  --shadow-sm:   0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.04);
  --shadow-md:   0 4px 16px rgba(10,22,40,0.08), 0 2px 6px rgba(10,22,40,0.04);
  --shadow-lg:   0 8px 32px rgba(255,107,71,0.14), 0 4px 12px rgba(10,22,40,0.08);
  --font-display:'Syne', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   14px;
  --transition:  0.2s ease;
  --max-w:       1140px;
  --nav-h:       64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(11,28,58,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(11,28,58,0.99);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--white); text-decoration: none;
  letter-spacing: -0.5px; flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 0.25rem; list-style: none; align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.75rem; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 7px !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 999;
  padding: 0.75rem 1rem 1.25rem;
  animation: slideDown 0.25s ease;
}
.nav-drawer.open { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-drawer a {
  display: flex; align-items: center;
  padding: 0.85rem 1rem; border-radius: 8px;
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 1rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-drawer a:hover, .nav-drawer a.active { background: rgba(255,255,255,0.07); color: white; }
.nav-drawer .drawer-cta {
  display: block; margin-top: 0.75rem;
  background: var(--accent); color: var(--navy);
  text-align: center; padding: 0.9rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background var(--transition);
}
.nav-drawer .drawer-cta:hover { background: var(--accent-hover); }

/* Overlay when drawer is open */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 998;
}
.nav-overlay.open { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: scale(0.98) !important; }

.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,71,0.35); }

.btn-outline-light {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.07); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 96px 2rem; }
.section-sm { padding: 64px 2rem; }

/* ── SECTION LABELS ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.75rem;
}
.eyebrow::before { content: '//'; opacity: 0.5; }
.eyebrow-light { color: var(--accent); }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  background: rgba(255,107,71,0.12); border: 1px solid rgba(255,107,71,0.3);
  color: var(--accent); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 40px; margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.5px;
  line-height: 1.18; color: var(--navy); margin-bottom: 1rem;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-title-light { color: var(--white); }

.section-sub {
  color: var(--text-muted); font-size: 1rem;
  line-height: 1.75; max-width: 580px;
}
.section-sub-light { color: rgba(255,255,255,0.6); }

.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy); padding: 120px 2rem 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,71,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,71,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, black 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

/* ── Signature: live data ticker (shared) ── */
.ticker {
  background: var(--accent); overflow: hidden;
  border-top: 1px solid rgba(10,22,40,0.15);
  position: relative;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 38s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}
.ticker-item {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  color: var(--navy); white-space: nowrap;
  padding: 0.65rem 2rem; display: flex; align-items: center; gap: 10px;
  border-right: 1px solid rgba(10,22,40,0.15);
}
.ticker-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--navy); opacity: 0.5; flex-shrink: 0; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,0.4); text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -1px; line-height: 1.12;
  margin-bottom: 1rem;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .hero-sub {
  color: rgba(255,255,255,0.65); font-size: 1.05rem;
  line-height: 1.75; max-width: 560px;
}

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem; flex-shrink: 0;
}
.icon-blue   { background: var(--blue-light); }
.icon-teal   { background: var(--accent-dim); }
.icon-orange { background: #FFF3E0; }
.icon-purple { background: #EEF2FF; }
.icon-green  { background: #F0FDF4; }

/* ── TAGS & BADGES ── */
.tag {
  display: inline-block; background: var(--off-white);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem; font-weight: 600; color: var(--navy);
}
.tag-accent { background: var(--accent-dim); border-color: rgba(255,107,71,0.3); color: #8A3018; }
.tag-blue   { background: var(--off-white); border-color: var(--border); color: var(--navy); }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 40px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-accent { background: var(--accent); color: var(--navy); }
.badge-navy   { background: var(--navy); color: white; }

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--text-mid); line-height: 1.55;
}
.check-list li::before {
  content: '✓'; color: var(--accent); font-weight: 700;
  flex-shrink: 0; margin-top: 1px; font-size: 0.8rem;
}
.arrow-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.arrow-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--text-mid); line-height: 1.55;
}
.arrow-list li::before {
  content: '→'; color: var(--accent); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label       { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); }
input, select, textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; background: var(--white); width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,71,0.12);
}
input::placeholder, textarea::placeholder { color: #B0B8C4; }
textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--accent); color: var(--navy); border: none;
  padding: 0.9rem 2rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%; font-family: var(--font-body);
}
.form-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-success {
  display: none;
  background: var(--accent-dim); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1rem;
  font-size: 0.875rem; color: #8A3018; text-align: center; line-height: 1.6;
}
.form-error {
  display: none;
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: var(--radius-sm); padding: 1rem;
  font-size: 0.875rem; color: #991b1b; text-align: center; line-height: 1.6;
}
.field-error { font-size: 0.75rem; color: #DC2626; margin-top: 0.25rem; display: none; }
.field-error.show { display: block; }
input.invalid, select.invalid, textarea.invalid { border-color: #DC2626; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--navy); padding: 88px 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,71,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,71,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: white;
  letter-spacing: -0.5px; margin-bottom: 1rem; line-height: 1.2;
  position: relative; z-index: 1;
}
.cta-strip p {
  color: rgba(255,255,255,0.62); max-width: 520px; margin: 0 auto 2.5rem;
  font-size: 1rem; line-height: 1.75; position: relative; z-index: 1;
}
.cta-strip .btn { position: relative; z-index: 1; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.55);
  padding: 64px 2rem 32px;
}
.footer-inner  { max-width: var(--max-w); margin: 0 auto; }
.footer-grid   {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--white); text-decoration: none;
  letter-spacing: -0.5px; display: inline-block; margin-bottom: 0.8rem;
}
.footer-brand-logo span { color: var(--accent); }
.footer-brand p { font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.45); max-width: 240px; }
.footer-col h4 { color: white; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  color: rgba(255,255,255,0.45); text-decoration: none;
  font-size: 0.85rem; transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: var(--navy);
  padding: 0.5rem 1rem; border-radius: 4px; font-weight: 700;
  text-decoration: none; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* ── UTILITIES ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.bg-off-white { background: var(--off-white); }
.bg-navy      { background: var(--navy); }
.text-center  { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* ── DIVIDER ── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── RESPONSIVE BREAKPOINTS ── */

/* Tablet */
@media (max-width: 1024px) {
  :root { --max-w: 960px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .section    { padding: 72px 1.25rem; }
  .section-sm { padding: 48px 1.25rem; }
  .container  { padding: 0 1.25rem; }
  .form-row   { grid-template-columns: 1fr; }
  .page-hero  { padding: 100px 1.25rem 60px; }
  .cta-strip  { padding: 64px 1.25rem; }
}

/* Small mobile */
@media (max-width: 480px) {
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }
}
