/* ============================================
   Adjutant LTD. Global Styles
   Premium warm charcoal + metallic silver.
   Powerful, minimal, business-card aesthetic.
   ============================================ */

:root {
  --bg-primary:    #1a1d23;
  --bg-secondary:  #21252d;
  --bg-card:       #21252d;
  --text-primary:  #f1f5f9;
  --text-secondary:#9ca3af;
  --text-muted:    #6b7280;
  --accent:        #d4d4d4;
  --accent-hover:  #eeeeee;
  --accent-soft:   rgba(212, 212, 212, 0.12);
  --accent-glow:   rgba(212, 212, 212, 0.08);
  --border:        #2d313a;
  --border-hover:  #3d4152;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.3);
  --ease-out:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-quint:cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 8px 16px; background: var(--accent); color: #0a1814;
  text-decoration: none; font-weight: 600; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Reset & Base ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
*, *::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-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11", "cv02";
  position: relative;
}

/* ---------- Metallic Text Utility ---------- */
.metallic {
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 40%, #d8d8d8 50%, #ffffff 60%, #b0b0b0 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: metallicShimmer 5s ease-in-out infinite;
}
@keyframes metallicShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -0.012em; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }

p { margin-bottom: 1rem; color: var(--text-secondary); }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--accent-hover); }
strong { color: var(--text-primary); font-weight: 600; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--text-secondary);
}

[id] { scroll-margin-top: 80px; }

/* ---------- Layout ---------- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5.5rem 0;
  position: relative;
}
.section-tight { padding: 3rem 0 5.5rem; }
.section-center { text-align: center; }
.section-divider {
  height: 1px;
  max-width: 220px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.45;
}

/* ---------- Reveal Animations ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-quint),
              transform 0.7s var(--ease-out-quint);
  will-change: opacity, transform;
}
.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Extra animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50%      { box-shadow: 0 0 24px 2px var(--accent-glow); }
}

/* ---------- Particles ---------- */
#particles {
  position: absolute;
  top: 0; left: 0; width: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26, 29, 35, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 64px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text-primary);
  font-weight: 600; font-size: 1.05rem;
  letter-spacing: -0.015em;
  transition: opacity 0.2s var(--ease-out);
}
.nav-logo:hover { opacity: 0.85; color: var(--text-primary); }
.nav-mark {
  width: 18px; height: 18px;
  color: var(--accent);
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ---------- Home (full-viewport landing) ---------- */
.home {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 5rem 1.5rem 6rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.home-inner {
  max-width: 720px; margin: 0 auto; width: 100%;
  position: relative;
  z-index: 1;
}
.home-mark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.home-mark svg { color: var(--accent); width: 14px; height: 14px; }
.home h1 {
  max-width: 100%;
  margin: 0 auto 1.5rem;
}
.home h1 .accent { color: var(--accent); }
.home-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto 2rem;
}
.hero-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(167, 172, 186, 0.35);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
.hero-link:hover {
  color: #d4d4d4;
  text-decoration-color: var(--accent);
}
.hero-btn {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}
.hero-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(167, 172, 186, 0.08);
  transform: translateY(-1px);
}

/* ---------- Home product card ---------- */
.home-product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  margin: 1.5rem auto 0;
  text-align: left;
  transition: transform 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.home-product:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent-soft), 0 0 32px var(--accent-glow);
}
.home-product h3 {
  margin-bottom: 0.65rem;
  font-size: 1.3rem;
}
.home-product p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.home-product .card-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: block;
}
.home-product .card-num::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: livePulse 2.4s var(--ease-out) infinite;
  box-shadow: 0 0 8px var(--accent-soft);
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.home-product .card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.9rem; font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s var(--ease-out);
}
.home-product .card-link:hover {
  color: var(--accent-hover);
  transform: translateX(2px);
}
.home-product .card-link svg { width: 0.85em; height: 0.85em; }

/* ---------- Page Header (section headers) ---------- */
.page-header {
  padding: 9rem 1.5rem 3.5rem;
  max-width: 1080px; margin: 0 auto;
}
.page-header h1 { margin: 0 auto 1.25rem; max-width: 22ch; }
.page-header h2 { margin: 0 auto 1.25rem; max-width: 22ch; }
.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0 auto;
}
.page-header .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.page-header .label::before {
  content: '';
  display: inline-block; width: 16px; height: 1px; background: var(--accent);
}
.page-header-tight {
  padding: 0 0 3rem;
  max-width: 100%;
}
.page-header-tight h2 { margin: 0 auto 1rem; }
.page-header-tight p { font-size: 1.05rem; max-width: 56ch; }
.page-header-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out),
              background 0.2s var(--ease-out),
              color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out);
  cursor: pointer; border: 1px solid transparent;
  text-decoration: none; line-height: 1.2;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #0a0d10;
  box-shadow: 0 2px 8px rgba(192, 192, 192, 0.18);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0a0d10;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 192, 192, 0.28);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent-soft);
}
.card h3 {
  margin-bottom: 0.65rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: block;
}
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.9rem; font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s var(--ease-out);
}
.card-link:hover {
  color: var(--accent-hover);
  transform: translateX(2px);
}
.card-link svg { width: 0.85em; height: 0.85em; }

/* "In development" badge */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-secondary);
  margin-bottom: 0.85rem;
  align-self: flex-start;
}
.badge::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--text-muted);
}

/* ---------- About / Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.team-grid-center {
  justify-items: center;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 380px;
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 0 24px var(--accent-glow);
}
.team-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border);
  display: block;
}
.team-photo-david {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border);
  display: block;
}
.team-card h3 { margin-bottom: 0.3rem; }
.team-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  display: block;
}
.team-card p { font-size: 0.95rem; line-height: 1.6; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 0.5rem; color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out),
              background 0.2s var(--ease-out);
  line-height: 1.4;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:hover,
.form-group textarea:hover { border-color: var(--border-hover); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.hp-field {
  position: absolute;
  left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.form-notice {
  margin-top: 1.5rem; padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-secondary);
  background: var(--bg-secondary);
}
.form-notice.error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  color: #fca5a5;
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: fadeIn 0.4s var(--ease-out-quint);
}
.form-success-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a1814;
  margin-bottom: 1.25rem;
}
.form-success-icon svg { width: 28px; height: 28px; }
.form-success h3 {
  font-size: 1.3rem; font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.form-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-primary);
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.3rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.2s var(--ease-out);
}
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- In-content links within prose ---------- */
.prose a {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.prose a:hover { border-bottom-color: var(--accent); }

/* ---------- External link icon ---------- */
.ext-icon {
  display: inline-block;
  width: 0.85em; height: 0.85em;
  margin-left: 0.15em;
  vertical-align: baseline;
  opacity: 0.7;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .metallic { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container { max-width: 100%; padding: 0 2rem; }
}
@media (max-width: 768px) {
  .nav { height: 60px; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.85rem; }
  .nav-logo span { display: none; }
  .page-header { padding: 7rem 1.5rem 2.5rem; }
  .team-grid { grid-template-columns: 1fr; justify-items: center; }
  .team-card { max-width: 400px; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { gap: 1.25rem; flex-wrap: wrap; }
  .section { padding: 4rem 0; }
  .home-product { max-width: 100%; }
  .home { padding: 6rem 1.5rem 6rem; }
}
@media (max-width: 480px) {
  .nav-links a { font-size: 0.82rem; }
  .card { padding: 1.5rem; }
  .team-card { padding: 1.5rem; }
  .home { padding: 5rem 1.25rem 4rem; }
  .home h1 { font-size: 2.1rem; }
  .home-sub { max-width: 100%; }
}
@media (min-width: 1600px) {
  .container { max-width: 1080px; }
}