:root {
  --black: #020403;
  --panel: #07100b;
  --deep: #0c1b11;
  --acid: #c6ff00;
  --bone: #f0f2e9;
  --muted: #98a39a;
  --line: rgba(198, 255, 0, 0.2);
  --page: min(100% - 48px, 1360px);
}

* { box-sizing: border-box; }
html { background: var(--black); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--bone);
  background:
    radial-gradient(circle at 85% 18%, rgba(87, 132, 28, 0.14), transparent 26%),
    var(--black);
  font-family: "DM Sans", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.maker-header {
  position: relative;
  z-index: 30;
  display: flex;
  width: var(--page);
  height: 102px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.maker-brand { width: 224px; }
.maker-brand img { width: 100%; max-height: 72px; object-fit: contain; object-position: left; }
.maker-nav { display: flex; align-items: center; gap: 34px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.grok-powered { display: flex; align-items: center; gap: 10px; color: var(--bone); }
.grok-powered > b { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--acid); border-radius: 50%; color: var(--black); background: var(--acid); font-family: "Archivo Black", sans-serif; font-size: 1rem; }
.grok-powered > span { display: grid; gap: 2px; line-height: 1; }
.grok-powered small { color: var(--muted); font-size: 0.58rem; letter-spacing: 0.16em; }
.grok-powered strong { color: var(--bone); font-size: 0.76rem; letter-spacing: 0.08em; }
.maker-nav a { color: rgba(240, 242, 233, 0.72); }
.maker-nav a:hover { color: var(--acid); }

.maker-intro {
  position: relative;
  display: flex;
  width: var(--page);
  min-height: 590px;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
}
.maker-intro::after {
  content: "";
  position: absolute;
  right: 7%;
  width: min(36vw, 500px);
  height: min(36vw, 500px);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(198, 255, 0, 0.022), 0 0 0 120px rgba(198, 255, 0, 0.014);
}
.intro-copy { position: relative; z-index: 2; max-width: 820px; padding: 80px 0; }
.eyebrow { margin: 0 0 25px; color: var(--acid); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.intro-copy h1, .workspace-heading h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.intro-copy h1 { font-size: clamp(5rem, 11vw, 10.5rem); }
.intro-copy h1 span, .workspace-heading h2 span { color: var(--acid); text-shadow: 0 13px 0 rgba(42, 73, 30, 0.55); }
.intro-copy > p { max-width: 600px; margin: 36px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.28rem); line-height: 1.65; }
.grok-signature { display: inline-flex; align-items: center; gap: 13px; margin-top: 28px; padding: 10px 16px 10px 10px; border: 1px solid rgba(198, 255, 0, 0.38); background: rgba(7, 16, 11, 0.76); }
.grok-signature > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--black); background: var(--acid); font-family: "Archivo Black", sans-serif; font-size: 1.15rem; }
.grok-signature p { display: grid; gap: 5px; margin: 0; line-height: 1; }
.grok-signature small { color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.grok-signature strong { color: var(--bone); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.intro-mark { position: absolute; right: 0; color: rgba(198, 255, 0, 0.045); font-family: "Archivo Black", sans-serif; font-size: clamp(20rem, 45vw, 42rem); line-height: 0.75; }

.maker-workspace { padding: 110px max(24px, calc((100vw - 1360px) / 2)) 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(130deg, rgba(13, 33, 19, 0.88), rgba(2, 4, 3, 0.98) 62%); }
.workspace-heading { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 8vw; align-items: end; margin-bottom: 60px; }
.workspace-heading h2 { font-size: clamp(3.5rem, 7vw, 7rem); }
.workspace-heading > p { max-width: 430px; margin: 0 0 8px; padding-left: 26px; border-left: 1px solid var(--acid); color: var(--muted); line-height: 1.7; }

.maker-grid { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); align-items: center; }
.image-panel { min-width: 0; border: 1px solid rgba(240, 242, 233, 0.2); background: rgba(2, 5, 3, 0.78); }
.panel-label { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 18px; border-bottom: 1px solid rgba(240, 242, 233, 0.15); font-size: 0.75rem; letter-spacing: 0.13em; text-transform: uppercase; }
.panel-label span { color: var(--muted); }
.panel-label b { color: var(--acid); }
.drop-zone, .result-stage { position: relative; display: grid; aspect-ratio: 1 / 1; place-items: center; overflow: hidden; }
.drop-zone { cursor: pointer; background: radial-gradient(circle, rgba(198, 255, 0, 0.05), transparent 60%); transition: background 0.2s ease, box-shadow 0.2s ease; }
.drop-zone:hover, .drop-zone.dragging { background: rgba(198, 255, 0, 0.08); box-shadow: inset 0 0 0 2px var(--acid); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone img, .result-stage > img { width: 100%; height: 100%; object-fit: cover; }
.drop-copy { display: grid; gap: 9px; text-align: center; text-transform: uppercase; }
.drop-copy::before { content: "+"; display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 12px; border: 1px solid var(--acid); border-radius: 50%; color: var(--acid); font-size: 2rem; font-weight: 300; }
.drop-copy b { font-size: 0.9rem; letter-spacing: 0.12em; }
.drop-copy small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; }
.result-stage { background: radial-gradient(circle at 50% 45%, #13291a, #050906 70%); }
.result-empty { text-align: center; }
.result-empty span { display: grid; width: 106px; height: 106px; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: var(--black); background: var(--acid); font-family: "Archivo Black", sans-serif; font-size: 3.8rem; }
.result-empty p { margin: 0; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.transform-signal { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--acid); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(90deg); }
.transform-signal span { width: 24px; height: 1px; background: var(--acid); }
.making-state { display: grid; justify-items: center; gap: 12px; text-align: center; }
.making-state b { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.making-state small { color: var(--muted); }
.stitch-loader { width: 76px; height: 76px; margin-bottom: 12px; border: 2px solid rgba(198, 255, 0, 0.14); border-top-color: var(--acid); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.maker-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: 34px; }
.make-button, .result-actions a, .result-actions button { min-height: 56px; padding: 0 24px; border: 1px solid var(--acid); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; cursor: pointer; }
.make-button { display: inline-flex; min-width: 250px; align-items: center; justify-content: space-between; color: var(--black); background: var(--acid); }
.make-button:disabled { cursor: not-allowed; opacity: 0.4; }
.maker-actions p { min-height: 20px; margin: 11px 0 0; color: var(--muted); font-size: 0.78rem; }
.maker-actions p.error { color: #ff8b86; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions a, .result-actions button { display: grid; place-items: center; color: var(--acid); background: transparent; }
.result-actions .share-x-button { color: var(--black); background: var(--acid); }
.result-actions a:hover, .result-actions button:hover { color: var(--black); background: var(--acid); }
.result-actions .share-x-button:hover { color: var(--acid); background: transparent; }
.privacy-note { margin: 42px 0 0; padding-top: 20px; border-top: 1px solid rgba(240, 242, 233, 0.12); color: var(--muted); font-size: 0.75rem; line-height: 1.6; }

.maker-steps { width: var(--page); margin: 0 auto; padding: 120px 0; }
.maker-steps > div { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.maker-steps article { padding: 34px 30px 12px 0; }
.maker-steps article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.maker-steps article span { color: var(--acid); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; }
.maker-steps h3 { margin: 30px 0 14px; font-family: "Archivo Black", sans-serif; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 400; text-transform: uppercase; }
.maker-steps article p { margin: 0; color: var(--muted); line-height: 1.6; }

footer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 48px; align-items: end; width: var(--page); margin: 0 auto; padding: 66px 0 48px; border-top: 1px solid var(--line); }
footer img { width: 250px; }
footer p { margin: 0; color: rgba(240, 242, 233, 0.58); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
footer a { color: var(--acid); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
footer span { color: var(--muted); font-size: 0.76rem; }

@media (max-width: 900px) {
  :root { --page: min(100% - 36px, 1360px); }
  .maker-grid { grid-template-columns: 1fr; gap: 18px; }
  .transform-signal { min-height: 50px; transform: none; }
  .workspace-heading { grid-template-columns: 1fr; }
  .workspace-heading > p { margin-top: 18px; }
  footer { grid-template-columns: 1fr 1fr; }
}

button:focus-visible,
a:focus-visible,
.drop-zone:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  :root { --page: calc(100% - 28px); }
  .maker-header { height: 74px; }
  .maker-brand { width: 165px; }
  .grok-powered small { display: none; }
  .grok-powered > span { display: block; }
  .grok-powered strong { font-size: 0.68rem; }
  .maker-intro { min-height: 520px; }
  .intro-copy { padding: 70px 0; }
  .intro-copy h1 { font-size: clamp(4rem, 22vw, 6.5rem); }
  .maker-workspace { padding: 85px 14px 60px; }
  .workspace-heading { margin-bottom: 40px; }
  .workspace-heading h2 { font-size: 3.8rem; }
  .maker-actions { flex-direction: column; }
  .make-button, .result-actions { width: 100%; }
  .result-actions a, .result-actions button { flex: 1; }
  .maker-steps { padding: 90px 0; }
  .maker-steps > div { grid-template-columns: 1fr; }
  .maker-steps article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  footer { grid-template-columns: 1fr; gap: 22px; }
  footer img { width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
