/* ================================================================
   Veteran Service Connect — Design System 2026
   Principal: Ive / Chesky / Schultz / Vogels / Karpathy
   ================================================================ */

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

/* ----------------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  --bg:         #060609;
  --bg-2:       #0A0A10;
  --surface:    #0D0D16;
  --surface-2:  #13131F;
  --surface-3:  #18182A;

  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(99,102,241,0.35);
  --border-glow:  rgba(99,102,241,0.6);

  --a1: #6366F1;  /* indigo */
  --a2: #8B5CF6;  /* violet */
  --a3: #EC4899;  /* pink */
  --gold: #F59E0B;
  --green: #10B981;

  --text:   #F1F5F9;
  --text-2: #8891A8;
  --text-3: #4A5168;

  --grad-brand: linear-gradient(135deg, var(--a1) 0%, var(--a2) 50%, var(--a3) 100%);
  --grad-subtle: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.08));

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 100px;

  --space: 8px;
}

/* ----------------------------------------------------------------
   RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(99,102,241,0.3); color: var(--text); }

/* ----------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--space) * 3);
}
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 800px; }

/* ----------------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------------- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.display-l {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.headline-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a1);
}
.body-l { font-size: 18px; line-height: 1.75; }
.body { font-size: 16px; line-height: 1.7; }
.body-sm { font-size: 14px; line-height: 1.65; }
.caption { font-size: 12px; line-height: 1.5; }

/* ----------------------------------------------------------------
   GRADIENT TEXT
   ---------------------------------------------------------------- */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-blue {
  background: linear-gradient(135deg, #6366F1, #A5B4FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--space) * 1);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  padding: 12px 24px;
  font-size: 15px;
  background: var(--a1);
  color: #fff;
}
.btn-primary::after { background: rgba(255,255,255,0.1); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(99,102,241,0.35); }

.btn-gradient {
  padding: 13px 28px;
  font-size: 15px;
  background: var(--grad-brand);
  color: #fff;
  border: none;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99,102,241,0.4); }

.btn-ghost {
  padding: 12px 24px;
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(99,102,241,0.08); }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* Arrow icon in button */
.btn-arrow::after {
  content: '→';
  font-family: var(--font-body);
  margin-left: 4px;
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ----------------------------------------------------------------
   BADGES
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
}
.badge-indigo {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #A5B4FC;
}
.badge-gold {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  color: #FCD34D;
}
.badge-green {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6EE7B7;
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ----------------------------------------------------------------
   NAV
   ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(6,6,9,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--grad-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--a1);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ----------------------------------------------------------------
   SECTIONS
   ---------------------------------------------------------------- */
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-dark { background: var(--bg-2); }
.section-surface { background: var(--surface); }

.section-header {
  margin-bottom: calc(var(--space) * 8);
}
.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: calc(var(--space) * 8);
}
.section-header .eyebrow { margin-bottom: calc(var(--space) * 2); }
.section-header .headline { margin-bottom: calc(var(--space) * 2); }
.section-header .body-l { color: var(--text-2); max-width: 540px; }
.section-header.centered .body-l { margin: 0 auto; }

/* ----------------------------------------------------------------
   CARDS
   ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: calc(var(--space) * 4);
  transition: border-color 0.25s, transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.1);
}
.card-glass {
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.card-gradient-border {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--grad-brand) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
}

/* ----------------------------------------------------------------
   ICON BOXES
   ---------------------------------------------------------------- */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--a1);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  flex-shrink: 0;
}
.icon-box svg { width: 22px; height: 22px; }

/* ----------------------------------------------------------------
   HERO BASE
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Dot grid background */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99,102,241,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Ambient glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-drift 10s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px;
  height: 400px;
  background: rgba(99,102,241,0.18);
  top: -10%;
  left: 20%;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(139,92,246,0.12);
  top: 20%;
  right: 5%;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(236,72,153,0.08);
  bottom: 10%;
  left: 10%;
  animation-delay: -3s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.05); }
}

/* ----------------------------------------------------------------
   SCROLL REVEAL
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}
.reveal.revealed {
  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; }

/* ----------------------------------------------------------------
   DIVIDERS
   ---------------------------------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(139,92,246,0.5), transparent);
}

/* ----------------------------------------------------------------
   STATS ROW
   ---------------------------------------------------------------- */
.stats-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ----------------------------------------------------------------
   BENTO GRID
   ---------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: min-content;
  gap: 16px;
}

/* ----------------------------------------------------------------
   PROCESS STEPS
   ---------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% / 5);
  right: calc(50% / 5);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--a1), var(--a2), var(--border), transparent);
}
.process-step {
  padding: 32px 24px;
  position: relative;
  text-align: center;
}
.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--a1);
  margin: 0 auto calc(var(--space) * 3);
  position: relative;
  z-index: 1;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: calc(var(--space) * 1.5);
}
.process-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   PARTNER BADGE (text-based, no broken images)
   ---------------------------------------------------------------- */
.partner-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.partner-wordmark:hover { border-color: var(--border-hover); color: var(--text); }
.partner-wordmark .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a1);
}

/* ----------------------------------------------------------------
   CONTACT FORM
   ---------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%234A5168' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-note { font-size: 13px; color: var(--text-3); text-align: center; }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  padding-bottom: 64px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin: 20px 0;
  max-width: 280px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}
.footer-built {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-built span { color: var(--a1); }

/* ----------------------------------------------------------------
   PAGE-SPECIFIC — SUB-PAGE HERO
   ---------------------------------------------------------------- */
.page-hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { margin-bottom: 16px; }

/* Service tag colors */
[data-page="jira"] .page-accent { color: #6366F1; }
[data-page="businessconsulting"] .page-accent { color: #8B5CF6; }
[data-page="mobileappdesign"] .page-accent { color: #EC4899; }
[data-page="productivity"] .page-accent { color: #10B981; }

/* ----------------------------------------------------------------
   PRODUCT SHOWCASE
   ---------------------------------------------------------------- */
.product-frame {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.product-frame-bar {
  height: 44px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.product-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.product-frame-dot:nth-child(1) { background: #FF5F57; }
.product-frame-dot:nth-child(2) { background: #FEBC2E; }
.product-frame-dot:nth-child(3) { background: #28C840; }
.product-frame-content {
  padding: 24px;
  min-height: 200px;
}

/* ----------------------------------------------------------------
   CHECKLIST
   ---------------------------------------------------------------- */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}
.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%236366F1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stats-row { gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .page-hero { padding: 120px 0 80px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(6,6,9,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .stats-row { gap: 24px; }
  .stat-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; }
  .footer-links-grid { grid-template-columns: 1fr; }
}
