/* ─────────────────────────────────────────────
   LILIUM LABS — Shared Stylesheet
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

/* ── TOKENS ── */
:root {
  --accent:      #D7F75B;
  --black:       #0A0A0A;
  --white:       #F7F7F3;
  --gray:        #6B6B6B;
  --gray-light:  #E6E6E2;
  --radius:      16px;
  --nav-h:       84px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ────────────────────────────────
   CURSOR
   ──────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(10,10,10,.35);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .35s ease, height .35s ease, border-color .3s;
}
.cursor.hovered { width: 18px; height: 18px; background: var(--accent); }
.cursor-ring.hovered { width: 56px; height: 56px; border-color: var(--accent); }
.cursor.on-dark { background: var(--white); }
.cursor-ring.on-dark { border-color: rgba(247,247,243,.5); }
.cursor.on-dark.hovered { background: var(--accent); }
.cursor-ring.on-dark.hovered { border-color: var(--accent); }

/* ────────────────────────────────
   NAV
   ──────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
nav.scrolled {
  background: rgba(247,247,243,.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--gray-light);
}
.nav-logo img { height: 52px; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--black); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px; background: var(--black);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ── NAV DARK (over dark hero) ── */
/* Only target top-level nav links, NOT dropdown items */
nav.dark-nav .nav-links > a,
nav.dark-nav .nav-links > div > a { color: rgba(255,255,255,.85); }
nav.dark-nav .nav-links > a::after,
nav.dark-nav .nav-links > div > a::after { background: var(--white); }
nav.dark-nav .nav-logo img { filter: brightness(0) invert(1); }
nav.dark-nav .nav-cta {
  background: var(--white); color: var(--black) !important;
  border-color: var(--white);
}
nav.dark-nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); }
nav.dark-nav .nav-burger span { background: var(--white); }
nav.dark-nav .nav-chevron { color: rgba(255,255,255,.7); }
/* Dropdown always light regardless of dark-nav */
nav.dark-nav .nav-dropdown a { color: var(--black); }
nav.dark-nav .nav-dropdown a::after { display: none !important; }

/* ── NAV DROPDOWN ── */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 20px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.10), 0 0 0 1px var(--gray-light);
  padding: 8px; min-width: 260px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--black);
  transition: background .18s;
}
.nav-dropdown a:hover { background: var(--gray-light); color: var(--black); }
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a .dd-arrow { font-size: 11px; color: var(--gray); transition: transform .18s; }
.nav-dropdown a:hover .dd-arrow { transform: translateX(3px); color: var(--black); }
.nav-dropdown-divider { height: 1px; background: var(--gray-light); margin: 6px 8px; }
.nav-dropdown-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray);
  padding: 10px 14px 2px;
}
.nav-chevron { font-size: 10px; margin-left: 4px; transition: transform .22s; display: inline-block; }
.nav-has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: var(--black); color: var(--white) !important;
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  border: 2px solid var(--black);
  transition: background .22s, color .22s, transform .18s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: var(--black) !important; transform: scale(1.04); }
.nav-cta::after { display: none !important; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--black); transition: .3s; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--white);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 36px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.76,0,.24,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: clamp(28px, 6vw, 48px); font-weight: 800;
  letter-spacing: -.04em;
}

/* ────────────────────────────────
   BUTTONS
   ──────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px;
  background: var(--black); color: var(--white);
  border-radius: 100px; font-size: 15px; font-weight: 600;
  border: 2px solid var(--black);
  transition: background .22s, color .22s, transform .18s;
  cursor: none;
}
.btn-primary:hover { background: var(--accent); color: var(--black); transform: scale(1.03); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px;
  background: transparent; color: var(--black);
  border-radius: 100px; font-size: 15px; font-weight: 600;
  border: 2px solid var(--black);
  transition: background .22s, color .22s, transform .18s;
  cursor: none;
}
.btn-ghost:hover { background: var(--black); color: var(--white); transform: scale(1.03); }

.btn-accent {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px;
  background: var(--accent); color: var(--black);
  border-radius: 100px; font-size: 15px; font-weight: 600;
  border: 2px solid var(--accent);
  transition: background .22s, transform .18s;
  cursor: none;
}
.btn-accent:hover { background: #c8ee4a; transform: scale(1.03); }

/* ────────────────────────────────
   SECTION BASE
   ──────────────────────────────── */
.section {
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 72px);
}

.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 20px;
}
.section-label::before {
  content: ''; display: block;
  width: 20px; height: 2px; background: var(--accent);
  border-radius: 2px;
}

h2.section-title {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 800; line-height: .97; letter-spacing: -.04em;
  max-width: 780px;
}
h2.section-title .muted { color: var(--gray); }

/* ────────────────────────────────
   SERVICE CARD (shared)
   ──────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 64px;
  background: var(--gray-light);
  border-radius: var(--radius); overflow: hidden;
}
.service-card {
  background: var(--white); padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: background .25s, color .25s;
  position: relative;
}
.service-card:hover { background: var(--black); color: var(--white); }
.service-card:hover .service-num { color: var(--accent); }
.service-card:hover .service-card-arrow { background: var(--accent); color: var(--black); }
.service-card:hover .service-card-desc { color: rgba(255,255,255,.5); }

.service-num {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 28px; transition: color .25s;
}
.service-card h3 {
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 700;
  letter-spacing: -.025em; margin-bottom: 12px; line-height: 1.2;
}
.service-card-desc {
  font-size: 14px; color: var(--gray);
  line-height: 1.7; flex: 1; transition: color .25s;
}
.service-card-arrow {
  margin-top: 28px; width: 34px; height: 34px;
  background: var(--gray-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; align-self: flex-start;
  transition: background .25s, color .25s;
}

/* ────────────────────────────────
   MARQUEE
   ──────────────────────────────── */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.marquee-track {
  display: flex; align-items: center;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 24px 44px;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap; flex-shrink: 0;
}
.marquee-sep {
  width: 5px; height: 5px;
  background: var(--accent); border-radius: 50; flex-shrink: 0;
  border-radius: 50%;
}

/* ────────────────────────────────
   FOOTER
   ──────────────────────────────── */
footer {
  background: var(--black); color: var(--white);
  padding: 64px clamp(20px, 5vw, 72px) 36px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand img {
  height: 30px;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,.35);
  line-height: 1.75; max-width: 260px;
}
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-bottom: 11px; transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; flex-wrap: wrap; gap: 14px;
}
.footer-bottom p,
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,.2); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,.4);
  transition: background .22s, color .22s, border-color .22s;
}
.footer-social a:hover {
  background: var(--accent); color: var(--black);
  border-color: var(--accent);
}

/* ────────────────────────────────
   REVEAL ANIMATION
   ──────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ────────────────────────────────
   SERVICE PAGE — Hero
   ──────────────────────────────── */
.service-hero {
  min-height: 60vh;
  background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 60px) clamp(20px, 5vw, 72px) 72px;
}
.service-hero-label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
}
.service-hero h1 {
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 800; line-height: .95; letter-spacing: -.05em;
  max-width: 900px;
}
.service-hero p {
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255,255,255,.5); max-width: 540px;
  line-height: 1.65; margin-top: 28px;
}

/* SERVICE PAGE — Feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; margin-top: 64px;
  background: var(--gray-light);
  border-radius: var(--radius); overflow: hidden;
}
.feature-card {
  background: var(--white); padding: 40px 36px;
}
.feature-card .icon {
  font-size: 28px; margin-bottom: 20px;
}
.feature-card h4 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -.025em; margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px; color: var(--gray); line-height: 1.7;
}

/* SERVICE PAGE — Steps inline */
.inline-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 64px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.inline-step {
  background: #111111; color: var(--white);
  padding: 44px 36px;
}
.inline-step .step-n {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 28px;
}
.inline-step h4 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -.03em; margin-bottom: 12px;
}
.inline-step p {
  font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.7;
}

/* ────────────────────────────────
   RESPONSIVE
   ──────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { position: static; transform: none; gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .inline-steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta  { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ────────────────────────────────
   CONTACT MODAL
   ──────────────────────────────── */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.contact-modal-overlay.open {
  display: flex;
}
.contact-modal-box {
  position: relative;
  width: min(680px, 96vw);
  height: auto;
  background: var(--surface, #111);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(.95) translateY(16px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.contact-modal-box iframe {
  width: 100%;
  height: 600px;
  max-height: 90vh;
  border: none;
  display: block;
}
.contact-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background .2s;
}
.contact-modal-close:hover { background: rgba(255,255,255,.2); }
