/* luraproject.org — plain CSS, no build step. Edit freely. */

@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url("fonts/source-code-pro-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  /* Lura palette: the logo's two colours on a light canvas */
  --canvas: #f5f7fb;
  --card: #ffffff;
  --line: #d9e0ee;
  --text: #141b46;
  --body: #3d4a6b;
  --muted: #606d8f;
  --blue: #3f67b1;
  --navy: #1f2a5b;
  --grad: linear-gradient(96deg, #3f67b1 0%, #1f2a5b 100%);
  --code-bg: #0f1730;
  --code-fg: #e6ecff;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow: 0 8px 24px rgba(20, 27, 70, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--text); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; margin: 0.35rem 0 1rem; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 68ch; }
code { font-family: var(--mono); font-size: 0.9em; background: #e9eef8; color: var(--navy); padding: 0.1em 0.35em; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { display: block; width: auto; }
.brand .logo img { height: 29px; }
.brand .lf-logo img { height: 24px; }
.brand-sep { width: 1px; height: 26px; background: var(--line); }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.nav a { color: var(--body); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .gh { color: var(--text); font-weight: 600; }

/* Shared pieces */
.eyebrow { font: 600 0.75rem/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.7rem 1.1rem; border-radius: var(--r-sm); font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.12); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--blue); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }

.code { position: relative; background: var(--code-bg); color: var(--code-fg); border-radius: var(--r-md); font: 0.9rem/1.55 var(--mono); }
.code pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; }
.code code { background: none; color: inherit; padding: 0; font-size: inherit; }
.code .copy { position: absolute; top: 8px; right: 8px; font: 600 0.75rem var(--sans); color: var(--code-fg); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; padding: 4px 9px; cursor: pointer; }
.code .copy:hover { background: rgba(255, 255, 255, 0.16); }
.code .copy[hidden] { display: none; }
.code-line { display: flex; align-items: center; }
.code-line pre { flex: 1; min-width: 0; }
.code-line .copy { position: static; flex: none; margin-right: 10px; }

/* Hero */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { margin-top: 0.6rem; }
.hero .lead { font-size: 1.1rem; margin-top: 1.1rem; max-width: 34rem; }
.hero .code-line { margin-top: 1.4rem; max-width: 34rem; }

/* Gateway motif: four calls into one endpoint */
.motif { display: grid; grid-template-columns: auto 64px auto; align-items: center; justify-content: center; }
.chips { display: flex; flex-direction: column; gap: 14px; }
.chip { display: inline-flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-md); padding: 0.5rem 0.85rem; font: 600 0.85rem var(--mono); box-shadow: var(--shadow); white-space: nowrap; }
.chip span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; }
.wires { width: 64px; height: 100%; }
.node { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 26px; background: var(--card); border: 1.5px solid var(--blue); box-shadow: 0 0 0 6px rgba(63, 103, 177, 0.08), var(--shadow); font: 700 0.8rem var(--mono); color: var(--blue); text-align: center; }

/* Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--card); }
.section .intro { font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.section--alt .card { background: var(--canvas); }
.card p { margin: 0.35rem 0 0; font-size: 0.95rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; }
.figure img { display: block; margin: 0 auto; }
.figure--wide { margin: 2rem 0 0; padding: 1.5rem; overflow-x: auto; }
.figure--wide .diagram { min-width: 680px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 1.2rem 0 0; font-weight: 600; }
.list { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.list li { margin: 0.3rem 0; }

/* Why section */
.rules { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 0.4rem 0 0; }
.rules li { font: 600 0.82rem var(--mono); color: var(--navy); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 0.3rem 0.8rem; }
.rules a { color: inherit; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.why-example { margin-top: 3rem; }
.h3-lg { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.8rem; }

/* Components */
.comp-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 1.5rem; }
.comp-group { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.comp-group h3 { margin-bottom: 0.6rem; }
.comp-group ul { list-style: none; margin: 0; padding: 0; }
.comp { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.comp:first-child { border-top: 0; }
.comp a { font: 600 0.88rem var(--mono); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.comp a:hover { color: var(--blue); text-decoration: underline; }
.comp p { margin: 0.1rem 0 0; font-size: 0.88rem; }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; margin-top: 1.5rem; padding: 1.5rem 1.6rem; background: var(--card); border: 1.5px solid var(--blue); border-radius: var(--r-lg); box-shadow: 0 0 0 6px rgba(63, 103, 177, 0.06); }
.cta h3 { font-size: 1.2rem; font-weight: 800; }
.cta p { margin: 0.4rem 0 0; }
.cta .btns { margin-top: 0; }
.readymade { margin-top: 1.5rem; padding: 1.4rem 1.6rem; border-left: 3px solid var(--blue); background: var(--card); border-radius: 0 var(--r-md) var(--r-md) 0; }
.readymade h3 { font-size: 1.1rem; font-weight: 800; }
.readymade p { margin: 0.4rem 0 0; }
.readymade .code-line { margin-top: 0.9rem; max-width: 34rem; }
.small { font-size: 0.9rem; }
.aside { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 3px solid var(--blue); background: var(--canvas); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.aside p { margin: 0; }

/* Footer */
.footer { background: var(--navy); color: #c9d2ee; padding: 36px 0; font-size: 0.88rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer a { color: #fff; }
.footer p { margin: 0; max-width: 60ch; }
.footer .lf { display: block; height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }

/* Gateway diagram (inline SVG) */
.diagram { display: block; width: 100%; height: auto; }
.diagram .dg-box { fill: var(--card); stroke: var(--line); }
.diagram .dg-node { fill: var(--card); stroke: var(--blue); stroke-width: 1.5; }
.diagram .dg-line { stroke: var(--blue); stroke-width: 1.5; }
.diagram .dg-wire { fill: none; stroke: #6b7899; stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.diagram text { font-family: var(--sans); fill: var(--text); }
.diagram .dg-t1 { font-weight: 700; font-size: 15px; }
.diagram .dg-t2 { font-size: 12px; fill: var(--muted); }
.diagram .dg-m { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.diagram .dg-mut { fill: var(--muted); font-weight: 500; }
.diagram .dg-verb { fill: var(--muted); font-size: 11px; }
.diagram .dg-k { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--blue); }

/* Narrow screens */
@media (max-width: 860px) {
  .hero .wrap, .split, .cta { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .section { padding: 52px 0; }
  .nav li:not(.keep) { display: none; }
}
@media (max-width: 720px) {
  /* The diagram needs width; the code block above already lists the four calls. */
  .figure--wide { display: none; }
  .hero .motif { display: none; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .wires { width: 36px; }
  .motif { grid-template-columns: auto 36px auto; }
  .node { width: 84px; height: 84px; border-radius: 20px; font-size: 0.7rem; }
  .chip { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
}
