/* Luminalytix Inc — Smart Environment & Space Optimization */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #f7f8fa;
  --bg-dark: #0d1117;
  --bg-card: #ffffff;
  --text: #0d1117;
  --text-muted: #57606a;
  --text-light: #8b949e;
  --accent: #3fb950;
  --accent-dark: #2ea043;
  --accent-soft: #dafbe1;
  --gold: #d4a853;
  --gold-soft: #fff8e6;
  --border: #d0d7de;
  --border-light: #eaeef2;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13, 17, 23, 0.06);
  --shadow-lg: 0 24px 64px rgba(13, 17, 23, 0.12);
  --header-h: 72px;
  --max: 1200px;
  --wide: 1320px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.lx-container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lx-container-wide { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* Header */
.lx-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.lx-header-inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.lx-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lx-logo img { height: 36px; }
.lx-logo-text strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.lx-logo-text small { display: block; font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.lx-nav { display: flex; gap: 4px; align-items: center; }
.lx-nav-item { position: relative; }
.lx-nav-item > span, .lx-nav-item > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text);
  border-radius: 8px; cursor: pointer; transition: background 0.2s;
}
.lx-nav-item > a:hover, .lx-nav-item > span:hover { background: var(--border-light); }
.lx-nav-item > a.active { color: var(--accent-dark); }

.lx-dropdown, .lx-mega {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: 0.2s ease;
}
.lx-mega { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; min-width: 420px; padding: 20px; }
.lx-mega h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 8px; grid-column: span 1; }
.lx-nav-item:hover .lx-dropdown, .lx-nav-item:hover .lx-mega { opacity: 1; visibility: visible; transform: translateY(4px); }
.lx-dropdown a, .lx-mega a {
  display: block; padding: 8px 12px; font-size: 14px; border-radius: 6px; color: var(--text);
}
.lx-dropdown a:hover, .lx-mega a:hover { background: var(--accent-soft); color: var(--accent-dark); }

.lx-header-right { display: flex; align-items: center; gap: 12px; }
.lx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 999px;
  border: none; cursor: pointer; transition: 0.25s ease;
}
.lx-btn-primary { background: var(--bg-dark); color: #fff; }
.lx-btn-primary:hover { background: #21262d; transform: translateY(-1px); }
.lx-btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.lx-btn-outline:hover { border-color: var(--text); }
.lx-menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px; }

.lx-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.lx-drawer.open { pointer-events: auto; }
.lx-drawer-bg { position: absolute; inset: 0; background: rgba(13,17,23,0.5); opacity: 0; transition: 0.3s; }
.lx-drawer.open .lx-drawer-bg { opacity: 1; }
.lx-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(320px, 90vw); height: 100%;
  background: #fff; padding: 24px; transform: translateX(100%); transition: 0.3s;
  overflow-y: auto;
}
.lx-drawer.open .lx-drawer-panel { transform: translateX(0); }
.lx-drawer-close { background: none; border: none; font-size: 28px; cursor: pointer; margin-bottom: 16px; }
.lx-drawer-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-weight: 500; }

/* Hero */
.lx-hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: var(--bg-dark); color: #fff; overflow: hidden;
}
.lx-hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  opacity: 0.45;
}
.lx-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,17,23,0.92) 0%, rgba(13,17,23,0.55) 55%, rgba(13,17,23,0.35) 100%);
}
.lx-hero-inner { position: relative; z-index: 1; max-width: var(--wide); margin: 0 auto; padding: 120px 24px 80px; width: 100%; }
.lx-hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.lx-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.08; max-width: 720px; margin-bottom: 24px;
}
.lx-hero h1 em { font-style: italic; color: #7ee787; }
.lx-hero-lead { font-size: 18px; color: rgba(255,255,255,0.78); max-width: 540px; margin-bottom: 36px; }
.lx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.lx-hero-actions .lx-btn-primary { background: var(--accent); color: var(--bg-dark); }
.lx-hero-actions .lx-btn-primary:hover { background: #7ee787; }
.lx-hero-actions .lx-btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.lx-hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.lx-hero-stat strong { display: block; font-size: 28px; font-weight: 700; color: #fff; }
.lx-hero-stat span { font-size: 13px; color: rgba(255,255,255,0.55); }

/* Sections */
.lx-section { padding: 96px 0; }
.lx-section-alt { background: #fff; }
.lx-section-dark { background: var(--bg-dark); color: #fff; }
.lx-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 12px;
}
.lx-section-dark .lx-kicker { color: var(--accent); }
.lx-h2 {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400; line-height: 1.2; margin-bottom: 16px;
}
.lx-lead { font-size: 18px; color: var(--text-muted); max-width: 640px; margin-bottom: 40px; }
.lx-section-dark .lx-lead { color: rgba(255,255,255,0.65); }

/* Split blocks */
.lx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lx-split.reverse { direction: rtl; }
.lx-split.reverse > * { direction: ltr; }
.lx-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.lx-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Cards */
.lx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lx-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; transition: 0.3s ease;
}
.lx-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.lx-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.lx-card-body { padding: 24px; }
.lx-card-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.lx-card-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.lx-link { font-size: 14px; font-weight: 600; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 6px; }
.lx-link:hover { gap: 10px; }
.lx-link::after { content: '→'; }

.lx-pillar {
  padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff 0%, var(--bg) 100%);
  border: 1px solid var(--border-light);
}
.lx-pillar-num { font-size: 12px; font-weight: 700; color: var(--accent-dark); margin-bottom: 12px; }
.lx-pillar h3 { font-size: 20px; margin-bottom: 10px; }
.lx-pillar p { font-size: 14px; color: var(--text-muted); }

/* Stats band */
.lx-stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 48px; background: var(--accent-soft); border-radius: var(--radius-lg);
}
.lx-stats-band strong { display: block; font-size: 32px; font-weight: 700; color: var(--bg-dark); }
.lx-stats-band span { font-size: 13px; color: var(--text-muted); }

/* CTA */
.lx-cta {
  text-align: center; padding: 80px 24px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #161b22 100%);
  color: #fff; border-radius: var(--radius-lg);
}
.lx-cta h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; }
.lx-cta p { color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Page hero */
.lx-page-hero {
  padding: 100px 0 48px; background: var(--bg-dark); color: #fff;
}
.lx-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.lx-breadcrumb a { color: rgba(255,255,255,0.7); }
.lx-breadcrumb a:hover { color: #fff; }
.lx-page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; margin-bottom: 12px; }
.lx-page-hero p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 640px; }

/* Content pages */
.lx-content { padding: 64px 0 96px; }
.lx-content .hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 32px; }
.lx-intro { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 720px; }
.lx-h2-content { font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
.lx-list { margin: 0 0 24px 1.2em; }
.lx-list li { margin-bottom: 8px; color: var(--text-muted); list-style: disc; }
.lx-sidebar { margin-top: 32px; padding: 24px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border-light); }
.lx-sidebar h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.lx-article-grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; }
.lx-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.lx-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 32px 0; }
.lx-process-step { padding: 20px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); }
.lx-process-step em { font-size: 11px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; }
.lx-process-step strong { display: block; margin: 8px 0 4px; }
.lx-process-step span { font-size: 13px; color: var(--text-muted); }
.lx-notice { font-size: 13px; color: var(--text-light); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.lx-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lx-form input, .lx-form textarea, .lx-form select {
  width: 100%; padding: 12px 14px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: 8px; font: inherit;
}
.lx-form textarea { min-height: 120px; resize: vertical; }
.lx-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Footer */
.lx-footer { background: var(--bg-dark); color: rgba(255,255,255,0.65); padding: 64px 0 0; }
.lx-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.lx-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.lx-footer p { font-size: 14px; line-height: 1.7; }
.lx-footer a { display: block; font-size: 14px; margin-bottom: 8px; color: rgba(255,255,255,0.55); }
.lx-footer a:hover { color: var(--accent); }
.lx-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.lx-reveal { opacity: 0; transform: translateY(24px); transition: 0.7s ease; }
.lx-reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .lx-nav, .lx-header-right .lx-btn-primary { display: none; }
  .lx-menu-btn { display: block; }
  .lx-split, .lx-article-grid, .lx-contact-grid, .lx-footer-grid { grid-template-columns: 1fr; }
  .lx-grid-3, .lx-stats-band { grid-template-columns: 1fr 1fr; }
  .lx-split.reverse { direction: ltr; }
}
@media (max-width: 600px) {
  .lx-grid-3, .lx-stats-band { grid-template-columns: 1fr; }
  .lx-section { padding: 64px 0; }
}
