.hero { position: relative; min-height: 780px; width: min(calc(100% - 3rem), var(--max)); margin: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; }
.hero__copy { position: relative; z-index: 2; padding: 6rem 0 8rem; }
.hero__signal { width: min(520px, 100%); padding-left: 1rem; border-left: 2px solid var(--gold); color: var(--gold-light); font-size: .85rem; }
.hero h1 { max-width: 780px; margin-bottom: 1.4rem; }
.hero__lead { max-width: 680px; color: var(--mist); font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.hero__orbit { position: relative; min-height: 620px; display: grid; place-items: center; }
.hero__orbit img { position: relative; z-index: 2; width: min(620px, 58vw); filter: drop-shadow(0 0 55px rgba(49,223,244,.16)) drop-shadow(0 20px 60px rgba(0,0,0,.6)); }
.orbit { position: absolute; width: 74%; aspect-ratio: 1; border: 1px solid rgba(214,173,85,.34); border-radius: 50%; transform: rotate(-18deg) scaleY(.52); box-shadow: inset 0 0 55px rgba(49,223,244,.06); }
.orbit--two { width: 92%; transform: rotate(24deg) scaleY(.38); border-color: rgba(49,223,244,.24); }
.continuum { padding: 2rem max(1.5rem, calc((100vw - var(--max))/2)); border-block: 1px solid var(--line); background: rgba(6,21,37,.64); }
.continuum > p { color: var(--gold-light); font-family: var(--display); font-size: 1.25rem; }
.continuum ol { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.continuum li { position: relative; padding-top: 2rem; color: var(--mist); counter-increment: step; }
.continuum li::before { content: counter(step); position: absolute; top: 0; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font-size: .67rem; }
.continuum li:not(:last-child)::after { content: ""; position: absolute; top: .75rem; left: 2rem; right: 1rem; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(214,173,85,.1)); }
.field-report, .catalog-preview, .system-sequence, .published-sections { width: min(calc(100% - 3rem), var(--max)); margin: 9rem auto; }
.screen-stage { position: relative; min-height: 720px; }
.screen--primary { position: absolute; top: 0; left: 0; width: 72%; transform: rotate(-1deg); }
.screen--tablet { position: absolute; right: 0; bottom: 0; width: 48%; transform: rotate(2deg); }
.screen--discord { position: absolute; left: 4%; bottom: -1rem; width: 38%; transform: rotate(-2deg); }
.story-beats { width: min(calc(100% - 3rem), var(--max)); margin: 3rem auto 9rem; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.story-beats article { padding: 2.6rem; }
.story-beats article + article { border-left: 1px solid var(--line); }
.story-beats strong { color: var(--gold-light); font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.story-beats p { margin: .75rem 0 0; color: var(--mist); font-size: .92rem; }
.page-intro { width: min(calc(100% - 3rem), 980px); min-height: 520px; margin: auto; padding: 8rem 0 4rem; }
.page-intro > p:first-child, .product-hero > div > p:first-child, .proof-panel > div > p:first-child { color: var(--gold-light); }
.page-intro > p:not(:first-child) { max-width: 720px; color: var(--mist); font-size: 1.25rem; }
.page-intro--wide { width: min(calc(100% - 3rem), var(--max)); }
.product-list, .support-grid, .manifesto { width: min(calc(100% - 3rem), var(--max)); margin: 1rem auto 7rem; }
.empty-state { padding: 4rem; border: 1px solid var(--line); }
.product-hero { width: min(calc(100% - 3rem), var(--max)); min-height: 720px; margin: auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.product-hero h1 { font-size: clamp(4.8rem, 9vw, 9rem); }
.product-hero__screen { margin: 0; padding: .55rem; border: 1px solid var(--line); background: var(--navy); transform: perspective(1100px) rotateY(-7deg) rotateX(2deg); box-shadow: 45px 50px 120px rgba(0,0,0,.5); }
.product-hero__screen img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; }
.sequence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sequence-grid article { padding: 1.5rem; background: var(--navy); }
.sequence-grid span { color: var(--cyan); font-size: .8rem; }
.sequence-grid h3 { margin: .45rem 0 1rem; }
.sequence-grid p { min-height: 8rem; color: var(--mist); font-size: .9rem; }
.sequence-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.proof-panel { width: min(calc(100% - 3rem), var(--max)); margin: 9rem auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: center; }
.proof-panel > div p:last-child { color: var(--mist); }
.proof-panel figure { margin: 0; padding: .5rem; border: 1px solid var(--line); background: #fff; transform: rotate(1deg); }
.proof-panel figure img { width: 100%; max-height: 620px; object-fit: contain; object-position: top; }
.proof-panel figcaption { color: var(--navy); }
.proof-panel--reverse { grid-template-columns: 1.2fr .8fr; }
.proof-panel--reverse > div { order: 2; }
.proof-panel--reverse figure { order: 1; background: var(--navy); transform: rotate(-1deg); }
.proof-panel--reverse figcaption { color: var(--gold-light); }
.published-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.published-sections article { padding: 3rem; background: var(--night); }
.published-sections h2 { font-size: 2.3rem; }
.published-sections p { color: var(--mist); }
.final-cta { padding: 8rem 1.5rem; text-align: center; border-block: 1px solid var(--line); background: linear-gradient(145deg, rgba(6,21,37,.94), rgba(10,38,60,.8)); }
.final-cta img { margin: auto; object-fit: contain; }
.final-cta h2 { margin: 1rem auto 2.5rem; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.support-grid article { padding: 3rem; background: var(--navy); }
.support-grid h2 { font-size: 2.25rem; }
.support-grid p { color: var(--mist); }
.manifesto { border-block: 1px solid var(--line); }
.manifesto p { margin: 0; padding: 1.5rem 0; color: var(--gold-light); font-family: var(--display); font-size: clamp(2rem, 5vw, 4.5rem); }
.manifesto p + p { border-top: 1px solid var(--line); }
.account-shell { width: min(calc(100% - 3rem), 1180px); min-height: 620px; margin: 0 auto; padding: 2rem 0 6rem; }
.account-nav { display: flex; gap: .35rem; margin-bottom: 5rem; padding: .5rem; overflow-x: auto; border: 1px solid var(--line); background: rgba(6,21,37,.72); }
.account-nav a { padding: .65rem 1rem; color: var(--mist); text-decoration: none; white-space: nowrap; }
.account-nav a:hover { color: var(--gold-light); background: rgba(214,173,85,.08); }
.account-heading { max-width: 900px; margin-bottom: 3rem; }
.account-heading > p:first-child { color: var(--gold-light); text-transform: uppercase; letter-spacing: .12em; }
.account-heading h1 { font-size: clamp(3.2rem, 8vw, 7rem); }
.account-heading > p:last-child { max-width: 700px; color: var(--mist); }
.account-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-bottom: 4rem; background: var(--line); border: 1px solid var(--line); }
.account-stats article { padding: 2rem; background: var(--navy); }
.account-stats strong { display: block; color: var(--gold-light); font-family: var(--display); font-size: 3rem; }
.account-stats span { color: var(--mist); }
.account-section { margin-top: 2rem; padding: 2rem; border: 1px solid var(--line); background: rgba(6,21,37,.62); }
.account-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.account-section__heading h2, .account-section h2 { margin-bottom: 1.5rem; font-size: 2rem; }
.order-row { display: grid; grid-template-columns: 130px minmax(220px, 1fr) 140px 150px; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.order-row > span:first-child, .license-note { color: var(--mist); }
.status { display: inline-flex; width: fit-content; padding: .2rem .55rem; border: 1px solid var(--line); color: var(--gold-light); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.status--paid, .status--active, .status--succeeded { color: var(--cyan); }
.status--refunded, .status--revoked, .status--failed { color: #ffb6a8; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.detail-grid div { padding: 1.4rem; background: var(--navy); }
.detail-grid dt { color: var(--mist); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.detail-grid dd { margin: .35rem 0 0; overflow-wrap: anywhere; }
.line-item, .release-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.release-row > div { min-width: 0; }
.release-row code { display: block; max-width: 100%; overflow-wrap: anywhere; color: var(--cyan); font-size: .72rem; }
.release-version { color: var(--gold-light); }
.account-notice, .account-empty { padding: 1.2rem; border: 1px solid var(--line); color: var(--mist); background: rgba(214,173,85,.05); }
.library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.library-grid article { padding: 2rem; border: 1px solid var(--line); background: var(--navy); }
.library-grid h2 { margin: 1rem 0; font-size: 2.4rem; }
.settings-form { display: grid; grid-template-columns: 1fr auto; gap: .75rem; margin: 2rem 0; padding: 2rem; border: 1px solid var(--line); }
.settings-form label { grid-column: 1 / -1; color: var(--gold-light); }
.settings-form input { min-width: 0; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--night); color: var(--ice); }
.account-signout { margin-top: 2rem; background: none; border: 0; cursor: pointer; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.legal-document, .support-form-shell { width: min(calc(100% - 3rem), 900px); margin: 0 auto; padding: 7rem 0; }
.legal-document header { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.legal-document header > p:first-child { color: var(--gold-light); text-transform: uppercase; letter-spacing: .12em; }
.legal-copy { margin: 3rem 0; color: var(--mist); }
.legal-copy p { margin: 0 0 1.25rem; }
.support-intro { min-height: auto; padding-bottom: 1rem; }
.support-form-shell { padding-top: 1rem; }
.support-form { display: grid; gap: .65rem; padding: 2rem; border: 1px solid var(--line); background: rgba(6,21,37,.62); }
.support-form label { margin-top: .65rem; color: var(--gold-light); }
.support-form input, .support-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--night); color: var(--ice); }
.support-form .errorlist { margin: 0; color: #ffb6a8; }
.support-form .button { justify-self: start; margin-top: 1rem; }
.auth-shell { width: min(calc(100% - 3rem), 600px); }
.auth-shell .support-form { gap: .9rem; padding: 2.2rem; }
.auth-shell h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.auth-shell p { margin: 0; color: var(--mist); }
.auth-shell form { display: grid; gap: .7rem; }
.auth-kicker { color: var(--gold-light); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.auth-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.auth-actions .button { justify-self: auto; margin-top: 0; }
.auth-shell .support-form img { width: 200px; max-width: 100%; padding: .6rem; background: #fff; border-radius: 4px; }
.auth-shell .helptext { margin: 0; font-size: .8rem; }
.backup-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: 1rem; letter-spacing: .18em; }
.backup-codes li { padding: .7rem 1rem; border: 1px solid var(--line); background: var(--night); color: var(--ice); }
@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero__copy { padding: 5rem 0 1rem; }
  .hero__orbit { min-height: 440px; }
  .screen-stage { min-height: 620px; }
  .screen--primary { width: 88%; }
  .screen--tablet { width: 58%; }
  .screen--discord { width: 48%; }
  .story-beats, .sequence-grid { grid-template-columns: 1fr; }
  .story-beats article + article { border-left: 0; border-top: 1px solid var(--line); }
  .product-hero, .proof-panel, .proof-panel--reverse { grid-template-columns: 1fr; padding-block: 5rem; }
  .proof-panel--reverse > div, .proof-panel--reverse figure { order: initial; }
  .sequence-grid p { min-height: 0; }
  .order-row { grid-template-columns: 110px minmax(180px, 1fr) 130px; }
  .order-row .status { grid-column: 2; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .hero, .field-report, .catalog-preview, .story-beats, .system-sequence, .published-sections, .proof-panel, .product-hero { width: min(calc(100% - 2rem), var(--max)); }
  .hero__copy { padding-top: 3.5rem; }
  .hero h1 { font-size: clamp(3.7rem, 19vw, 5.7rem); }
  .hero__orbit { min-height: 310px; }
  .hero__orbit img { width: 96vw; }
  .continuum ol { grid-template-columns: 1fr; gap: 1.2rem; }
  .continuum li { padding: 0 0 0 2.5rem; }
  .continuum li::before { top: 0; left: 0; }
  .continuum li::after { display: none; }
  .screen-stage { min-height: auto; display: grid; gap: 1rem; }
  .screen--primary, .screen--tablet, .screen--discord { position: relative; inset: auto; width: 100%; transform: none; }
  .product-hero h1 { font-size: 4rem; }
  .product-hero__screen { transform: none; }
  .published-sections, .support-grid { grid-template-columns: 1fr; }
  .account-shell { width: min(calc(100% - 2rem), var(--max)); }
  .account-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 3rem; overflow: visible; }
  .account-nav a { white-space: normal; }
  .account-stats, .library-grid, .detail-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr; gap: .25rem; }
  .order-row .status { grid-column: auto; }
  .line-item, .release-row { align-items: flex-start; flex-direction: column; }
  .settings-form { grid-template-columns: 1fr; }
}
