/* GroundControl Unified Design System */
/* GIS Professional Typography & Spatial Design */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --gc-green: rgba(44, 110, 46, 0.88);
  --gc-green-2: rgba(44, 110, 46, 0.72);
  --gc-green-solid: #2c6e2e;
  --gc-green-dark: #1e4a1f;
  --gc-green-light: #4fbe4f;
  --gc-gold: #8a6b0a;
  --gc-gold-light: #b8940f;
  --gc-accent: #0099ff;
  --gc-accent-subtle: #e0f2ff;

  /* Backgrounds */
  --gc-bg: #cfe2d3;
  --gc-card: #ffffff;
  --gc-card-hover: #f8f9fa;
  --gc-grid: rgba(44, 110, 46, 0.03);

  /* Text */
  --gc-text: #2c3e2c;
  --gc-text-secondary: #6c7d6c;
  --gc-text-muted: #9ca69c;

  /* Shadows */
  --gc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --gc-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --gc-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --gc-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

  /* Spacing */
  --gc-spacing-xs: 0.5rem;
  --gc-spacing-sm: 0.75rem;
  --gc-spacing-md: 1rem;
  --gc-spacing-lg: 1.5rem;
  --gc-spacing-xl: 2rem;
  --gc-spacing-2xl: 3rem;

  /* Border radius */
  --gc-radius: 12px;
  --gc-radius-sm: 8px;
  --gc-radius-lg: 16px;

  /* Transitions */
  --gc-transition: all 0.2s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--gc-text);
  background: var(--gc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gc-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gc-bg);
  position: relative;
}

.gc-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(0deg, rgba(44, 110, 46, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 110, 46, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.gc-page-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--gc-spacing-lg) var(--gc-spacing-md);
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--gc-spacing-md) 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { 
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 { 
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
h3 { 
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gc-green-solid);
}
h4 { font-size: 1.1rem; }

p {
  margin: 0 0 var(--gc-spacing-md) 0;
  font-size: 0.95rem;
}

code, pre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  background: var(--gc-accent-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gc-green-dark);
}

/* Navigation */
.gc-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gc-spacing-lg);
  background: rgba(20, 24, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(44, 110, 46, 0.3);
  gap: var(--gc-spacing-md);
}

.gc-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.gc-brand-badge {
  background: var(--gc-gold);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.gc-nav {
  display: flex;
  gap: var(--gc-spacing-lg);
  align-items: center;
  font-weight: 500;
}

.gc-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--gc-transition);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
}

.gc-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--gc-green-light);
}

.gc-nav a.active {
  color: #fff;
  border-bottom-color: var(--gc-green-light);
  background: rgba(44, 110, 46, 0.3);
}

.gc-right {
  display: flex;
  align-items: center;
  gap: var(--gc-spacing-sm);
}

/* Account Menu */
.gc-account {
  position: relative;
}

.gc-account-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--gc-transition);
}

.gc-account-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gc-account-menu {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 200px;
  background: rgba(16, 18, 16, 0.95);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow-lg);
  padding: var(--gc-spacing-sm);
  display: none;
  z-index: 100;
}

.gc-account-menu.active {
  display: block;
}

.gc-account-menu a {
  display: block;
  padding: 10px var(--gc-spacing-sm);
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--gc-transition);
}

.gc-account-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: var(--gc-spacing-sm) 0;
}

/* Cards */
.gc-card {
  background: var(--gc-card);
  border-radius: 14px;
  box-shadow: var(--gc-shadow-md);
  padding: var(--gc-spacing-lg);
  margin-bottom: var(--gc-spacing-lg);
  border-left: 6px solid var(--gc-green-solid);
  border-top: 1px solid rgba(44, 110, 46, 0.1);
  position: relative;
  overflow: hidden;
}

.gc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.gc-card h3 {
  border-bottom: 2px solid var(--gc-accent-subtle);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--gc-transition);
  background: linear-gradient(135deg, var(--gc-green-solid) 0%, var(--gc-green-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(44, 110, 46, 0.25);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--gc-transition);
  background: rgba(255,255,255,0.15);
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 110, 46, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(44, 110, 46, 0.2);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.btn-large {
  padding: 13px 24px;
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: var(--gc-spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gc-text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d8e2d8;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'IBM Plex Mono', monospace;
  transition: var(--gc-transition);
  background: #fafbfa;
  color: var(--gc-text);
  letter-spacing: 0.3px;
}

.form-input:focus {
  outline: none;
  border-color: var(--gc-green-solid);
  background: white;
  box-shadow: 0 0 0 4px rgba(44, 110, 46, 0.1), 0 4px 12px rgba(44, 110, 46, 0.15);
}

.form-input::placeholder {
  color: var(--gc-text-muted);
  font-style: italic;
}

.form-error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
}

/* Footer */
footer {
  background: #d7e8dc;
  color: var(--gc-text-secondary);
  padding: var(--gc-spacing-xl) var(--gc-spacing-md);
  margin-top: var(--gc-spacing-2xl);
  border-top: 3px solid var(--gc-green-solid);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

footer a {
  color: var(--gc-green-solid);
  text-decoration: none;
  font-weight: 600;
  transition: var(--gc-transition);
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--gc-text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--gc-spacing-sm); }
.mb-md { margin-bottom: var(--gc-spacing-md); }
.mb-lg { margin-bottom: var(--gc-spacing-lg); }

/* Responsive */
@media (max-width: 768px) {
  .gc-page-content {
    padding: var(--gc-spacing-md) var(--gc-spacing-sm);
  }

  .gc-topbar {
    padding: 0 var(--gc-spacing-md);
  }

  .gc-nav {
    gap: var(--gc-spacing-sm);
  }

  .gc-nav a {
    padding: 6px 8px;
    font-size: 0.9rem;
  }
}

/* Home Page Specific Styles */
.gc-hero {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 70vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c120d;
}

.gc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/groundcontrol_backsplash.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.gc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 70% 45%, rgba(0,0,0,0.05), rgba(0,0,0,0.52)),
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.55));
}

.gc-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
  padding: 34px 0;
}

/* Left copy (What / Why / For) */
.gc-hero-left {
  color: rgba(255,255,255,0.92);
  max-width: 640px;
}

.gc-hero-left h1 {
  margin: 0 0 10px 0;
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.gc-hero-left .gc-subtitle {
  margin: 0 0 18px 0;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.35;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.gc-points {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.35;
}

.gc-point {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: start;
}

.gc-k {
  opacity: 0.95;
  font-weight: 700;
  white-space: nowrap;
}

.gc-v {
  opacity: 0.94;
}

.gc-v em {
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Right CTA card */
.gc-hero-card {
  justify-self: end;
  width: min(560px, 100%);
  border-radius: var(--gc-radius);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}

.gc-hero-card-top {
  padding: 18px 18px 14px 18px;
  background: var(--gc-green);
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.gc-hero-card-top .gc-card-title {
  margin: 0;
  font-size: 30px;
  font-weight: 1000;
}

.gc-hero-card-mid {
  padding: 16px 18px 18px 18px;
  background: var(--gc-green);
  color: #fff;
  text-align: center;
}

.gc-hero-card-mid p {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.gc-hero-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: rgba(0,0,0,0.28);
}

.gc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.08s ease, filter 0.08s ease;
  user-select: none;
  color: #fff;
}

.gc-btn:hover { filter: brightness(1.03); }
.gc-btn:active { transform: translateY(1px); }
.gc-btn-primary { background: rgba(67,160,71,0.95); }
.gc-btn-secondary { background: rgba(255,255,255,0.10); }

/* Footer */
.gc-footer {
  background: #d7e8dc;
  padding: 14px 0 18px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.gc-footer-inner {
  width: min(1200px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
  color: rgba(0,0,0,0.72);
  font-size: 14px;
}

.gc-footer-left p,
.gc-footer-right p { margin: 4px 0; }

.gc-footer a {
  color: rgba(0,0,0,0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gc-footer .gc-mini-title {
  font-weight: 800;
  color: rgba(0,0,0,0.78);
  letter-spacing: 0.02em;
}

.gc-footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.gc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.10);
  font-weight: 700;
  font-size: 12.5px;
  color: rgba(0,0,0,0.70);
  text-decoration: none;
}

/* Additional responsive for home page */
@media (max-width: 980px) {
  .gc-hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .gc-hero-card { justify-self: start; }
  .gc-point { grid-template-columns: 78px 1fr; }
}

@media (max-width: 720px) {
  .gc-nav { display: none; }
  .gc-footer-inner { grid-template-columns: 1fr; }
}

/* GIS Professional Data Display Utilities */
.gis-coordinates {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: var(--gc-accent-subtle);
  padding: 8px 12px;
  border-left: 4px solid var(--gc-accent);
  border-radius: 6px;
  color: var(--gc-green-dark);
  font-weight: 500;
}

.gis-precision {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--gc-text-secondary);
  letter-spacing: 0.1em;
}

.gis-layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gc-green-light);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.gis-data-point {
  padding: 12px;
  background: #fafbfa;
  border: 1px solid #e0e5e0;
  border-left: 3px solid var(--gc-green-solid);
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}
}