/* ============================================================
   UglyDMARC — marketing + education + product docs
   Aesthetic inherited from Ugly Pumpkins LLC: dark "carved-pumpkin
   glow" — warm near-black, ember-orange light, wart-green accent,
   terminal/IT detailing. Extended with docs + article components.
   ============================================================ */

:root {
  /* surfaces */
  --bg:          #0c0a08;
  --bg-2:        #100c09;
  --surface:     #19130d;
  --surface-2:   #211810;
  --line:        rgba(255, 154, 60, 0.14);
  --line-strong: rgba(255, 154, 60, 0.30);

  /* brand */
  --primary:        #ff7a00;
  --primary-bright: #ff9a3c;
  --ember:          #ffb454;
  --green:          #7bc043;
  --green-bright:   #9be05a;
  --danger:         #ff6b5a;

  /* text */
  --text:  #f6efe6;
  --muted: #b3a392;
  --dim:   #8a7c6c;

  --maxw: 1180px;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#top { position: absolute; top: 0; }
[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(255, 122, 0, 0.22), transparent 60%),
    radial-gradient(45% 40% at 85% 8%, rgba(123, 192, 67, 0.10), transparent 70%),
    radial-gradient(50% 45% at 12% 30%, rgba(255, 122, 0, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
a { color: var(--primary-bright); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-bright);
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--green-bright);
  background: rgba(123, 192, 67, 0.10);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
.hl { color: var(--primary-bright); }
.hl.green { color: var(--green-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; padding: 0.8rem 1.35rem; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary-bright), var(--primary));
  color: #1a0e00;
  box-shadow: 0 10px 30px rgba(255, 122, 0, 0.30), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 122, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost { background: rgba(255, 154, 60, 0.06); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); background: rgba(255, 154, 60, 0.12); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12, 10, 8, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--text);
}
.nav-brand .ugly { color: var(--primary-bright); }
.nav-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); align-self: center; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  color: var(--primary-bright) !important; font-weight: 600 !important;
  padding: 0.45rem 0.95rem; border: 1px solid var(--line-strong); border-radius: 10px;
}
.nav-cta:hover { border-color: var(--primary); background: rgba(255,154,60,0.08); }
/* Hamburger toggle (CSS-only checkbox hack). Hidden on desktop; the mobile
   media query reveals it and turns .nav-links into a dropdown panel. */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; flex: none; }
.nav-burger span { display: block; height: 2px; width: 22px; background: var(--text); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 6.5rem 1.5rem 4.5rem; text-align: center; }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; margin: 1.1rem auto 0; max-width: 18ch; }
.hero .lead { margin: 1.5rem auto 0; font-size: clamp(1.05rem, 2vw, 1.25rem); text-align: center; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: min(900px, 95%); height: 520px; z-index: 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 122, 0, 0.18), transparent 70%);
  filter: blur(20px); animation: pulse 7s ease-in-out infinite; pointer-events: none;
}
@keyframes pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ---------- Section heads ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem; }
.section-head { max-width: var(--maxw); margin: 0 auto 2.8rem; padding: 0 1.5rem; text-align: center; }
.section-head h2, .about h2, .cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 0.6rem; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
/* Grid children must be allowed to shrink below their content's min-content,
   otherwise a wide child (terminal / code block with long lines) forces the
   track wider than the viewport and the whole page scrolls sideways on mobile.
   With min-width:0 the child fits and its own pre scrolls internally instead. */
.grid-2 > *, .grid-3 > *, .price-grid > * { min-width: 0; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 20px; padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 40px rgba(255,122,0,0.10); }
.card h3 { font-size: 1.5rem; margin: 0.5rem 0 0.7rem; color: var(--text); }
.card p { color: var(--muted); margin: 0; }
.card-icon { font-size: 1.6rem; }
.tag-mono { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-bright); }

/* feature/value tiles */
.value { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; }
.value-tag { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.value h4 { font-size: 1.2rem; margin: 0.6rem 0 0.5rem; }
.value p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.feature-list { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: grid; gap: 0.55rem; }
.feature-list li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.97rem; }
.feature-list li::before { content: "▸"; position: absolute; left: 0; color: var(--primary); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.3rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill-live { background: rgba(123,192,67,0.12); color: var(--green-bright); }
.pill-live .dot { background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ---------- Terminal / code mock ---------- */
.terminal { width: 100%; background: #0a0806; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 60px rgba(255,122,0,0.05), 0 20px 40px rgba(0,0,0,0.5); }
.terminal-bar { display: flex; gap: 0.45rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a221a; }
.terminal-bar span:nth-child(1){ background:#e0563f; }
.terminal-bar span:nth-child(2){ background:#e0a93f; }
.terminal-bar span:nth-child(3){ background:#7bc043; }
.terminal pre { margin: 0; padding: 1.1rem 1.2rem; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; color: var(--text); white-space: pre; overflow-x: auto; }
.c-mut { color: var(--dim); } .c-grn { color: var(--green-bright); } .c-org { color: var(--ember); } .c-red { color: var(--danger); }

/* ---------- CTA band ---------- */
.cta { max-width: var(--maxw); margin: 2rem auto 5rem; padding: 0 1.5rem; }
.cta-inner { position: relative; text-align: center; padding: 4rem 2rem; border-radius: 24px; border: 1px solid var(--line-strong);
  background: radial-gradient(80% 120% at 50% 0%, rgba(255,122,0,0.16), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; }
.cta-inner .lead { margin: 1rem auto 2rem; text-align: center; }
.cta-inner h2 { max-width: 20ch; margin: 0 auto; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--line-strong); box-shadow: 0 0 50px rgba(255,122,0,0.10); }
.price-card .plan-name { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-bright); }
.price-card .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; margin: 0.6rem 0 0.2rem; }
.price-card .price span { font-size: 1rem; color: var(--dim); font-weight: 500; }
.price-card .btn { margin-top: auto; }

/* ============================================================
   DOCS + LEARN layout
   ============================================================ */
.layout { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; gap: 2.5rem; padding: 2.5rem 1.5rem 4rem; align-items: start; }
.layout.with-toc { grid-template-columns: 240px 1fr 200px; }

/* sidebar */
.sidebar { position: sticky; top: 80px; align-self: start; font-size: 0.93rem; max-height: calc(100vh - 100px); overflow-y: auto; }
.sidebar h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-bright); margin: 1.4rem 0 0.6rem; }
.sidebar h5:first-child { margin-top: 0; }
.sidebar a { display: block; color: var(--muted); text-decoration: none; padding: 0.32rem 0.7rem; border-radius: 8px; border-left: 2px solid transparent; transition: color 0.2s, background 0.2s; }
.sidebar a:hover { color: var(--text); background: rgba(255,154,60,0.06); }
.sidebar a[aria-current="page"] { color: var(--primary-bright); background: rgba(255,154,60,0.08); border-left-color: var(--primary); }

/* article */
.article { min-width: 0; max-width: 760px; }
.article .breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--dim); margin-bottom: 1rem; }
.article .breadcrumb a { color: var(--muted); text-decoration: none; }
.article .breadcrumb a:hover { color: var(--text); }
.article h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.article > .lead { margin: 0 0 2rem; }
.article h2 { font-size: 1.65rem; margin: 2.6rem 0 0.9rem; padding-top: 0.4rem; }
.article h3 { font-size: 1.25rem; margin: 1.8rem 0 0.6rem; color: var(--text); }
.article p, .article li { color: var(--muted); }
.article p { margin: 0.9rem 0; }
.article ul, .article ol { padding-left: 1.3rem; margin: 0.9rem 0; }
.article li { margin: 0.4rem 0; }
.article a { color: var(--primary-bright); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.article a:hover { border-bottom-color: var(--primary); }
.article strong { color: var(--text); }
.article img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.article hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* code blocks */
.code { background: #0a0806; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0; font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.7; color: var(--text); white-space: pre; overflow-x: auto; }
.code .c-grn { color: var(--green-bright); } .code .c-mut { color: var(--dim); } .code .c-org { color: var(--ember); }

/* callouts / admonitions */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--primary); background: rgba(255,154,60,0.05); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.callout p { margin: 0.3rem 0; color: var(--muted); }
.callout .callout-title { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-bright); font-weight: 600; }
.callout.tip { border-left-color: var(--green); background: rgba(123,192,67,0.06); }
.callout.tip .callout-title { color: var(--green-bright); }
.callout.warn { border-left-color: var(--danger); background: rgba(255,107,90,0.06); }
.callout.warn .callout-title { color: var(--danger); }

/* step list */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.6rem 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; margin: 1.4rem 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255,154,60,0.10); border: 1px solid var(--line-strong); color: var(--primary-bright); font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }
.steps > li h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }

/* tables */
.article table, .doc-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.92rem; }
.article th, .article td, .doc-table th, .doc-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.article th, .doc-table th { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-bright); }
.article td { color: var(--muted); }

/* on-page TOC */
.toc { position: sticky; top: 80px; align-self: start; font-size: 0.85rem; }
.toc h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin: 0 0 0.7rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 0.25rem 0; border-left: 2px solid var(--line); padding-left: 0.8rem; }
.toc a:hover { color: var(--text); border-left-color: var(--primary); }

/* prev/next */
.page-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.page-nav a { flex: 1 1 200px; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; transition: border-color 0.2s, background 0.2s; }
.page-nav a:hover { border-color: var(--line-strong); background: rgba(255,154,60,0.05); }
.page-nav .dir { font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); }
.page-nav .title { color: var(--text); font-weight: 600; }
.page-nav .next { text-align: right; }

/* doc/learn index card grid */
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.index-card { display: block; text-decoration: none; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; transition: transform 0.25s var(--ease), border-color 0.25s; }
.index-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.index-card h3 { font-size: 1.15rem; color: var(--text); margin: 0 0 0.4rem; }
.index-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 2rem; display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .nav-brand { font-size: 1.5rem; margin-bottom: 0.8rem; }
.footer-brand p { color: var(--dim); font-size: 0.95rem; margin: 0; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-cols h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-bright); margin: 0 0 0.9rem; }
.footer-cols a { display: block; color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0; transition: color 0.2s var(--ease); }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1.4rem 1.5rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.85rem; font-family: var(--font-mono); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: revealUp 0.7s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes revealUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .hero-glow, .pill-live .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout, .layout.with-toc { grid-template-columns: 1fr; gap: 1.5rem; }
  .sidebar { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .grid-2, .grid-3, .price-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
}
@media (max-width: 620px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12, 10, 8, 0.97); border-bottom: 1px solid var(--line);
    padding: 0.4rem 1.5rem 1rem; display: none;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 0.7rem; text-align: center; padding: 0.7rem 0.95rem; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-inner { flex-direction: column; gap: 2rem; }
}

/* Center the intro lead inside a centered section head (max-width block needs
   auto margins or it hugs the left even though its text is centered). */
.section-head .lead { margin-left: auto; margin-right: auto; }

/* ---------- Modal (plain-English explainers etc.) ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 4, 2, 0.78); backdrop-filter: blur(4px); padding: 1.5rem;
}
.modal-overlay.is-open { display: flex; align-items: center; justify-content: center; }
.modal {
  width: 100%; max-width: 540px; max-height: 85vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 60px rgba(255,122,0,0.10);
  animation: modalIn 0.3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 1.4rem; color: var(--text); margin-bottom: 0.3rem; }
.modal .modal-sub { color: var(--dim); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 1.2rem; }
.modal .steps > li { margin: 1rem 0; }
.modal .steps > li p { margin: 0; color: var(--muted); }
.modal-close { margin-top: 1.4rem; background: none; border: 1px solid var(--line-strong); color: var(--muted); cursor: pointer; font-family: var(--font-body); font-size: 0.92rem; padding: 0.5rem 1.1rem; border-radius: 10px; transition: color 0.2s, border-color 0.2s; }
.modal-close:hover { color: var(--text); border-color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }
