/* ============ Domine o Origin — landing ============ */
:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --bg-card: #111111;
  --border: #1f1f1f;
  --border-strong: #2b2b2b;
  --text: #ffffff;
  --text-dim: #a1a1a1;
  --text-muted: #6b6b6b;

  /* multi-neon palette, from the slides */
  --neon-green: #b6ff3c;
  --neon-green-glow: rgba(182, 255, 60, 0.5);
  --neon-blue: #2a86ff;
  --neon-orange: #ff9a3c;
  --neon-red: #ff4d57;
  --neon-yellow: #ffd83c;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { font-size: 16px; line-height: 1.5; }

.display-font {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

/* =========== Scroll behavior =========== */
html { scroll-behavior: smooth; }

/* =========== Layout =========== */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* =========== Top nav =========== */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--neon-green);
  color: #000;
  font-weight: 800;
  border-radius: 6px;
  font-size: 16px;
  box-shadow: 0 0 18px var(--neon-green-glow);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--neon-green);
  color: #000;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.1s;
}
.nav-cta:hover { box-shadow: 0 0 22px var(--neon-green-glow); }
.nav-cta:active { transform: translateY(1px); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* =========== Buttons =========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.1s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 0 1px rgba(182,255,60,0.3), 0 0 24px rgba(182,255,60,0.35);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(182,255,60,0.5), 0 0 40px rgba(182,255,60,0.55); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: #555; }

.btn-xl { padding: 20px 36px; font-size: 18px; }

/* =========== Section base =========== */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-green);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Big section titles */
.section-title {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 20px 0 20px 0;
  text-wrap: balance;
}
.section-sub {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.5;
}

/* =========== Grain overlay =========== */
.grain-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========== Marquee =========== */
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 24px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 32s linear infinite;
  flex-shrink: 0;
  padding-right: 48px;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.marquee-item .star { color: var(--neon-green); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========== Pain cards =========== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pain-card:hover { border-color: var(--neon-red); transform: translateY(-2px); }
.pain-quote {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 16px 0 0 0;
}
.pain-meta {
  display: flex; align-items: center; gap: 8px;
  color: var(--neon-red);
  font-family: monospace; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pain-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  position: absolute; top: 24px; right: 28px;
}

/* =========== Timeline modules =========== */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.timeline-row:last-child { border-bottom: 1px solid var(--border); }
.timeline-row:hover .module-num { color: var(--neon-green); }
.timeline-row:hover .module-title { transform: translateX(4px); }
.module-num {
  font-family: 'Instrument Serif', serif;
  font-size: 120px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text-muted);
  transition: color 0.25s;
}
.module-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px 0;
  transition: transform 0.25s;
}
.module-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-bottom: 12px;
}
.module-desc { color: var(--text-dim); font-size: 15px; max-width: 560px; line-height: 1.5; }
.module-side {
  text-align: right;
  color: var(--text-dim);
  font-family: monospace;
  font-size: 13px;
  padding-top: 12px;
}
.module-side strong { color: #fff; font-weight: 500; font-size: 24px; display: block; font-family: 'Instrument Serif', serif; letter-spacing: -0.02em; }

.module-lessons {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  margin-top: 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease, margin-top 0.3s;
}
.timeline-row.open .module-lessons { max-height: 2000px; margin-top: 28px; }
.module-lesson {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  padding: 6px 0;
}
.module-lesson-idx { color: var(--text-muted); font-family: monospace; font-size: 11px; min-width: 28px; }

@media (max-width: 760px) {
  .timeline-row { grid-template-columns: 80px 1fr; }
  .module-side { display: none; }
  .module-num { font-size: 72px; }
  .module-title { font-size: 26px; }
  .module-lessons { grid-template-columns: 1fr; grid-column: 1 / -1; }
}

/* =========== Bento gallery =========== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 12px;
}
.bento-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: border-color 0.2s, transform 0.25s;
}
.bento-cell:hover { border-color: var(--neon-green); transform: translateY(-3px); }
.bento-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-label {
  position: absolute; bottom: 10px; left: 12px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 4px;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; } }

/* =========== Faq =========== */
.faq-item {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq-plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 18px; color: var(--text-dim);
  transition: transform 0.25s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-plus { transform: rotate(45deg); border-color: var(--neon-green); color: var(--neon-green); }
.faq-a {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s, margin-top 0.3s;
}
.faq-item.open .faq-a { max-height: 400px; margin-top: 16px; }

/* =========== Price card =========== */
.pricebox {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(182,255,60,0.04), transparent);
  border: 1px solid var(--neon-green);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(182,255,60,0.1), inset 0 0 40px rgba(182,255,60,0.04);
}
.pricebox::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0deg, var(--neon-green) 40deg, transparent 80deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  animation: rotate 6s linear infinite;
  pointer-events: none;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.price-tag {
  font-family: 'Instrument Serif', serif;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}
.price-tag .cents { color: var(--text-muted); font-size: 0.5em; }
.price-installments { color: var(--text-dim); font-size: 16px; margin-top: 8px; }
.price-features { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 14px; }
.price-features li { display: flex; align-items: center; gap: 12px; color: #ddd; font-size: 15px; }
.check-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--neon-green);
  color: #000; font-weight: 800; font-size: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}

/* =========== Tweaks panel =========== */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  font-size: 13px;
  display: none;
}
.tweaks-panel.visible { display: block; }
.tweaks-title {
  font-family: monospace; text-transform: uppercase; font-size: 11px;
  letter-spacing: 0.1em; color: var(--neon-green);
  margin-bottom: 14px;
}
.tweak-group { margin-bottom: 16px; }
.tweak-label {
  font-size: 11px; color: var(--text-dim); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-btn {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.tweak-btn.active {
  background: var(--neon-green); color: #000; border-color: var(--neon-green); font-weight: 600;
}
.tweak-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active { border-color: #fff; }

/* =========== Hero-specific shared helpers =========== */
.origin-screen {
  background: #0a0a0a;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: #e0e0e0;
}
.origin-chrome {
  display: flex; align-items: center;
  padding: 10px 14px;
  background: #1c1c1c;
  border-bottom: 1px solid #262626;
  gap: 8px;
  position: relative;
}
.origin-dot { width: 12px; height: 12px; border-radius: 50%; }
.origin-dot.red { background: #ff5f57; }
.origin-dot.yel { background: #febc2e; }
.origin-dot.grn { background: #28c840; }
.origin-title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 12px; color: #a0a0a0;
}
.origin-menubar {
  display: flex; gap: 18px; padding: 8px 14px;
  background: #161616;
  border-bottom: 1px solid #262626;
  font-size: 12px;
  color: #c0c0c0;
}
.origin-menubar .menu-item {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}
.origin-menubar .menu-item.active {
  background: #2a86ff; color: #fff;
}
.origin-menubar .menu-item .caret { font-size: 9px; opacity: 0.7; margin-left: 3px; }

.origin-table {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 1fr 1fr;
  font-size: 11px;
}
.origin-table-header {
  display: contents;
}
.origin-table-header > div {
  padding: 8px 10px;
  background: #141414;
  border-bottom: 1px solid #262626;
  color: #888;
  font-weight: 500;
}
.origin-table-header > div:first-child { background: #2a86ff; color: white; font-weight: 600; }
.origin-table-row { display: contents; }
.origin-table-row > div {
  padding: 7px 10px;
  border-bottom: 1px solid #1c1c1c;
  color: #b5b5b5;
}
.origin-table-row > div:first-child { color: #666; background: #0f0f0f; }

/* =========== Footer =========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* =========== Utility scroll reveals =========== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }

/* Remove focus outline on interactive elements if mouse */
body.using-mouse :focus { outline: none; }

/* =========================================================
   MOBILE RESPONSIVE — all layouts adapt below 900px / 640px
   ========================================================= */

/* Layout wraps: tighter padding on mobile */
@media (max-width: 900px) {
  .wrap, .wrap-wide { padding: 0 20px; }
}
@media (max-width: 480px) {
  .wrap, .wrap-wide { padding: 0 16px; }
}

/* Top nav — compact on mobile */
@media (max-width: 720px) {
  .topnav-inner { height: 56px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 26px; height: 26px; font-size: 14px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* Section padding — less vertical space on phones */
@media (max-width: 760px) {
  .section-pad { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .section-pad { padding-top: 56px; padding-bottom: 56px; }
}

/* Section titles — smaller on phones (in addition to the clamp) */
@media (max-width: 640px) {
  .section-title { font-size: clamp(32px, 9vw, 48px) !important; line-height: 1; }
  .section-sub { font-size: 15px; }
}

/* Two-column hero / zora / instructor grids → stack */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .hero-grid > div[style*="padding: 40px 40px 40px 0"],
  .hero-grid > div { padding: 0 !important; }
}

/* Any inline 2-col grids with gridTemplateColumns:'1fr 1fr' → stack below 900px */
@media (max-width: 900px) {
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="gridTemplateColumns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Eyebrow wraps neatly */
@media (max-width: 480px) {
  .eyebrow { font-size: 10px; letter-spacing: 0.1em; }
}

/* Buttons full-width on phones */
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .btn-row, .btn + .btn { width: 100%; }
}

/* =========== Marquee — smaller text ========== */
@media (max-width: 640px) {
  .marquee { padding: 18px 0; }
  .marquee-item { font-size: 20px !important; padding: 0 18px; }
}

/* =========== Pain cards ========== */
@media (max-width: 640px) {
  .pain-card { padding: 24px 20px; padding-right: 64px; }
  .pain-num { font-size: 12px !important; top: 18px; right: 18px; }
  .pain-quote { font-size: 20px !important; line-height: 1.25; }
}

/* =========== Timeline / modules ========== */
@media (max-width: 480px) {
  .timeline-row { grid-template-columns: 54px 1fr; gap: 14px; padding: 24px 0; }
  .module-num { font-size: 52px !important; }
  .module-title { font-size: 20px !important; }
  .module-desc { font-size: 14px; }
  .module-lesson { font-size: 13px; }
}

/* =========== Bento gallery ========== */
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr) !important; grid-auto-rows: 150px; gap: 10px; }
  .bento-cell { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento-cell:nth-child(5n) { grid-column: span 2 !important; grid-row: span 1 !important; }
  .bento-cell > div { padding: 10px !important; padding-bottom: 26px !important; }
  .bento-cell svg { max-height: 100%; max-width: 100%; }
  .bento-label { font-size: 9px; bottom: 6px; left: 8px; padding: 3px 6px; }
}

/* =========== ZORA chat mockup ========== */
@media (max-width: 640px) {
  #zora [style*="border-radius: 20px"] { border-radius: 14px; }
}

/* =========== Instructor photo card ========== */
@media (max-width: 640px) {
  /* stats strip becomes 2 columns so text doesn't crush */
  #sobre [style*="grid-template-columns: repeat(4, 1fr)"],
  #sobre [style*="gridTemplateColumns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* =========== Pricebox ========== */
@media (max-width: 480px) {
  .pricebox { padding: 28px 22px; border-radius: 20px; }
  .price-tag { font-size: 56px !important; }
  .price-features li { font-size: 14px; }
}

/* =========== FAQ ========== */
@media (max-width: 640px) {
  .faq-q { font-size: 17px; gap: 12px; }
  .faq-plus { width: 28px; height: 28px; flex-shrink: 0; }
  .faq-a { font-size: 14px; }
}

/* =========== Footer ========== */
@media (max-width: 640px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start !important; gap: 24px; }
  .site-footer [style*="gap: 48px"] { gap: 32px !important; flex-wrap: wrap; }
}

/* =========== OriginDemo (hero) — scale down chrome ========== */
@media (max-width: 640px) {
  .origin-screen { font-size: 11px; }
  .origin-chrome { padding: 8px 10px; }
  .origin-title { font-size: 11px; }
  .origin-menubar { gap: 10px; padding: 6px 10px; font-size: 11px; overflow-x: auto; white-space: nowrap; }
  .origin-table { grid-template-columns: 44px 1fr 1fr 1fr 1fr; }
  .origin-table-header > div,
  .origin-table-row > div { padding: 5px 6px; font-size: 10px; }
}
@media (max-width: 420px) {
  /* at very narrow widths, hide 2 table cols to avoid cramping */
  .origin-table { grid-template-columns: 40px 1fr 1fr 1fr; }
  .origin-table-header > div:nth-child(5),
  .origin-table-row > div:nth-child(5) { display: none; }
}

/* =========== Tweaks panel ========== */
@media (max-width: 480px) {
  .tweaks-panel {
    bottom: 16px; right: 16px; left: 16px;
    max-width: none; padding: 16px;
  }
  .tweak-swatch { width: 24px; height: 24px; }
}

/* Prevent horizontal overflow anywhere */
body { overflow-x: hidden; }
img, svg { max-width: 100%; }
