/* ============================================================
   L&M Computing — Global styles
   ============================================================ */

:root {
  --navy:        #06112A;
  --primary:     #2360B8;
  --interactive: #4080D8;
  --accent:      #5B97E2;
  --light:       #DDEAF8;
  --pale:        #EEF4FD;
  --orange:      #D97748;
  --orange-dark: #C06030;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-700:    #334155;
  --gray-900:    #0F172A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.icon-svg {
  width: 22px; height: 22px; flex-shrink: 0;
  stroke: currentColor;
}
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }

a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; }

/* ── LAYOUT ── */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
.page-section  { padding: 100px 0; }

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2.5px;
  background: linear-gradient(90deg, var(--interactive), var(--accent), var(--orange));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  pointer-events: none;
  width: 100%;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 64px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; line-height: 1;
  text-decoration: none;
}
.nav-logo-lm {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900; font-size: 20px;
  letter-spacing: -0.03em;
  transition: color 0.4s;
}
.nav-logo-divider {
  width: 1px; height: 16px; flex-shrink: 0;
  transition: background 0.4s;
}
.nav-logo-computing {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700; font-size: 8px;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 0.4s;
}
.nav-links { display: flex; gap: 36px; }
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-link-inner { position: relative; display: inline-block; }
.nav-link-inner::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-link-inner:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--interactive); color: #fff;
  padding: 10px 24px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary); transform: scale(1.02); }

/* Nav themes */
.nav-dark  { background: rgba(6, 17, 42, 0.35); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-light { background: rgba(255, 255, 255, 0.65); border-bottom: 1px solid rgba(15,23,42,0.06); }
.nav-dark .nav-logo-lm         { color: #fff; }
.nav-dark .nav-logo-divider    { background: rgba(255,255,255,0.2); }
.nav-dark .nav-logo-computing  { color: rgba(255,255,255,0.4); }
.nav-dark .nav-logo-amp        { color: var(--accent); }
.nav-dark .nav-link            { color: rgba(255,255,255,0.78); }
.nav-dark .nav-link:hover      { color: #fff; }

.nav-light .nav-logo-lm        { color: var(--gray-900); }
.nav-light .nav-logo-divider   { background: rgba(15,23,42,0.15); }
.nav-light .nav-logo-computing { color: var(--gray-500); }
.nav-light .nav-logo-amp       { color: var(--interactive); }
.nav-light .nav-link           { color: var(--gray-700); }
.nav-light .nav-link:hover     { color: var(--interactive); }

/* ── PAGE HERO (shared across pages) ── */
.page-hero {
  min-height: 50vh;
  background: transparent;
  display: flex; align-items: flex-end;
  position: relative; z-index: 1;
  padding-bottom: 80px;
}
main > section:not(.hero):not(.page-hero) {
  position: relative; z-index: 1;
}
.page-hero-shader {
  position: fixed; inset: 0;
  pointer-events: none;
  background: var(--navy);
  z-index: 0;
}
.page-hero-shader canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.page-hero-inner { width: 100%; padding: 160px 64px 0; position: relative; z-index: 1; }
.page-hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: #fff;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.page-hero-label.visible { opacity: 1; transform: none; }
.page-hero-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900; font-size: clamp(44px, 6vw, 80px);
  letter-spacing: -0.03em; color: #fff; line-height: 0.95;
  max-width: 680px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.65s ease 0.2s, transform 0.65s ease 0.2s;
}
.page-hero-title.visible { opacity: 1; transform: none; }
.page-hero-title .accent { color: var(--accent); }
.page-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 400;
  color: #fff; line-height: 1.75;
  max-width: 480px; margin-top: 28px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease 0.3s, transform 0.65s ease 0.3s;
}
.page-hero-sub.visible { opacity: 1; transform: none; }

/* ── SECTION HEADER ── */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px; color: var(--interactive);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700; font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.02em; color: var(--gray-900); line-height: 1.05;
}
.section-header {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.section-header.visible { opacity: 1; transform: none; }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(44px); }
.stagger.visible > *:nth-child(1) { animation: revealUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.05s  forwards; }
.stagger.visible > *:nth-child(2) { animation: revealUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s  forwards; }
.stagger.visible > *:nth-child(3) { animation: revealUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s  forwards; }
.stagger.visible > *:nth-child(4) { animation: revealUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.35s  forwards; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  padding: 100px 0;
  position: relative; overflow: hidden;
}
.cta-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 60px 72px;
  max-width: 660px; width: 100%;
  text-align: center; margin: 0 auto;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.cta-card.visible { opacity: 1; transform: none; }
.cta-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900; font-size: clamp(28px, 4vw, 46px);
  color: #fff; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 16px;
}
.cta-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,0.5); line-height: 1.75;
  margin-bottom: 36px;
}
.cta-note {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em; margin-top: 20px;
}
.cta-circles {
  position: absolute; right: -100px; bottom: -100px; pointer-events: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 500;
  border: none; border-radius: 8px;
  padding: 15px 32px;
  transition: all 0.2s;
}
.btn-blue  { background: var(--interactive); color: #fff; }
.btn-blue:hover  { background: var(--primary); transform: scale(1.03); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: scale(1.03); }
.btn-orange-lg { padding: 16px 44px; font-size: 17px; }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 80px 64px 40px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 64px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo-lm {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900; font-size: 22px;
  letter-spacing: -0.03em; color: #fff;
}
.footer-logo-amp { color: var(--accent); }
.footer-logo-div { width: 1px; height: 18px; background: rgba(255,255,255,0.18); }
.footer-logo-computing {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700; font-size: 8px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.38); line-height: 1.8;
  max-width: 280px; font-style: italic;
}
.footer-meta {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: rgba(255,255,255,0.2);
  letter-spacing: 0.10em; margin-top: 24px; line-height: 1.9;
}
.footer-col-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 10px; color: rgba(255,255,255,0.18);
  letter-spacing: 0.06em;
}
.footer-admin-link {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-admin-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.07);
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  z-index: 9000; width: calc(100% - 48px); max-width: 820px;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  padding: 20px 24px;
  opacity: 0; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
  pointer-events: none;
}
.cookie-banner.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 220px; }
.cookie-banner-title {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 13px; color: #fff; margin-bottom: 6px;
}
.cookie-banner-desc {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: rgba(255,255,255,0.6); line-height: 1.6;
}
.cookie-banner-link { color: var(--accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 8px; border: none; cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn-decline {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
}
.cookie-btn-decline:hover { background: rgba(255,255,255,0.14); color: #fff; }
.cookie-btn-accept { background: var(--interactive); color: #fff; }
.cookie-btn-accept:hover { background: var(--primary); }

/* ── LEGAL PAGES ── */
.legal-section { padding: 80px 0 100px; background: #fff; }
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 20px; color: var(--gray-900);
  margin: 48px 0 16px; padding-top: 48px;
  border-top: 1px solid var(--gray-100);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body p {
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--gray-700); line-height: 1.8; margin-bottom: 14px;
}
.legal-body ul {
  list-style: disc; padding-left: 24px; margin-bottom: 14px;
}
.legal-body ul li {
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--gray-700); line-height: 1.8; margin-bottom: 6px;
}
.legal-body strong { color: var(--gray-900); font-weight: 500; }
.legal-body a { color: var(--interactive); text-decoration: underline; }

/* ── KEYFRAMES ── */
@keyframes introLM {
  from { opacity: 0; transform: scale(0.88) translateY(10px); filter: blur(4px); }
  to   { opacity: 1; transform: scale(1) translateY(0);       filter: blur(0); }
}
@keyframes introDivider {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@keyframes introComputing {
  from { opacity: 0; transform: translateX(16px); filter: blur(3px); }
  to   { opacity: 1; transform: translateX(0);    filter: blur(0); }
}
@keyframes introTagline {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: .35; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}
@keyframes statPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wordReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s, background 0.4s;
}
.nav-dark .nav-hamburger span  { background: rgba(255,255,255,0.85); }
.nav-light .nav-hamburger span { background: var(--gray-900); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
.nav-mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: rgba(6,17,42,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.nav-mobile-overlay.open { opacity: 1; pointer-events: auto; }
.nav-mobile-menu {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--navy);
  padding: 96px 28px 40px;
  transform: translateY(-16px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-overlay.open .nav-mobile-menu { transform: translateY(0); opacity: 1; }
.nav-mobile-menu ul { display: flex; flex-direction: column; margin-bottom: 28px; }
.nav-mobile-menu li a {
  display: block;
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: clamp(26px, 7vw, 34px);
  color: rgba(255,255,255,0.65);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none; letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav-mobile-menu li:first-child a { border-top: 1px solid rgba(255,255,255,0.07); }
.nav-mobile-menu li a:hover { color: #fff; }
.nav-mobile-cta { display: block !important; text-align: center; margin-top: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .section-inner   { padding: 0 40px; }
  .page-hero-inner { padding-left: 40px; padding-right: 40px; }
  .nav             { padding: 0 40px; }
  .footer          { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta      { display: none !important; }
  .nav-hamburger             { display: flex; }
  .nav-mobile-overlay        { display: block; }
  .section-inner             { padding: 0 20px; }
  .page-hero-inner           { padding-left: 20px; padding-right: 20px; padding-top: 100px; }
  .nav                       { padding: 0 20px; }
  .footer                    { padding: 60px 20px 32px; }
  .footer-grid               { grid-template-columns: 1fr !important; }
  .footer-bottom             { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-card                  { padding: 40px 24px; }
  .page-section              { padding: 64px 0; }
  .cookie-banner             { bottom: 16px; width: calc(100% - 32px); padding: 16px; }
  .cookie-banner-actions     { width: 100%; }
  .cookie-btn                { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .section-header, .page-hero-label, .page-hero-title, .page-hero-sub {
    opacity: 1; transform: none; transition: none;
  }
  * { animation: none !important; }
}
