/* xRESTAURANTx Modules — shared stylesheet
   Matches the flagship landing aesthetic: charcoal + wood + steel + gold + red flame.
   Version 20260721a */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

:root {
  --bg-0: #0A0A0B;
  --bg-1: #0F0F10;
  --bg-2: #16110C;
  --bg-3: #1F1611;
  --steel-1: #D8DBDF;
  --steel-2: #C0C5CB;
  --steel-3: #8A9099;
  --steel-4: #3A3D42;
  --gold-1: #E7C97E;
  --gold-2: #C8973F;
  --gold-3: #8B6B24;
  --wood-1: #8B5A2B;
  --wood-2: #6B3E1C;
  --wood-3: #4A2A11;
  --wood-4: #2A1C13;
  --red-1: #FF3B30;
  --red-2: #E63946;
  --red-3: #B21F2D;
  --red-4: #6B1218;
  --ink-0: #F5F1E8;
  --ink-1: #D8DBDF;
  --ink-2: #A2A6AB;
  --ink-3: #6B7177;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Bebas Neue', 'Impact', sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --max-w: 1200px;
}

body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--gold-1); text-decoration: none; }
a:hover { color: var(--red-2); }

/* ═══ NAV (shared) ═══════════════════════════════════════════════ */
nav.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10,10,11,0.72);
  border-bottom: 1px solid var(--wood-4);
}
nav.top .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
nav.top .brand { display: flex; align-items: center; gap: 12px; color: var(--ink-0); }
nav.top .brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background-image: url('/assets/monogram-circle-256.png');
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 1.5px var(--gold-2), 0 0 18px rgba(230,57,70,0.35), 0 6px 14px rgba(0,0,0,0.5);
}
nav.top .brand-text { font-family: var(--font-serif); font-weight: 800; letter-spacing: 0.04em; font-size: 20px; }
nav.top .brand-text .x { color: var(--red-2); }
nav.top ul { display: flex; gap: 22px; list-style: none; }
nav.top ul a { color: var(--ink-1); font-weight: 500; font-size: 15px; letter-spacing: 0.02em; }
nav.top ul a:hover { color: var(--gold-1); }
nav.top ul a.active { color: var(--gold-1); }
nav.top .cta {
  background: linear-gradient(180deg, var(--red-2) 0%, var(--red-3) 100%);
  color: var(--ink-0); padding: 9px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 0 1px var(--gold-2), 0 6px 14px rgba(230,57,70,0.35);
}
nav.top .cta:hover { color: var(--ink-0); }
@media (max-width: 780px) { nav.top ul { display: none; } }

/* ═══ MODULE HERO ═══════════════════════════════════════════════════ */
header.mod-hero {
  position: relative; overflow: hidden;
  padding: 80px 24px 72px;
  background:
    radial-gradient(1100px 700px at 15% 10%, rgba(107,62,28,0.42) 0%, transparent 60%),
    radial-gradient(900px 600px at 85% 30%, rgba(230,57,70,0.16) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border-bottom: 1px solid var(--wood-4);
}
header.mod-hero .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  header.mod-hero .inner { grid-template-columns: 1fr; gap: 32px; }
}
.mod-hero .breadcrumb {
  font-family: var(--font-accent); font-size: 12px; letter-spacing: 0.28em;
  color: var(--gold-2); margin-bottom: 18px; text-transform: uppercase;
}
.mod-hero .breadcrumb a { color: var(--gold-2); }
.mod-hero .breadcrumb a:hover { color: var(--red-2); }
.mod-hero h1 {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(38px, 4.8vw, 64px); line-height: 1.05;
  background: linear-gradient(180deg, #F5F1E8 0%, #D8DBDF 42%, #8A9099 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mod-hero .lede {
  color: var(--ink-1); margin-top: 20px; font-size: 19px; line-height: 1.65; max-width: 560px;
}
.mod-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; font-weight: 700;
  font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--red-2) 0%, var(--red-3) 100%);
  color: var(--ink-0);
  box-shadow: 0 0 0 1.5px var(--gold-2), 0 10px 24px rgba(230,57,70,0.35);
}
.btn-primary:hover { color: var(--ink-0); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--gold-1);
  border: 1.5px solid var(--gold-3);
}
.btn-ghost:hover { color: var(--ink-0); border-color: var(--gold-1); background: rgba(200,151,63,0.08); }

.mod-hero .visual {
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(200,151,63,0.10) 0%, rgba(230,57,70,0.06) 100%);
  border: 1px solid var(--wood-3);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(200,151,63,0.15), 0 20px 60px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
}
.mod-hero .visual .glyph {
  font-family: var(--font-serif); font-size: 220px; font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, #F5F1E8 0%, #C8973F 55%, #6B3E1C 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(230,57,70,0.35);
}
.mod-hero .visual .wingmark {
  position: absolute; right: 18px; bottom: 18px; width: 56px; height: 56px;
  background: url('/assets/monogram-wingflame.png') center/contain no-repeat;
  opacity: 0.85;
}

/* ═══ SECTIONS ═══════════════════════════════════════════════════ */
section.mod {
  padding: 88px 24px;
  border-bottom: 1px solid var(--wood-4);
}
section.mod.alt { background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%); }
section.mod .inner { max-width: var(--max-w); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-accent); font-size: 13px; letter-spacing: 0.32em;
  color: var(--gold-2); margin-bottom: 14px; text-transform: uppercase;
}
h2.section-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1;
  color: var(--ink-0); margin-bottom: 20px;
}
h2.section-title .accent { color: var(--red-2); }
.section-lede {
  color: var(--ink-2); font-size: 18px; line-height: 1.7; max-width: 780px; margin-bottom: 42px;
}

/* Feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(31,22,17,0.6) 0%, rgba(15,15,16,0.9) 100%);
  border: 1px solid var(--wood-3);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--gold-3); }
.feature-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(180deg, var(--red-2), var(--red-3));
  color: var(--ink-0); font-family: var(--font-accent); font-size: 20px;
  box-shadow: 0 0 0 1.5px var(--gold-2), 0 4px 12px rgba(230,57,70,0.35);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--font-serif); font-weight: 700; font-size: 21px;
  color: var(--ink-0); margin-bottom: 10px;
}
.feature-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }

/* Tutorial: numbered steps */
.tutorial {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  max-width: 900px; margin: 0 auto;
}
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  background: linear-gradient(180deg, rgba(31,22,17,0.5) 0%, rgba(15,15,16,0.85) 100%);
  border: 1px solid var(--wood-3);
  border-left: 3px solid var(--red-2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
@media (max-width: 640px) { .step { grid-template-columns: 60px 1fr; gap: 16px; padding: 18px 20px; } }
.step .n {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(46px, 5.5vw, 62px); line-height: 1;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 {
  font-family: var(--font-serif); font-weight: 700; font-size: 22px;
  color: var(--ink-0); margin-bottom: 8px;
}
.step p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.step .tip {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(200,151,63,0.06);
  border-left: 2px solid var(--gold-2);
  border-radius: var(--radius-sm);
  color: var(--gold-1); font-size: 14.5px; line-height: 1.55;
}
.step .tip strong { color: var(--red-2); font-weight: 700; }

/* Callout stripe */
.stripe {
  background:
    repeating-linear-gradient(90deg, var(--wood-3) 0px, var(--wood-2) 8px, var(--wood-3) 16px, var(--wood-4) 32px, var(--wood-2) 48px);
  border-top: 1px solid var(--gold-3); border-bottom: 3px solid var(--gold-2);
  box-shadow: inset 0 8px 30px rgba(0,0,0,0.4);
  padding: 44px 24px;
}
.stripe .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.stripe h3 {
  font-family: var(--font-serif); font-weight: 700; font-size: 26px; color: var(--ink-0);
}
.stripe p { color: var(--ink-1); font-size: 16px; max-width: 600px; }

/* Use-case rows */
.usecase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px;
}
.usecase.rev { direction: rtl; }
.usecase.rev > * { direction: ltr; }
@media (max-width: 900px) { .usecase, .usecase.rev { grid-template-columns: 1fr; direction: ltr; } }
.usecase h3 {
  font-family: var(--font-serif); font-weight: 700; font-size: 26px;
  color: var(--ink-0); margin-bottom: 12px;
}
.usecase h3 .tag {
  display: inline-block; margin-left: 10px; padding: 3px 10px;
  border: 1px solid var(--gold-3); border-radius: 999px;
  font-family: var(--font-accent); font-size: 11px; letter-spacing: 0.24em;
  color: var(--gold-1); vertical-align: middle;
}
.usecase p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.usecase ul { padding-left: 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.usecase ul li { margin-bottom: 6px; }
.usecase .visual-block {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(107,62,28,0.35) 0%, rgba(15,15,16,0.9) 100%);
  border: 1px solid var(--wood-3);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(200,151,63,0.10), 0 20px 50px rgba(0,0,0,0.45);
}
.usecase .visual-block .glyph {
  font-family: var(--font-accent); font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: 0.16em; color: var(--gold-1); text-align: center;
}

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--wood-3);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-weight: 600; font-size: 18px;
  color: var(--ink-0); position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: -2px;
  font-size: 24px; color: var(--gold-2); font-family: var(--font-sans); font-weight: 400;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }

/* Related modules grid */
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
  max-width: var(--max-w); margin: 0 auto;
}
.related-card {
  background: linear-gradient(180deg, rgba(31,22,17,0.5) 0%, rgba(15,15,16,0.85) 100%);
  border: 1px solid var(--wood-3);
  border-radius: var(--radius-md);
  padding: 22px;
  color: var(--ink-1);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.related-card:hover { border-color: var(--gold-3); transform: translateY(-2px); color: var(--ink-0); }
.related-card .cat {
  font-family: var(--font-accent); font-size: 11px; letter-spacing: 0.24em;
  color: var(--gold-2); text-transform: uppercase; margin-bottom: 8px;
}
.related-card h4 {
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  color: var(--ink-0); margin-bottom: 8px;
}
.related-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* CTA band */
.cta-band {
  padding: 88px 24px;
  background:
    radial-gradient(1000px 500px at 50% 0%, rgba(230,57,70,0.18) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  border-top: 1px solid var(--gold-3); border-bottom: 1px solid var(--gold-3);
  text-align: center;
}
.cta-band .monogram-xl {
  display: inline-block; width: 130px; height: 130px; border-radius: 50%;
  background: url('/assets/monogram-circle-256.png') center/cover no-repeat;
  box-shadow: 0 0 0 2px var(--gold-2), 0 0 40px rgba(230,57,70,0.5), 0 15px 40px rgba(0,0,0,0.55);
  margin-bottom: 22px;
}
.cta-band h2 {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(30px, 4vw, 48px);
  background: linear-gradient(180deg, #F5F1E8 0%, #D8DBDF 40%, #8A9099 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.cta-band p { color: var(--ink-2); font-size: 18px; margin: 0 auto 30px; max-width: 640px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══ FOOTER (shared) ═══════════════════════════════════════════ */
footer {
  padding: 40px 24px 30px; background: var(--bg-0); border-top: 1px solid var(--wood-4);
}
footer .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px;
}
@media (max-width: 780px) { footer .inner { grid-template-columns: 1fr 1fr; } }
footer .col h4 {
  font-family: var(--font-accent); font-size: 13px; letter-spacing: 0.28em; color: var(--gold-2); margin-bottom: 14px;
}
footer .col a, footer .col li { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 8px; }
footer .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
footer .brandline .mark {
  width: 44px; height: 44px; border-radius: 50%;
  background-image: url('/assets/monogram-circle-256.png');
  background-size: cover; background-position: center;
  box-shadow: 0 0 0 1.5px var(--gold-2), 0 0 12px rgba(230,57,70,0.35);
}
footer .brandline .name { font-family: var(--font-serif); font-weight: 800; font-size: 18px; letter-spacing: 0.04em; }
footer .brandline .name .x { color: var(--red-2); }
footer .tag { color: var(--ink-3); font-size: 13px; max-width: 340px; }
footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--wood-4); text-align: center; color: var(--ink-3); font-size: 13px; }
footer .legal .powered { color: var(--gold-1); font-weight: 600; }

:target { scroll-margin-top: 80px; }
