/* ============================================================
   Ryudo — shared styles
   Palette matches the Misfits pitch video: warm near-black,
   rust/terracotta accent, off-white text.
   ============================================================ */

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

:root {
  --bg:         #0E0C0A;
  --bg-2:       #15110D;
  --bg-card:    #1B1611;
  --bg-panel:   #120F0B;
  --border:     #33291F;
  --border-lit: #4A3B2B;
  --rust:       #C0451D;
  --rust-lit:   #D9622F;
  --ember:      #E68A55;
  --text:       #EDE7DE;
  --text-dim:   #C4BAA9;
  --muted:      #8B8173;
  --good:       #6FA76B;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,12,10,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--rust), var(--rust-lit));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; color: #fff;
  box-shadow: 0 0 18px rgba(192,69,29,0.35);
}
.nav-word { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.nav-glyph { color: var(--muted); font-size: 0.9rem; margin-left: 0.15rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--rust); color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 0.5rem 1.1rem; border-radius: 7px; transition: background 0.2s;
}
.nav-cta:hover { background: var(--rust-lit); }
.nav-toggle { display: none; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block; background: var(--rust); color: #fff; font-weight: 600;
  font-size: 0.9rem; padding: 0.8rem 1.7rem; border-radius: 8px;
  box-shadow: 0 0 26px rgba(192,69,29,0.28); transition: all 0.2s;
}
.btn-primary:hover { background: var(--rust-lit); box-shadow: 0 0 38px rgba(192,69,29,0.45); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--border-lit); color: var(--text-dim);
  font-weight: 600; font-size: 0.9rem; padding: 0.8rem 1.7rem; border-radius: 8px; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--rust); color: var(--text); }

/* ---------- HERO ---------- */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 150px 2rem 110px; position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,59,43,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,59,43,0.22) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 100%);
}
.hero-glow {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 380px;
  background: radial-gradient(ellipse, rgba(192,69,29,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border-lit); background: rgba(192,69,29,0.06);
  border-radius: 100px; padding: 0.38rem 1rem; font-size: 0.74rem; font-weight: 600;
  color: var(--text-dim); margin-bottom: 1.8rem;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 1.4rem;
}
.hero h1 .hl { color: var(--ember); }
.hero-sub { font-size: 1.12rem; color: var(--text-dim); max-width: 620px; margin: 0 auto 2.4rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-glyph-note { margin-top: 2.6rem; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }
.hero-glyph-note b { color: var(--text-dim); font-weight: 600; }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 60px 0; }
.label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-lit); }
.section-header { max-width: 680px; margin-bottom: 3rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; margin: 0.7rem 0 1rem; }
.section-header p { color: var(--text-dim); font-size: 1.02rem; line-height: 1.7; }

/* ---------- CARDS GRID ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.7rem; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-lit); }
.card-icon {
  width: 40px; height: 40px; border-radius: 9px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  background: rgba(192,69,29,0.12); color: var(--ember);
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.68; }

/* ---------- QUOTE BREAK ---------- */
.quote-break { text-align: center; padding: 84px 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.quote-break blockquote { font-size: clamp(1.35rem, 3vw, 2.05rem); font-weight: 700; letter-spacing: -0.02em; max-width: 780px; margin: 0 auto; line-height: 1.35; }
.quote-break blockquote span { color: var(--ember); }
.quote-break cite { display: block; margin-top: 1.3rem; font-size: 0.8rem; font-style: normal; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- SURFACES (numbered feature rows) ---------- */
.surface { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3.2rem 0; border-top: 1px solid var(--border); }
.surface:first-of-type { border-top: none; }
.surface-reverse .surface-text { order: 2; }
.surface-index { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust-lit); margin-bottom: 0.7rem; }
.surface-text h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.surface-text p { color: var(--text-dim); font-size: 0.98rem; line-height: 1.72; margin-bottom: 1rem; }
.surface-text ul { list-style: none; }
.surface-text li { font-size: 0.9rem; color: var(--text-dim); padding: 0.28rem 0 0.28rem 1.3rem; position: relative; }
.surface-text li::before { content: '→'; position: absolute; left: 0; color: var(--rust-lit); }

/* mock panel used in place of screenshots (illustrative, honest) */
.mock {
  background: var(--bg-panel); border: 1px solid var(--border-lit); border-radius: 14px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.mock-bar { background: #0C0A08; border-bottom: 1px solid var(--border); padding: 0.6rem 0.9rem; display: flex; align-items: center; gap: 0.7rem; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; }
.d1 { background: #C0451D; } .d2 { background: #C08a1D; } .d3 { background: #6FA76B; }
.mock-tab { font-size: 0.66rem; color: var(--muted); font-family: ui-monospace, monospace; }
.mock img { width: 100%; display: block; }
.mock-body { padding: 1.3rem; }
.mock-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.mock-row:last-child { border-bottom: none; }
.mock-chip { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; }
.chip-rust { background: rgba(192,69,29,0.15); color: var(--ember); border: 1px solid rgba(192,69,29,0.3); }
.chip-good { background: rgba(111,167,107,0.14); color: var(--good); border: 1px solid rgba(111,167,107,0.3); }
.mock-line { flex: 1; height: 9px; border-radius: 5px; background: rgba(196,186,169,0.14); }
.mock-line.short { max-width: 45%; }
.mock-num { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.mock-label { font-size: 0.72rem; color: var(--muted); }
.mock-score { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; }
.mock-score b { font-size: 2.6rem; font-weight: 900; color: var(--ember); line-height: 1; }
.mock-score span { font-size: 0.8rem; color: var(--muted); }
.mock-meter { height: 8px; border-radius: 6px; background: rgba(196,186,169,0.12); overflow: hidden; margin: 0.5rem 0; }
.mock-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--rust), var(--ember)); }

/* ---------- FEATURE LIST (about / how) ---------- */
.stack { display: grid; gap: 1.4rem; }
.stack-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.stack-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: rgba(192,69,29,0.12); color: var(--ember); font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.stack-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.stack-item p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.68; }

/* ---------- PROSE (about) ---------- */
.prose p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.3rem; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 2.4rem 0 1rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 100px 2rem; position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 620px; height: 340px; background: radial-gradient(ellipse, rgba(192,69,29,0.12) 0%, transparent 70%); pointer-events: none; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 1rem; position: relative; }
.cta > p { color: var(--text-dim); font-size: 1.05rem; max-width: 580px; margin: 0 auto 2.4rem; position: relative; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- CONTACT ---------- */
.contact-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2.4rem; }
.contact-field { margin-bottom: 1.2rem; }
.contact-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.contact-field input, .contact-field textarea {
  width: 100%; background: var(--bg-panel); border: 1px solid var(--border-lit); border-radius: 8px;
  padding: 0.7rem 0.9rem; color: var(--text); font-family: inherit; font-size: 0.92rem;
}
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: var(--rust); }
.contact-side { display: grid; gap: 1.3rem; align-content: start; }
.contact-side-item h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rust-lit); margin-bottom: 0.35rem; }
.contact-side-item p, .contact-side-item a { font-size: 0.95rem; color: var(--text-dim); }
.contact-side-item a:hover { color: var(--text); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 2.2rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--muted); }
.footer-logo { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.9rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a:hover { color: var(--text); }
.footer-partner { font-size: 0.78rem; color: var(--muted); }
.footer-partner b { color: var(--text-dim); font-weight: 600; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .surface { grid-template-columns: 1fr; gap: 1.6rem; }
  .surface-reverse .surface-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* ---------- VIDEO MODAL ---------- */
.vid-modal { position: fixed; inset: 0; z-index: 200; background: rgba(8,7,6,0.92); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 2rem; }
.vid-modal.open { display: flex; }
.vid-modal video { width: min(1000px, 92vw); max-height: 86vh; border-radius: 12px; border: 1px solid var(--border-lit); box-shadow: 0 30px 90px rgba(0,0,0,0.7); background: #000; }
.vid-close { position: absolute; top: 1.1rem; right: 1.4rem; color: var(--text-dim); font-size: 1.7rem; line-height: 1; cursor: pointer; background: none; border: none; }
.vid-close:hover { color: var(--text); }
.btn-watch::before { content: '▶'; font-size: 0.72rem; margin-right: 0.45rem; color: var(--ember); }

.btn-primary.btn-watch::before { color: #fff; }
