/* ============================================================
   Lmura Tech LLC — lmuratech.com
   Design system: pure white base, ink text, gold accent,
   navy accent for HeritageArk. Serif display + sans body.
   ============================================================ */

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

:root {
  --white: #ffffff;
  --ink: #171922;
  --ink-2: #454856;
  --mut: #767a86;
  --gold: #b08a3e;
  --gold-deep: #8a6d2f;
  --gold-soft: rgba(176, 138, 62, 0.09);
  --gold-line: rgba(176, 138, 62, 0.32);
  --navy: #101a3a;
  --navy-soft: rgba(16, 26, 58, 0.07);
  --navy-line: rgba(16, 26, 58, 0.22);
  --line: #e9e7e2;
  --shadow: 0 14px 40px rgba(23, 25, 34, 0.08);
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --radius: 18px;
  --maxw: 1120px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-head.is-scrolled { box-shadow: 0 6px 24px rgba(23, 25, 34, 0.06); }

.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 52px; width: auto; max-width: none; flex: none; }
.brand-logo-foot { height: 56px; }
@media (max-width: 520px) { .brand-logo { height: 42px; } }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--gold-soft); color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { background: var(--gold-soft); color: var(--gold-deep); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #c99f4c, var(--gold-deep)); color: #fff; box-shadow: 0 8px 22px rgba(176, 138, 62, 0.30); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(176, 138, 62, 0.40); }
.btn-line { border-color: var(--gold-line); color: var(--ink); background: var(--white); }
.btn-line:hover { background: var(--gold-soft); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(16, 26, 58, 0.25); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin: 0 0 16px;
}
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.08;
  margin: 0 0 20px; letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--gold-deep); }
.lede { font-size: 17.5px; color: var(--ink-2); max-width: 58ch; margin: 0 0 30px; }

.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15;
  margin: 0 0 10px;
}
.section-cap { color: var(--mut); font-size: 16px; margin: 0 0 36px; max-width: 64ch; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 300px; height: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  color: var(--gold-deep); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 600;
}
.chip i { font-style: normal; color: var(--gold); }

.hero-sub { padding: 72px 0 40px; }
.hero-sub .lede { margin-bottom: 0; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }

/* ---------- Product showcase cards ---------- */

.show-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 26px; }

.show-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}

/* CSS-drawn app window mock */
.window { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fdfcfa); padding-bottom: 16px; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.win-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.win-dot.gold { background: var(--gold); }
.win-dot.navy { background: var(--navy); }
.win-tab {
  margin-left: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--gold-deep); border: 1px solid var(--gold-line);
  padding: 3px 10px; border-radius: 999px; background: var(--gold-soft);
}
.win-tab.navy { color: var(--navy); border-color: var(--navy-line); background: var(--navy-soft); }
.win-row { height: 10px; border-radius: 5px; background: var(--gold-soft); margin: 12px 16px 0; }
.win-row.navy { background: var(--navy-soft); }
.win-row.strong { background: var(--gold-line); width: 55%; }
.win-row.strong.navy { background: var(--navy-line); }
.win-row.w70 { width: 70%; }
.win-row.w45 { width: 45%; }

.show-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.show-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.show-name { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.show-tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-deep); border: 1px solid var(--gold-line);
  padding: 4px 11px; border-radius: 999px; background: var(--gold-soft);
}
.show-tag.navy { color: var(--navy); border-color: var(--navy-line); background: var(--navy-soft); }
.show-body p { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }

.feature-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-2); }
.feature-list .star { color: var(--gold); flex: none; margin-top: 1px; }
.show-langs { font-size: 12.5px; color: var(--mut); letter-spacing: 0.04em; margin: 0 0 16px; }
.show-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Tiles ---------- */

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tile {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); padding: 24px;
}
.tile .k { color: var(--gold-deep); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 10px; }
.tile h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.tile.navy .k { color: var(--navy); }

/* ---------- Stats strip ---------- */

.stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
  flex: 1 1 200px; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; background: var(--white);
}
.stat b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--gold-deep); line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--mut); }

/* ---------- CTA band ---------- */

.cta-band {
  border: 1px solid var(--gold-line); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-soft), #ffffff 60%);
  padding: 52px 32px; text-align: center;
}
.cta-band .section-title { margin-bottom: 8px; }
.cta-band p { color: var(--ink-2); margin: 0 0 26px; }

/* ---------- Legal / doc pages ---------- */

.doc { max-width: 780px; margin: 0 auto; padding: 60px 0 80px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; margin: 0 0 8px; }
.doc .meta { color: var(--mut); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 38px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 7px; }
.doc a { font-weight: 500; }
.notice {
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  border-radius: 12px; padding: 16px 20px;
  font-size: 14.5px; color: var(--ink); margin: 0 0 30px;
}
.notice b { color: var(--gold-deep); }

/* ---------- Contact / support cards ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 40px 0; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: var(--white); box-shadow: var(--shadow);
}
.contact-card .k { color: var(--gold-deep); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 10px; }
.contact-card h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 8px; }
.contact-card p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; }
.contact-card a.mail { font-weight: 600; font-size: 15px; }

.faq { max-width: 780px; }
.faq h3 { font-family: var(--serif); font-size: 19px; margin: 30px 0 8px; }
.faq p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 120px 0; }

/* ---------- Footer ---------- */

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 30px; background: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--mut); font-size: 14px; max-width: 34ch; margin: 12px 0 0; }
.foot-col h4 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin: 0 0 14px;
}
.foot-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 4px 0; }
.foot-col a:hover { color: var(--gold-deep); }
.foot-bottom {
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--mut); font-size: 13px;
}
.foot-bottom a { color: var(--mut); }
.foot-legal { display: flex; flex-direction: column; gap: 4px; }
.show-domain { font-size: 14px; color: var(--mut); font-weight: 400; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 200px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px; box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }
}

@media (max-width: 560px) {
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .stats { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ============================================================
   Motion & polish
   Soft palette for the code-symbol background:
   gold #b08a3e · slate #5d6b8f · sage #6f9088 (all kept very faint)
   ============================================================ */

:root { --slate: #5d6b8f; --sage: #6f9088; --ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

::selection { background: var(--gold-line); color: var(--ink); }

body { background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 55%, #ffffff 100%); }

/* Live code-symbol background (drawn by assets/script.js) */
#code-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .site-foot { position: relative; z-index: 1; }
.site-foot { background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--gold), #d9b560, var(--slate));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* ---------- Header & nav ---------- */

.brand-logo { transition: transform 0.35s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.main-nav a { transition: background 0.2s ease, color 0.2s ease; }
.main-nav.is-open { animation: drop-in 0.25s var(--ease); }

/* ---------- Hero ---------- */

.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  width: 620px; height: 620px;
}
.hero::before {
  top: -240px; right: -160px;
  background: radial-gradient(closest-side, rgba(201, 159, 76, 0.17), transparent 72%);
  animation: glow 14s ease-in-out infinite alternate;
}
.hero::after {
  bottom: -320px; left: -200px;
  background: radial-gradient(closest-side, rgba(93, 107, 143, 0.11), transparent 72%);
  animation: glow 18s ease-in-out infinite alternate-reverse;
}

.hero .eyebrow, .hero .display, .hero .lede, .hero .show-actions, .hero .chips {
  animation: rise 0.9s var(--ease) both;
}
.hero .display { animation-delay: 0.08s; }
.hero .lede { animation-delay: 0.18s; }
.hero .show-actions { animation-delay: 0.28s; }
.hero .chips { animation-delay: 0.38s; }
.hero-art { animation: fade-scale 1.1s 0.2s var(--ease) both; }

.display em {
  color: var(--gold-deep);
  background: linear-gradient(100deg, var(--gold-deep) 20%, #d9b560 45%, var(--gold-deep) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}

/* Hero illustration */
.hero-art svg { overflow: visible; animation: floaty 7s ease-in-out infinite; }
.hero-art svg circle[stroke-dasharray] { transform-box: fill-box; transform-origin: center; animation: spin 70s linear infinite; }
.hero-art svg polyline { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 2.4s 0.5s ease forwards; }
.hero-art svg g > circle { transform-box: fill-box; transform-origin: center; animation: pulse 3.4s ease-in-out infinite; }
.hero-art svg g > circle:nth-child(2) { animation-delay: 0.5s; }
.hero-art svg g > circle:nth-child(3) { animation-delay: 1s; }
.hero-art svg g > circle:nth-child(4) { animation-delay: 1.5s; }
.hero-art svg g > path { transform-box: fill-box; transform-origin: center; animation: twinkle 3.8s ease-in-out infinite; }

.chip { transition: transform 0.2s var(--ease), background 0.2s ease; }
.chip:hover { transform: translateY(-2px); background: rgba(176, 138, 62, 0.16); }

/* ---------- Section headings ---------- */

.container > .section-title::after {
  content: ""; display: block; width: 46px; height: 3px; margin-top: 12px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(176, 138, 62, 0));
}

/* ---------- Scroll reveal (classes added by script.js) ---------- */

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */

.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after, .btn-navy::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s ease;
}
.btn-gold:hover::after, .btn-navy:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Cards ---------- */

.show-card { transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease; }
.show-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(23, 25, 34, 0.12); border-color: var(--gold-line); }

.tile, .stat, .contact-card { transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease; }
.tile:hover, .stat:hover, .contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-line); }

.tile { position: relative; overflow: hidden; }
.tile::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(176, 138, 62, 0));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.tile.navy::before { background: linear-gradient(90deg, var(--navy), rgba(16, 26, 58, 0)); }
.tile:hover::before { transform: scaleX(1); }

.feature-list .star { display: inline-block; transition: transform 0.4s var(--ease); }
.feature-list li:hover .star { transform: rotate(90deg) scale(1.25); }

.stat b { font-size: 34px; }

.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; top: -120px; right: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 159, 76, 0.18), transparent 72%);
  animation: glow 12s ease-in-out infinite alternate; pointer-events: none;
}
.cta-band > * { position: relative; }

/* App-window mock: gentle skeleton sheen */
.win-row { position: relative; overflow: hidden; }
.win-row::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: translateX(-100%); animation: sheen 3.4s ease-in-out infinite;
}
.win-row:nth-child(3)::after { animation-delay: 0.3s; }
.win-row:nth-child(4)::after { animation-delay: 0.6s; }

/* ---------- Legal / doc pages: readable panel over the background ---------- */

.doc {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(23, 25, 34, 0.05);
  padding: 52px 44px 68px; margin: 36px auto 56px;
}
@media (max-width: 560px) { .doc { padding: 32px 20px 44px; margin: 20px auto 36px; } }

/* ---------- Keyframes ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-scale { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: 0.55; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.18) rotate(12deg); opacity: 0.82; } }
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-26px, 22px) scale(1.12); } }
@keyframes sheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-art svg polyline { stroke-dashoffset: 0; }
  .display em { background: none; -webkit-text-fill-color: currentColor; }
}
