/* ==========================================================================
   Lemma Labs LLC — site styles
   Bold & colorful, static, no build step.
   ========================================================================== */

:root {
  /* Brand palette */
  --violet: #7c3aed;
  --magenta: #db2777;
  --coral: #fb7185;

  --grad: linear-gradient(135deg, #7c3aed 0%, #db2777 55%, #fb7185 100%);
  --grad-soft: linear-gradient(135deg, #f4ecff 0%, #ffeef6 55%, #fff1ee 100%);

  --ink: #14162b;
  --ink-soft: #2a2d44;
  --muted: #5c627a;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --border: rgba(20, 22, 43, 0.10);
  --card-shadow: 0 1px 2px rgba(20, 22, 43, 0.04), 0 12px 30px rgba(20, 22, 43, 0.06);
  --card-shadow-hover: 0 2px 6px rgba(20, 22, 43, 0.08), 0 20px 44px rgba(124, 58, 237, 0.16);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.section-head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(219, 39, 119, 0.36); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

/* Variants for use on the dark/gradient hero */
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { color: var(--violet); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 20px);
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 10px;
}
.site-nav a:hover { color: var(--violet); background: rgba(124, 58, 237, 0.08); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--violet); background: rgba(124, 58, 237, 0.10); }

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
  opacity: 0.55;
}
.hero::before {
  width: 460px; height: 460px;
  top: -160px; right: -120px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.55), transparent 60%);
}
.hero::after {
  width: 520px; height: 520px;
  bottom: -220px; left: -140px;
  background: radial-gradient(circle at center, rgba(255, 209, 102, 0.45), transparent 60%);
}
.hero-inner {
  padding-block: clamp(72px, 12vw, 132px);
  max-width: 760px;
}
.hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----- Card grids ----- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--grad-soft);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ----- "Why lemma" feature band ----- */
.feature-band {
  background: var(--ink);
  color: #fff;
}
.feature-band .eyebrow { color: var(--coral); }
.feature-band h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.feature-band p { color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; }
.feature-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .feature-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}
.feature-figure {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--grad);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.35);
}
.feature-figure span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 7rem);
  color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* ----- CTA band ----- */
.cta-band { text-align: center; }
.cta-card {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px);
  box-shadow: 0 24px 60px rgba(219, 39, 119, 0.28);
}
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.8rem); }
.cta-card p { color: rgba(255, 255, 255, 0.92); max-width: 520px; margin-inline: auto; margin-bottom: 1.8rem; }

/* ----- Generic prose / content pages ----- */
.page-hero {
  background: var(--grad-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { padding-block: clamp(56px, 10vw, 96px); max-width: 720px; }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 0; }

.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose ul { color: var(--ink-soft); padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ----- Contact info cards ----- */
.info-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.info-card .info-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
}
.info-card address { font-style: normal; color: var(--ink-soft); }
.info-card a { font-weight: 600; }

.details-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
}
.details-list dt { color: var(--muted); font-weight: 500; }
.details-list dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
  padding-block: 48px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, 0.8); padding: 6px 10px; border-radius: 8px; }
.footer-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.10); text-decoration: none; }
.footer-legal {
  flex-basis: 100%;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ----- 404 ----- */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--grad-soft);
}
.notfound-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 18vw, 9rem);
  line-height: 1;
  margin-bottom: 0.2em;
}

/* ----- Utilities ----- */
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ----- Motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
