:root {
  color-scheme: dark;
  --ink: #090a08;
  --panel: #11130f;
  --panel-2: #171a14;
  --ivory: #f2ead7;
  --muted: #9d9c8b;
  --gold: #d8b65b;
  --gold-bright: #f2d77d;
  --green: #164b38;
  --line: rgba(216, 182, 91, .25);
  --red: #e46e63;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(circle at 16% 12%, rgba(46, 87, 57, .24), transparent 31rem),
    radial-gradient(circle at 83% 82%, rgba(128, 81, 23, .16), transparent 28rem),
    linear-gradient(145deg, #0a0b09, #11140e 52%, #080907);
  font-family: 'IBM Plex Mono', monospace;
}

button, input { font: inherit; }
button { color: inherit; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .07;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.masthead {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 28px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--gold);
  transform: rotate(45deg); color: var(--gold-bright); font: 700 24px 'Bodoni Moda', serif;
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.masthead h1 { margin: 1px 0 0; font: 500 20px 'Bodoni Moda', serif; letter-spacing: .04em; }
.eyebrow, .step-label { margin: 0; color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.terminal-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #61ca88; box-shadow: 0 0 12px #61ca88; }

main { width: min(1180px, calc(100% - 40px)); margin: 36px auto 60px; }
.terminal-shell {
  min-height: 690px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 35px 90px rgba(0,0,0,.45), inset 0 0 0 5px rgba(255,255,255,.015);
}
.terminal-left { padding: 58px clamp(34px, 6vw, 80px); background: linear-gradient(145deg, rgba(20,24,18,.98), rgba(10,12,9,.98)); }
.terminal-right { position: relative; padding: 34px clamp(28px, 4vw, 50px) 42px; background: #ece4d2; color: #171811; overflow: hidden; }
.terminal-right::before { content: ''; position: absolute; inset: 0; opacity: .13; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(0,0,0,.08) 6px); pointer-events: none; }
.ornament { display: flex; align-items: center; gap: 12px; width: 110px; color: var(--gold); font-size: 8px; margin-bottom: 28px; }
.ornament i { height: 1px; flex: 1; background: var(--gold); }
.terminal-left h2 { max-width: 500px; margin: 13px 0 12px; font: 500 clamp(44px, 6vw, 74px)/.98 'Bodoni Moda', serif; letter-spacing: -.045em; }
.intro { max-width: 535px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.amount-display { display: flex; align-items: baseline; margin: 42px 0 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(242,234,215,.23); }
.amount-display .currency { color: var(--gold); font: 500 30px 'Bodoni Moda', serif; }
.amount-display input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ivory); font: 500 clamp(64px, 9vw, 104px)/.8 'Bodoni Moda', serif; letter-spacing: -.06em; }
.amount-display .minor { color: var(--muted); font: 500 28px 'Bodoni Moda', serif; }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.presets button { border: 1px solid rgba(242,234,215,.13); background: rgba(255,255,255,.025); padding: 11px 4px; cursor: pointer; color: var(--muted); font-size: 10px; transition: .2s ease; }
.presets button:hover, .presets button.selected { border-color: var(--gold); color: var(--gold-bright); background: rgba(216,182,91,.08); }
.start-button { width: 100%; margin-top: 27px; border: 1px solid var(--gold); background: var(--gold); color: #11130e; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; transition: .25s ease; }
.start-button:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 14px 35px rgba(216,182,91,.14); }
.start-button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-copy { display: grid; gap: 3px; }
.button-copy small { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.button-copy strong { font: 700 18px 'Bodoni Moda', serif; }
.arrow { font-size: 23px; }
.error { color: #ff9c91; font-size: 11px; line-height: 1.5; }
.assurance { display: flex; gap: 12px; align-items: center; margin-top: 25px; color: #777b70; font-size: 9px; line-height: 1.55; }
.assurance p { margin: 0; }
.assurance strong { color: #bbb9aa; }
.shield { flex: 0 0 auto; width: 30px; height: 34px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line); border-radius: 50% 50% 45% 45%; font: 700 14px 'Bodoni Moda'; }

.ticket-head { position: relative; z-index: 1; display: flex; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid rgba(23,24,17,.25); color: #5f6157; font-size: 9px; letter-spacing: .12em; }
.chip-stack { position: relative; height: 190px; margin-top: 20px; }
.chip { position: absolute; width: 145px; height: 145px; left: 50%; top: 10px; margin-left: -72px; display: grid; place-items: center; border-radius: 50%; border: 10px dashed currentColor; background: #184936; color: #d7b967; box-shadow: inset 0 0 0 7px #184936, inset 0 0 0 9px currentColor, 0 20px 35px rgba(20,22,14,.2); }
.chip span { width: 73px; height: 73px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 500 40px 'Bodoni Moda'; }
.chip-back { transform: translate(-53px, 11px) rotate(-21deg) scale(.91); background: #6a1d22; z-index: 0; }
.chip-mid { transform: translate(53px, 12px) rotate(19deg) scale(.91); background: #1f3354; z-index: 1; }
.chip-front { z-index: 2; }
.status-copy { position: relative; z-index: 1; text-align: center; }
.status-copy .eyebrow { color: #7a652e; }
.status-copy h3 { margin: 6px 0 7px; font: 700 29px 'Bodoni Moda', serif; }
.status-copy > p:last-child { min-height: 34px; margin: 0 auto; max-width: 370px; color: #66675d; font-size: 10px; line-height: 1.55; }
.steps { position: relative; z-index: 1; list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid rgba(23,24,17,.16); }
.steps li { display: grid; grid-template-columns: 31px 1fr 12px; gap: 10px; align-items: center; padding: 13px 3px; border-bottom: 1px solid rgba(23,24,17,.13); color: #8a8a7e; transition: .3s ease; }
.steps li > span { font-size: 9px; }
.steps li div { display: grid; gap: 2px; }
.steps strong { color: #4d4e46; font: 600 10px 'IBM Plex Mono'; text-transform: uppercase; letter-spacing: .05em; }
.steps small { font-size: 8px; }
.steps i { width: 7px; height: 7px; border: 1px solid #aaa99e; border-radius: 50%; }
.steps li.active { color: #725b22; }
.steps li.active strong { color: #171811; }
.steps li.active i { border-color: #a27f27; background: #d8b65b; box-shadow: 0 0 0 4px rgba(216,182,91,.22); }
.steps li.done { color: #4c705e; }
.steps li.done i { border-color: #286446; background: #286446; }
.intent-card { position: relative; z-index: 1; margin-top: 17px; padding: 14px; border: 1px solid rgba(23,24,17,.17); background: rgba(255,255,255,.22); }
.intent-card > span { display: block; color: #78796e; font-size: 7px; letter-spacing: .13em; }
.intent-card code { display: block; margin: 5px 0 10px; overflow: hidden; text-overflow: ellipsis; font-size: 8px; white-space: nowrap; }
.intent-card button { padding: 0; border: 0; background: none; color: #6a541e; cursor: pointer; font-size: 9px; font-weight: 600; text-transform: uppercase; }

.how-it-works { padding: 38px 0 0; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.flow div { display: grid; gap: 6px; }
.flow b { font: 500 17px 'Bodoni Moda'; }
.flow span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.flow i { color: var(--gold); font-style: normal; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 26px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: #62655c; font-size: 7px; letter-spacing: .12em; }

@media (max-width: 800px) {
  .masthead { width: min(100% - 28px, 600px); padding-top: 22px; }
  .terminal-meta span:not(.live-dot):last-child { display: none; }
  main { width: min(100% - 20px, 600px); margin-top: 18px; }
  .terminal-shell { grid-template-columns: 1fr; }
  .terminal-left { padding: 38px 25px 42px; }
  .terminal-right { padding: 28px 24px 34px; }
  .terminal-left h2 { font-size: clamp(42px, 14vw, 68px); }
  .amount-display input { font-size: clamp(66px, 22vw, 98px); }
  .presets { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow i { transform: rotate(90deg); width: min-content; }
  footer { width: calc(100% - 28px); flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
