/* ULTRAMAIL — industrial money-machine design system */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800;900&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #07090b;
  --panel: #0c1013;
  --panel2: #11171c;
  --line: #1c242a;
  --line2: #29343d;
  --ink: #e9f1ec;
  --mut: #8ea39b;
  --grn: #2df583;
  --grn-dim: #1c9e58;
  --gold: #f2c14e;
  --red: #ff5d5d;
  --fd: 'Unbounded', sans-serif;
  --fb: 'Instrument Sans', sans-serif;
  --fm: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 var(--fb);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(45,245,131,.08), transparent 62%),
    radial-gradient(900px 520px at -8% 34%, rgba(242,193,78,.05), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 40%, rgba(0,0,0,.7));
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 40%, rgba(0,0,0,.7));
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header.site-top, footer.site-foot { position: relative; z-index: 1; }

a { color: var(--grn); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--grn); color: #04140a; }

.shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.site-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,9,11,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-top .shell { display: flex; align-items: center; gap: 34px; height: 66px; }
.logo { font-family: var(--fd); font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--ink); }
.logo b { color: var(--grn); font-weight: 800; }
.logo:hover { text-decoration: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-family: var(--fm); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mut);
}
.site-nav a:hover { color: var(--grn); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--fm); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: transparent;
  border: 1px solid var(--line2); border-radius: 2px;
  padding: 14px 24px; transition: all .18s ease;
}
.btn:hover { border-color: var(--grn); color: var(--grn); box-shadow: 0 0 26px rgba(45,245,131,.14); text-decoration: none; }
.btn.solid { background: var(--grn); border-color: var(--grn); color: #04140a; }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(45,245,131,.35); color: #04140a; }
.btn.sm { padding: 9px 16px; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 104px 0 64px; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--fm); font-size: 12px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--grn);
}
.kicker::before { content: ""; width: 36px; height: 1px; background: var(--grn); }
h1.mega {
  font-family: var(--fd); font-weight: 800;
  font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: 1.05;
  letter-spacing: -.01em; margin: .4em 0 .35em; max-width: 18ch; text-wrap: balance;
}
.mega .hl { color: var(--grn); text-shadow: 0 0 44px rgba(45,245,131,.4); }
.lede { max-width: 58ch; color: var(--mut); font-size: 1.12rem; margin: 0 0 34px; }
.lede strong { color: var(--ink); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-note { font-family: var(--fm); font-size: 11px; color: var(--mut); letter-spacing: .08em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 58px; background: var(--panel); }
.stat { padding: 24px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--fm); font-size: 1.8rem; font-weight: 600; color: var(--ink); }
.stat b.gold { color: var(--gold); }
.stat b.grn { color: var(--grn); }
.stat span { font-family: var(--fm); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; background: rgba(12,16,19,.6); }
.ticker-in {
  display: inline-flex; gap: 56px; white-space: nowrap; padding-right: 56px;
  font-family: var(--fm); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mut);
  animation: tick 30s linear infinite;
}
.ticker-in b { color: var(--grn); font-weight: 500; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- machine diagram ---------- */
.machine { display: flex; border: 1px solid var(--line); background: var(--panel); }
.node { flex: 1; padding: 26px 22px 22px; border-right: 1px solid var(--line); position: relative; }
.node:last-child { border-right: 0; }
.node i { display: block; font-style: normal; font-family: var(--fm); font-size: 11px; color: var(--grn); letter-spacing: .18em; margin-bottom: 10px; }
.node b { display: block; font-weight: 600; margin-bottom: 5px; }
.node p { margin: 0; font-size: .86rem; color: var(--mut); }
.node::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grn); animation: pulse 2.6s infinite;
}
.node:nth-child(2)::after { animation-delay: .4s; }
.node:nth-child(3)::after { animation-delay: .8s; }
.node:nth-child(4)::after { animation-delay: 1.2s; }
.node:nth-child(5)::after { animation-delay: 1.6s; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,245,131,.55); }
  70% { box-shadow: 0 0 0 11px rgba(45,245,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,245,131,0); }
}

/* ---------- sections ---------- */
.sec { padding: 88px 0; }
.sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 40px; }
.sec-head .no {
  font-family: var(--fm); font-size: 13px; color: var(--grn); letter-spacing: .2em;
}
h2 { font-family: var(--fd); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin: 0; letter-spacing: -.01em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  padding: 30px 28px; border-radius: 2px;
}
.card::before, .card::after { content: ""; position: absolute; width: 14px; height: 14px; }
.card::before { top: -1px; left: -1px; border-top: 2px solid var(--grn); border-left: 2px solid var(--grn); }
.card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--grn); border-right: 2px solid var(--grn); }
.card .no { font-family: var(--fm); font-size: 26px; font-weight: 600; color: var(--grn); display: block; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; }
.card p { margin: 0; color: var(--mut); font-size: .94rem; }

/* ---------- promise ---------- */
.promise {
  border: 1px solid var(--grn-dim); border-radius: 2px; text-align: center;
  padding: 64px 40px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(45,245,131,.07), rgba(45,245,131,.015) 55%, transparent);
}
.promise .zero {
  font-family: var(--fd); font-weight: 900; color: var(--gold);
  font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; letter-spacing: -.01em;
  text-shadow: 0 0 60px rgba(242,193,78,.3);
}
.promise .zline {
  font-family: var(--fd); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  margin: 18px auto 8px; max-width: 26ch; text-wrap: balance;
}
.promise .zline em { font-style: normal; color: var(--grn); }
.promise p.sub { color: var(--mut); max-width: 52ch; margin: 10px auto 0; }
.checks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; padding: 0; margin: 34px 0 0; }
.checks li { font-family: var(--fm); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.checks li::before { content: "✓ "; color: var(--grn); }
.promise .fineprint { color: var(--mut); font-size: .82rem; max-width: 56ch; margin: 30px auto 0; opacity: .8; border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- forms ---------- */
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 38px 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.span2 { grid-column: 1 / -1; }
.field label {
  display: block; margin-bottom: 7px;
  font-family: var(--fm); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mut);
}
.field label.req::after { content: " *"; color: var(--grn); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 2px;
  background: #0a0e11; border: 1px solid var(--line2); color: var(--ink);
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--grn); box-shadow: 0 0 0 3px rgba(45,245,131,.12);
}
.hint { font-size: .82rem; color: var(--mut); margin-top: 5px; }
.hp { position: absolute; left: -6000px; top: -6000px; }

/* ---------- flash ---------- */
.flash { border-left: 3px solid var(--line2); background: var(--panel); padding: 13px 17px; margin: 18px 0; font-size: .95rem; }
.flash.ok { border-color: var(--grn); }
.flash.warn { border-color: var(--gold); }
.flash.err { border-color: var(--red); }

/* ---------- chat ---------- */
.chat { max-width: 780px; }
.msg { display: flex; margin: 16px 0; }
.msg.user { justify-content: flex-end; }
.bubble { max-width: 82%; padding: 14px 18px; border: 1px solid var(--line2); background: var(--panel); border-radius: 2px; white-space: pre-wrap; }
.msg.assistant .bubble { border-left: 3px solid var(--grn); }
.msg.user .bubble { background: var(--panel2); }
.who { font-family: var(--fm); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); margin-bottom: 6px; }
.chat-input { display: flex; gap: 12px; margin-top: 26px; align-items: flex-end; }
.chat-input textarea { flex: 1; min-height: 74px; resize: vertical; }

/* ---------- status / panel ---------- */
.pill {
  display: inline-block; padding: 5px 11px; border: 1px solid var(--line2); border-radius: 2px;
  font-family: var(--fm); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut);
}
.pill.grn { color: var(--grn); border-color: var(--grn-dim); }
.pill.gold { color: var(--gold); border-color: #6d5726; }
.pill.red { color: var(--red); border-color: #5e2a2a; }

.camp { border: 1px solid var(--line); background: var(--panel); padding: 26px 28px; margin: 18px 0; border-radius: 2px; }
.camp-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.camp-top h3 { margin: 0; font-size: 1.08rem; flex: 1; }
.camp p.desc { color: var(--mut); margin: 12px 0 0; }
.price-line { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.price-big { font-family: var(--fd); font-weight: 800; font-size: 2.3rem; color: var(--grn); text-shadow: 0 0 34px rgba(45,245,131,.3); }
.price-big small { font-size: .9rem; font-family: var(--fm); color: var(--mut); font-weight: 400; }

.auth { max-width: 430px; margin: 76px auto; }
.auth h1 { font-family: var(--fd); font-size: 1.6rem; margin: 0 0 22px; }
.auth .field { margin-bottom: 16px; }

.page-head { padding: 66px 0 10px; }
.page-head h1 { font-family: var(--fd); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .2em 0; }
.page-head p { color: var(--mut); max-width: 60ch; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 90px; padding: 30px 0 40px; }
.site-foot .shell { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-foot span { font-family: var(--fm); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; }
.d4 { animation-delay: .42s; } .d5 { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .ticker-in { animation: none; }
  .node::after { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .grid3, .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .machine { flex-direction: column; }
  .node { border-right: 0; border-bottom: 1px solid var(--line); }
  .node:last-child { border-bottom: 0; }
  .site-nav { gap: 16px; }
  .hero { padding: 70px 0 50px; }
}
