/* ============================================================
   LIGHTMGROUP — GitHub-Style Supplemental CSS
   github_style.css · loaded after styles.css in base.html
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --gh-white:       #ffffff;
  --gh-canvas-default: #f6f8fa;
  --gh-canvas-subtle: #f0f2f5;
  --gh-border:      #d0d7de;
  --gh-border-muted: #e8eaed;
  --gh-fg-default:  #1f2328;
  --gh-fg-muted:    #57606a;
  --gh-fg-subtle:   #6e7781;
  --gh-accent-bg:   #dbeafe;
  --gh-accent-fg:   #1d4ed8;
  --gh-accent-emphasis: #1d4ed8;
  --gh-success-fg:  #1a7f37;
  --gh-success-bg:  #d1fadf;
  --gh-danger-fg:   #b91c1c;
  --gh-amber-fg:    #92400e;
  --gh-amber-bg:    #fef3c7;
  --gh-header-bg:   #ffffff;
  --gh-header-border: #d0d7de;
  --gh-radius:      6px;
  --gh-radius-lg:   12px;
  --gh-shadow-sm:   0 1px 3px rgba(31,35,40,0.12), 0 1px 2px rgba(31,35,40,0.06);
  --gh-shadow-md:   0 4px 16px rgba(31,35,40,0.12), 0 2px 6px rgba(31,35,40,0.06);
  --gh-shadow-lg:   0 8px 32px rgba(31,35,40,0.14), 0 4px 12px rgba(31,35,40,0.08);

  /* Brand overrides */
  --brand-primary:  29 78 216;
  --brand-accent:   245 158 11;
}

/* ────────────────────────────────────────────────────────────
   SCROLL PROGRESS BAR
   ──────────────────────────────────────────────────────────── */
#gh-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9, #7c3aed);
  z-index: 9999;
  transition: width 80ms linear;
}

/* ────────────────────────────────────────────────────────────
   ANNOUNCEMENT BAR — GitHub banner style
   ──────────────────────────────────────────────────────────── */
.gh-announcement-bar {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 0.4rem 0;
}

.announcement-band {
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 100%);
  border-bottom: 1px solid #bfdbfe !important;
}

/* ────────────────────────────────────────────────────────────
   HEADER / NAVBAR — flat GitHub header style
   ──────────────────────────────────────────────────────────── */
.glass-premium,
header.glass-premium {
  background: var(--gh-header-bg) !important;
  border-bottom: 1px solid var(--gh-header-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Nav links — underline style */
.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gh-fg-default);
  padding: 0.3rem 0.1rem;
  letter-spacing: 0;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gh-accent-emphasis);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--gh-accent-emphasis);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown toggle clean style */
.nav-dropdown-toggle {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gh-fg-default);
  padding: 0.3rem 0.1rem;
  gap: 0.25rem;
  transition: color 0.15s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--gh-accent-emphasis);
}

/* Dropdown menu — flat card */
.nav-dropdown-menu {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-border);
  box-shadow: var(--gh-shadow-md);
  background: var(--gh-white);
  padding: 0.4rem;
}

.nav-dropdown-item {
  border-radius: var(--gh-radius);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gh-fg-default);
  padding: 0.45rem 0.7rem;
}

.nav-dropdown-item:hover {
  background: var(--gh-canvas-default);
  color: var(--gh-accent-emphasis);
}

/* GitHub-style primary CTA button in nav */
.cloud-login-open-btn,
.cloud-login-mobile-trigger {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0;
  border-radius: var(--gh-radius);
  padding: 0.38rem 0.85rem;
  background: var(--gh-accent-emphasis);
  border: 1px solid rgba(31,35,40,0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.cloud-login-open-btn:hover,
.cloud-login-mobile-trigger:hover {
  background: #1a42c2;
  transform: none;
  filter: none;
  box-shadow: var(--gh-shadow-sm);
}

/* Mobile menu clean border */
#mobile-menu {
  border-top: 1px solid var(--gh-border);
  background: var(--gh-white);
}

/* ────────────────────────────────────────────────────────────
   BUTTONS — GitHub btn style
   ──────────────────────────────────────────────────────────── */
.lightm-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--gh-radius);
  background: var(--gh-accent-emphasis);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(31,35,40,0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.lightm-primary-btn:hover {
  background: #1a42c2;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 3px 6px rgba(31,35,40,0.16);
  transform: translateY(-1px);
}

.lightm-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--gh-radius);
  background: var(--gh-white);
  color: var(--gh-fg-default) !important;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--gh-border);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(31,35,40,0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.lightm-secondary-btn:hover {
  background: var(--gh-canvas-default);
  border-color: #b0b7c0;
  transform: translateY(-1px);
}

.lightm-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--gh-radius);
  background: var(--gh-accent-emphasis);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(31,35,40,0.15);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.lightm-portal-btn:hover {
  background: #1a42c2;
  transform: translateY(-1px);
}

.lightm-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--gh-radius);
  background: var(--gh-white);
  color: var(--gh-fg-default) !important;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gh-border);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.lightm-portal-link:hover {
  background: var(--gh-canvas-default);
}

/* ────────────────────────────────────────────────────────────
   HERO SECTION — clean GitHub.com-inspired
   ──────────────────────────────────────────────────────────── */
.lightm-hero-section {
  background: linear-gradient(160deg, #0d1b3e 0%, #1a3471 40%, #0d2a5e 80%, #0c1f47 100%);
  position: relative;
  overflow: hidden;
}

.lightm-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(59,130,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(124,58,237,0.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Kicker badge */
.lightm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.lightm-hero-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(203,213,225,0.9);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem 0.35rem 0.45rem;
  margin-bottom: 1.25rem;
}

.lightm-hero-announcement-label {
  background: rgba(29,78,216,0.8);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
}

/* Hero pills */
.lightm-hero-inline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lightm-hero-inline-pills span {
  border-radius: 9999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(203,213,225,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.28rem 0.7rem;
  letter-spacing: 0.01em;
}

/* Hero accent text */
.lightm-hero-accent {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero panel */
.lightm-hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lightm-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  background: rgba(100,116,139,0.2);
  border: 1px solid rgba(100,116,139,0.25);
  color: #94a3b8;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  align-self: flex-start;
}

.lightm-panel-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

/* Hero visual card */
.lightm-hero-visual {
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5);
  position: relative;
  margin: 0;
}

.lightm-hero-visual-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.lightm-hero-visual-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  border-radius: var(--gh-radius);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
}

.lightm-hero-visual-caption {
  background: linear-gradient(0deg, rgba(13,27,62,0.96), rgba(13,27,62,0.75) 80%, transparent);
  padding: 1.5rem 1.25rem 1.25rem;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.lightm-hero-visual-chip {
  display: inline-block;
  border-radius: 9999px;
  background: rgba(29,78,216,0.6);
  border: 1px solid rgba(99,179,237,0.3);
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
}

.lightm-hero-visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lightm-hero-visual-tags span {
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  font-size: 0.71rem;
  padding: 0.2rem 0.6rem;
  font-weight: 500;
}

/* Hero summary card */
.lightm-hero-summary {
  border-radius: var(--gh-radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem;
}

.lightm-signal-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
}

.lightm-signal-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lightm-signal-feature-list span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.lightm-signal-feature-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   SECTION PATTERNS
   ──────────────────────────────────────────────────────────── */
.lightm-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gh-accent-emphasis);
}

.lightm-section-kicker::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--gh-accent-emphasis);
  border-radius: 2px;
  display: inline-block;
}

.lightm-card-topline {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gh-accent-emphasis);
}

.lightm-mini-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-fg-subtle);
}

/* ────────────────────────────────────────────────────────────
   OVERVIEW GRID — GitHub feature-grid style
   ──────────────────────────────────────────────────────────── */
.lightm-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--gh-border);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .lightm-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lightm-overview-card {
  background: var(--gh-white);
  padding: 1.5rem;
  transition: background 0.15s ease;
}

.lightm-overview-card:hover {
  background: var(--gh-canvas-default);
}

.lightm-overview-card-feature {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--gh-border);
}

@media (min-width: 768px) {
  .lightm-overview-card-feature {
    grid-column: span 2;
    border-bottom: none;
    border-right: 1px solid var(--gh-border);
  }
}

/* ────────────────────────────────────────────────────────────
   DOMAIN CARD
   ──────────────────────────────────────────────────────────── */
.lightm-cloud-strip {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-white);
  padding: 2rem;
  box-shadow: var(--gh-shadow-sm);
}

.lightm-domain-card {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-canvas-default);
  padding: 1.5rem;
}

.lightm-ops-card {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-white);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightm-ops-visual {
  margin: 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--gh-border);
  max-height: 180px;
  overflow: hidden;
}

.lightm-ops-visual-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.lightm-ops-card > *:not(figure) {
  padding: 1.25rem 1.5rem;
}

.lightm-ops-card > .lightm-card-topline,
.lightm-ops-card > h3 {
  padding-bottom: 0;
}

.lightm-domain-form-row {
  display: flex;
  gap: 0.5rem;
}

.lightm-domain-input {
  flex: 1;
  height: 2.5rem;
  border-radius: var(--gh-radius);
  border: 1px solid var(--gh-border);
  background: var(--gh-white);
  padding: 0 0.75rem;
  font-size: 0.9rem;
  color: var(--gh-fg-default);
  font-family: "Inter", sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.lightm-domain-input:focus {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9,105,218,0.3);
}

.lightm-domain-button {
  height: 2.5rem;
  border-radius: var(--gh-radius);
  background: var(--gh-accent-emphasis);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0 1rem;
  border: 1px solid rgba(31,35,40,0.15);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.lightm-domain-button:hover {
  background: #1a42c2;
}

.lightm-domain-output {
  margin-top: 1rem;
  border-radius: var(--gh-radius);
  background: var(--gh-canvas-default);
  border: 1px solid var(--gh-border);
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: var(--gh-fg-muted);
  min-height: 3rem;
  display: flex;
  align-items: center;
}

.lightm-domain-output.is-success {
  background: var(--gh-success-bg);
  border-color: #86efac;
  color: var(--gh-success-fg);
}

.lightm-domain-output.is-error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: var(--gh-danger-fg);
}

.lightm-inline-link {
  color: var(--gh-accent-emphasis);
  text-decoration: underline;
  font-weight: 600;
}

.lightm-mini-panel {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  background: var(--gh-canvas-default);
  padding: 0.85rem 1rem;
}

/* ────────────────────────────────────────────────────────────
   ABOUT SECTION
   ──────────────────────────────────────────────────────────── */
.lightm-about-visual {
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gh-border);
  box-shadow: var(--gh-shadow-md);
  margin: 0;
}

.lightm-about-visual-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.lightm-about-caption {
  background: var(--gh-canvas-default);
  border-top: 1px solid var(--gh-border);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--gh-fg-muted);
}

.lightm-content-card {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-white);
  padding: 2rem;
  box-shadow: var(--gh-shadow-sm);
}

.lightm-capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lightm-capability-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--gh-accent-bg);
  color: var(--gh-accent-emphasis);
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
}

.lightm-mini-stat {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  background: var(--gh-canvas-default);
  padding: 0.85rem 1rem;
}

/* ────────────────────────────────────────────────────────────
   SURFACE SECTION (light gray bg, like GitHub's "Features")
   ──────────────────────────────────────────────────────────── */
.lightm-surface-section {
  background: var(--gh-canvas-default);
  border-top: 1px solid var(--gh-border);
  border-bottom: 1px solid var(--gh-border);
}

/* ────────────────────────────────────────────────────────────
   ECOSYSTEM CARDS — GitHub topic/package card style
   ──────────────────────────────────────────────────────────── */
.lightm-ecosystem-card {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-white);
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.lightm-ecosystem-card:hover {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9,105,218,0.1), var(--gh-shadow-md);
  transform: translateY(-2px);
}

.lightm-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightm-card-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--gh-radius);
  background: var(--gh-accent-bg);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.lightm-card-icon img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

/* ────────────────────────────────────────────────────────────
   SERVICE CARDS
   ──────────────────────────────────────────────────────────── */
.lightm-service-card {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-white);
  padding: 1.75rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.lightm-service-card:hover {
  border-color: #0969da;
  box-shadow: var(--gh-shadow-md);
  transform: translateY(-2px);
}

.lightm-service-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.lightm-service-card ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gh-accent-emphasis);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* Gallery cards */
.lightm-section-gallery {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .lightm-section-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lightm-gallery-card {
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  position: relative;
  margin: 0;
  aspect-ratio: 4/3;
  background: #0d1b3e;
}

.lightm-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}

.lightm-gallery-card:hover .lightm-gallery-image {
  opacity: 0.5;
  transform: scale(1.04);
}

.lightm-gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(0deg, rgba(13,27,62,0.9) 0%, transparent 60%);
}

.lightm-gallery-tag {
  display: inline-block;
  border-radius: 9999px;
  background: rgba(29,78,216,0.7);
  border: 1px solid rgba(99,179,237,0.3);
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* ────────────────────────────────────────────────────────────
   DARK SECTION — industries & tech stack
   ──────────────────────────────────────────────────────────── */
.lightm-dark-section {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lightm-dark-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--gh-radius-lg);
  background: rgba(255,255,255,0.03);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.lightm-dark-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
}

.lightm-industry-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  transition: background 0.15s, border-color 0.15s;
}

.lightm-industry-pill:hover {
  background: rgba(29,78,216,0.2);
  border-color: rgba(99,179,237,0.3);
  color: #93c5fd;
}

/* ────────────────────────────────────────────────────────────
   PROJECT CARDS — GitHub repository card style
   ──────────────────────────────────────────────────────────── */
.lightm-project-card {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-white);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.lightm-project-card:hover {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9,105,218,0.1), var(--gh-shadow-md);
  transform: translateY(-2px);
}

.lightm-project-frame {
  border-radius: var(--gh-radius);
  padding: 0.85rem 1rem;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.lightm-project-frame::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lightm-project-frame-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.lightm-project-frame-blue::before {
  background: #3b82f6;
}

.lightm-project-frame-gold {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.lightm-project-frame-gold::before {
  background: #f59e0b;
}

.lightm-project-frame-slate {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.lightm-project-frame-slate::before {
  background: #64748b;
}

.lightm-project-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-fg-subtle);
}

.lightm-project-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.lightm-project-card ul li::before {
  content: "·";
  color: var(--gh-fg-subtle);
  font-size: 1rem;
  line-height: 1.5;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   PROCESS TIMELINE — GitHub PR timeline style
   ──────────────────────────────────────────────────────────── */
.lightm-process-card {
  position: relative;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-white);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lightm-process-card:hover {
  border-color: #0969da;
  box-shadow: var(--gh-shadow-md);
}

.lightm-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gh-accent-emphasis);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.02em;
  border: 2px solid var(--gh-white);
  box-shadow: 0 0 0 2px var(--gh-accent-emphasis);
}

/* ────────────────────────────────────────────────────────────
   CTA SECTION
   ──────────────────────────────────────────────────────────── */
.lightm-cta-shell {
  border-radius: var(--gh-radius-lg);
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3471 50%, #0f0c29 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2.5rem;
  display: grid;
  gap: 2rem;
  box-shadow: var(--gh-shadow-lg);
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .lightm-cta-shell {
    grid-template-columns: 1.4fr 0.6fr;
    align-items: start;
    padding: 3.5rem;
  }
}

.lightm-cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(29,78,216,0.15), transparent 65%);
  pointer-events: none;
}

.lightm-contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
}

.lightm-contact-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--gh-radius-lg);
  background: rgba(255,255,255,0.04);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.lightm-contact-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* ────────────────────────────────────────────────────────────
   FOOTER — GitHub-style 4-column
   ──────────────────────────────────────────────────────────── */
footer.gh-footer,
footer[class*="gh-footer"],
footer.border-t {
  background: #0d1117 !important;
  border-top: 1px solid #30363d !important;
  color: #8b949e;
}

.gh-footer-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gh-footer-inner {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.gh-footer-brand p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: #8b949e;
  margin-top: 0.75rem;
}

.gh-footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6edf3;
  margin-bottom: 0.75rem;
  display: block;
}

.gh-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gh-footer-col ul li a {
  font-size: 0.84rem;
  color: #8b949e;
  text-decoration: none;
  transition: color 0.15s;
}

.gh-footer-col ul li a:hover {
  color: #e6edf3;
}

.gh-footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.gh-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--gh-radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid #30363d;
  color: #8b949e;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gh-social-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: #6e7781;
  color: #e6edf3;
}

.gh-social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.gh-footer-bottom {
  border-top: 1px solid #30363d;
  padding: 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #6e7781;
}

.gh-footer-bottom a {
  color: #6e7781;
  text-decoration: none;
  transition: color 0.15s;
}

.gh-footer-bottom a:hover {
  color: #e6edf3;
}

.gh-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

/* ────────────────────────────────────────────────────────────
   ANIMATIONS
   ──────────────────────────────────────────────────────────── */
@keyframes gh-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gh-animate-in {
  animation: gh-fade-up 0.45s ease both;
}

/* Stagger children */
.gh-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.gh-stagger > *:nth-child(2) { animation-delay: 0.12s; }
.gh-stagger > *:nth-child(3) { animation-delay: 0.19s; }
.gh-stagger > *:nth-child(4) { animation-delay: 0.26s; }
.gh-stagger > *:nth-child(5) { animation-delay: 0.33s; }
.gh-stagger > *:nth-child(6) { animation-delay: 0.40s; }

/* ────────────────────────────────────────────────────────────
   UTILITY OVERRIDES
   ──────────────────────────────────────────────────────────── */
/* Ensure headings in light sections use correct color */
.lightm-overview-card h2,
.lightm-content-card h2,
.lightm-service-card h3,
.lightm-project-card h3,
.lightm-process-card h3 {
  color: var(--gh-fg-default);
}

/* Prose text in light sections */
.lightm-overview-card p,
.lightm-content-card p,
.lightm-service-card p,
.lightm-ecosystem-card p {
  color: var(--gh-fg-muted);
}

/* Remove Tailwind backdrop classes that conflict */
.glass-premium {
  --tw-backdrop-blur: none !important;
}

/* Ensure monospace font is available for project frames */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600&display=swap');
