/* GoOrder Lab – shared stylesheet (identical copy in home, api, admin) */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5f6b7a;
  --border: #e3e7ec;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #e8efff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: .1em .4em;
  border-radius: 6px;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 800;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--muted); font-weight: 500;
}
.site-nav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
}
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.2; letter-spacing: -.02em; }
.hero p { margin: 0; max-width: 640px; color: var(--muted); font-size: 1.1rem; }

/* Content */
main { flex: 1; }
.content { padding: 48px 0 64px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px;
}
.card h2 { margin: 0 0 12px; font-size: 1.25rem; letter-spacing: -.01em; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-weight: 500; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.link-list a::after { content: "\2192"; color: var(--accent); }
.link-list a[target="_blank"]::after { content: "\2197"; }
.link-list a:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.note { font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; }
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px;
}
.site-footer p { margin: 0; }
.site-footer nav a { color: var(--muted); margin-left: 16px; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { color: var(--accent-dark); }

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .site-header .container { padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; }
  .site-nav li { flex: 1; }
  .site-nav a { text-align: center; padding: 8px 6px; }
  .hero { padding: 40px 0 36px; }
  .content { padding: 28px 0 40px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 20px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
