/* Lugi landing page. Tokens mirror the app's "Glass Cartographer" look (ui/styles.css). */

*, *::before, *::after { box-sizing: border-box; }
:root {
  --accent: #5fe0c8; --accent-ink: #052a23; --violet: #9b8cff;
  --bg: #0b1220; --solid: #111b2c; --surface: rgba(15, 24, 40, .86); --surface2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .11); --line2: rgba(255, 255, 255, .2); --text: #e7eef7; --muted: #94a5ba;
  --good: #57d39a; --warn: #f0b354; --green: #62d26f; --kofi: #ff8fa3;
  --radius: 18px; --rs: 10px;
  --display: "Sora", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --blur: blur(18px) saturate(1.4); --shadow: 0 24px 70px rgba(2, 8, 20, .6);
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
code { font: .9em ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.ic { width: 18px; height: 18px; flex: none; }
.grow { flex: 1; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--rs); font-weight: 600; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line2); background: var(--surface2); color: var(--text); border-radius: 12px; padding: 10px 16px; font-weight: 600; white-space: nowrap; transition: transform .15s, border-color .15s, filter .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 28px rgba(95, 224, 200, .25); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 10px 36px rgba(95, 224, 200, .4); }
.btn.lg { padding: 14px 22px; font-size: 16.5px; border-radius: 14px; }
.btn.sm { padding: 8px 14px; font-size: 14.5px; }
.btn.discord { background: #5865f2; color: #fff; border-color: transparent; }
.btn.discord:hover { filter: brightness(1.1); border-color: transparent; box-shadow: 0 10px 32px rgba(88, 101, 242, .4); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.foot-discord { display: flex; align-items: center; gap: 7px; color: #98a2ff; font-weight: 600; margin-bottom: 10px; }
@media (max-width: 480px) { .nav .brand small { display: none; } }
@media (max-width: 720px) { .nav .discord span { display: none; } .nav .discord { padding: 8px 10px; } }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; font-weight: 600; }
.badge.warn { color: var(--warn); border-color: currentColor; }
.badge.good { color: var(--good); border-color: currentColor; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.nav.stuck { background: rgba(11, 18, 32, .78); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 20px var(--display); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand small { font: 500 13px var(--font); color: var(--muted); letter-spacing: .01em; margin-left: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* hero */
.hero { position: relative; padding: 56px 0 40px; text-align: center; }
.hero-bg { position: absolute; inset: -68px 0 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(900px 520px at 50% 0%, rgba(95, 224, 200, .15), transparent 70%), radial-gradient(700px 500px at 88% 62%, rgba(155, 140, 255, .14), transparent 70%), radial-gradient(600px 420px at 6% 46%, rgba(60, 130, 200, .12), transparent 70%); }
.rings { position: absolute; left: 50%; top: -40px; width: 640px; height: 640px; margin-left: -320px; color: rgba(160, 230, 215, .3); animation: turn 120s linear infinite; }
.wing { position: absolute; top: 150px; width: 420px; color: rgba(190, 235, 255, .2); }
.wing.left { right: 50%; margin-right: 240px; transform-origin: 100% 70%; animation: wing 8s ease-in-out infinite; }
.wing.right { left: 50%; margin-left: 240px; transform: scaleX(-1); animation: wing-r 8s ease-in-out infinite; }
.motes i { position: absolute; bottom: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #bff5ea; box-shadow: 0 0 8px #5fe0c8; opacity: 0; animation: rise var(--t) linear var(--d) infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes wing { 0%, 100% { transform: rotate(0); opacity: .7; } 50% { transform: rotate(-4deg); opacity: 1; } }
@keyframes wing-r { 0%, 100% { transform: scaleX(-1) rotate(0); opacity: .7; } 50% { transform: scaleX(-1) rotate(-3deg); opacity: 1; } }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .8; } 80% { opacity: .4; } 100% { transform: translate(24px, -900px); opacity: 0; } }

.hero-in { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line2); background: var(--surface2); border-radius: 99px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(87, 211, 154, .22); }
.hero h1 { font: 700 clamp(32px, 9vw, 76px)/1.04 var(--display); letter-spacing: -.03em; margin: 22px auto 0; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent) 10%, #a7c8ff 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 660px; margin: 22px auto 0; font-size: clamp(17px, 1.6vw, 19.5px); color: #b9c6d6; text-wrap: pretty; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* hero screenshot */
.shot { margin: 54px auto 0; max-width: 1080px; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; background: var(--solid); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 120px rgba(95, 224, 200, .14); }
.shot img { width: 100%; height: auto; }
.w-btn { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface2); border-radius: 8px; padding: 5px 10px; white-space: nowrap; font-size: 12.5px; }
.w-btn.acc { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.sw { width: 32px; height: 18px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.sw.on { background: var(--accent); border-color: transparent; }
.sw.on::after { transform: translateX(14px); background: var(--accent-ink); }

/* trust strip */
.strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .025); margin-top: 28px; }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; padding: 20px 0; color: #c3cfde; font-size: 15px; }
.strip-in span { display: inline-flex; align-items: center; gap: 8px; }
.strip-in .ic { color: var(--accent); }

/* sections */
.sec { padding: 104px 0; position: relative; }
.sec.alt { background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, 0)); border-top: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; }
h2 { font: 600 clamp(28px, 3.6vw, 42px)/1.14 var(--display); letter-spacing: -.02em; text-wrap: balance; }
h3 { font: 600 20px/1.25 var(--display); letter-spacing: -.01em; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); transition: border-color .2s, transform .2s; overflow: hidden; }
.card:hover { border-color: rgba(95, 224, 200, .45); transform: translateY(-2px); }
.card p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.card p b { color: var(--text); font-weight: 600; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c7 { grid-column: span 7; }
.ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(95, 224, 200, .12); color: var(--accent); border: 1px solid rgba(95, 224, 200, .25); margin-bottom: 18px; }
.ico .ic { width: 21px; height: 21px; }
.feature-lead { background: radial-gradient(520px 260px at 100% 0%, rgba(95, 224, 200, .16), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
.feature-lead h3 { font-size: 24px; }
.ticks { display: grid; gap: 9px; margin-top: 16px; }
.ticks li { position: relative; padding-left: 28px; color: #c3cfde; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 17px; height: 17px; border-radius: 50%; background: rgba(95, 224, 200, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fe0c8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.keys span { display: inline-flex; align-items: center; gap: 5px; }
kbd { font: 600 12px var(--font); color: var(--text); background: var(--surface2); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; }
.keys kbd:last-of-type { margin-right: 4px; }

/* routes spotlight */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text > p:not(.kicker) { color: #b9c6d6; margin-top: 18px; font-size: 17px; }
.split-text .ticks { margin-top: 22px; }
.mini { display: flex; gap: 14px; margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); }
.mini .ic { color: var(--accent); margin-top: 3px; }
.mini p { color: var(--muted); font-size: 15px; }
.mini b { color: var(--text); }
.split-art { position: relative; display: grid; gap: 14px; font-size: 13.5px; line-height: 1.4; }
.split-art::before { content: ""; position: absolute; inset: -40px; background: radial-gradient(closest-side, rgba(95, 224, 200, .16), transparent); pointer-events: none; }
.glass { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px; box-shadow: 0 14px 40px rgba(2, 8, 20, .45); }
.quest { display: grid; gap: 6px; width: 78%; margin-left: auto; border-color: rgba(95, 224, 200, .5); }
.quest small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.quest b { font-size: 15.5px; }
.prog { height: 5px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; margin-top: 4px; }
.prog i { display: block; height: 100%; background: var(--accent); }
.steps-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.steps-h b { font-size: 16px; }
.steps ol { display: grid; gap: 3px; }
.steps li { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 10px; border: 1px solid transparent; }
.steps li > div { flex: 1; display: grid; min-width: 0; }
.steps li small { color: var(--muted); font-size: 12px; }
.num { width: 26px; height: 26px; border-radius: 50%; border: 1.500px solid var(--line2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.num .ic { width: 14px; height: 14px; }
.steps li.done { opacity: .5; } .steps li.done b { text-decoration: line-through; }
.steps li.cur { background: var(--surface2); border-color: var(--accent); }
.steps li.cur .num { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.steps li.green .num { border-color: var(--green); color: var(--green); }

/* how it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.how li { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
.how .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 17px var(--display); margin-bottom: 18px; box-shadow: 0 0 0 6px rgba(95, 224, 200, .14); }
.how p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* coming soon */
.soon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.soon-card { padding: 30px; }
.soon-top { display: flex; align-items: flex-start; justify-content: space-between; }
.soon-card h3 { font-size: 24px; }
.meter, .share { margin-top: 22px; border: 1px dashed var(--line2); border-radius: 14px; padding: 14px; display: grid; gap: 7px; font-size: 13px; background: rgba(11, 18, 32, .5); }
.meter small, .share small { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.bar { position: relative; height: 26px; border-radius: 7px; background: var(--surface2); overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, rgba(95, 224, 200, .75), rgba(95, 224, 200, .35)); border-radius: 7px; transform-origin: left; }
.bar.b2::before { background: linear-gradient(90deg, rgba(155, 140, 255, .7), rgba(155, 140, 255, .3)); }
.bar.b3::before { background: linear-gradient(90deg, rgba(240, 179, 84, .7), rgba(240, 179, 84, .3)); }
.bar.b4::before { background: linear-gradient(90deg, rgba(255, 143, 163, .65), rgba(255, 143, 163, .28)); }
.bar span { position: relative; line-height: 26px; padding-left: 10px; font-weight: 600; }
.reveal.in .bar::before { animation: grow 1.1s cubic-bezier(.2, .7, .2, 1) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.share-row { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 9px; background: var(--surface2); }
.share-row div { flex: 1; display: grid; }
.share-row div span { color: var(--muted); font-size: 12px; }
.rsw { width: 16px; height: 4px; border-radius: 2px; flex: none; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); transition: border-color .2s; }
.faq details[open] { border-color: rgba(95, 224, 200, .4); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font: 600 17px var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--accent); }
.faq details p { color: #b9c6d6; padding: 0 20px 14px; max-width: 70ch; }
.faq details p:last-child { padding-bottom: 20px; }
.faq details p b { color: var(--text); }

/* download */
.dl { position: relative; text-align: center; border: 1px solid rgba(95, 224, 200, .35); border-radius: 28px; padding: 60px 28px; overflow: hidden;
  background: radial-gradient(640px 320px at 50% 0%, rgba(95, 224, 200, .2), transparent 70%), radial-gradient(520px 320px at 90% 100%, rgba(155, 140, 255, .18), transparent 70%), var(--solid); }
.dl img { margin: 0 auto 18px; filter: drop-shadow(0 0 22px rgba(95, 224, 200, .5)); animation: breathe 4.500s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.045); filter: drop-shadow(0 0 32px rgba(95, 224, 200, .7)); } }
.dl h2 { font-size: clamp(32px, 4.4vw, 50px); }
.dl > p { color: #b9c6d6; margin-top: 12px; font-size: 17px; }
.dl-cta { margin-top: 30px; }
.dl-steps { color: #b9c6d6; margin-top: 18px; font-size: 15.5px; }
.dl-steps b { color: var(--text); }
.dl .fine { font-size: 14px; color: var(--muted); margin-top: 22px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: 280px 1fr; gap: 28px 56px; }
.foot-brand .brand { margin-bottom: 14px; }
.kofi { display: inline-flex; align-items: center; gap: 7px; color: var(--kofi); font-weight: 600; }
.made { justify-self: end; align-self: center; font: 600 clamp(22px, 3vw, 30px) var(--display); letter-spacing: -.01em; color: #c3cfde; }
.made b { font-weight: 700; background: linear-gradient(100deg, var(--accent), #a7c8ff, var(--violet), #a7c8ff, var(--accent)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite, glow 2.800s ease-in-out infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(95, 224, 200, .45)); } 50% { filter: drop-shadow(0 0 18px rgba(155, 140, 255, .8)); } }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; }

/* scroll reveal: content is visible without JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .c4, .c5, .c7 { grid-column: span 6; }
  .feature-lead, .bento .card:last-child { grid-column: span 12; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .wing { display: none; }
  .sec { padding: 76px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding-top: 32px; }
  .c4, .c5, .c7 { grid-column: span 12; }
  .how, .soon, .foot-in { grid-template-columns: 1fr; }
  .quest { width: 100%; }
  .made { justify-self: start; }
  .dl { padding: 44px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motes { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
