/* Risoto site — one stylesheet, injected by aio when src/style.css exists
   (dep/aio/src/server/server.ts). Dark, Solana-tinted, motion-safe. */

:root {
  --bg: #07070d;
  --bg-2: #0b0b14;
  --ink: #ece9f8;
  --muted: #9a96b5;
  --line: rgba(255, 255, 255, 0.09);
  --surface: rgba(255, 255, 255, 0.035);
  --purple: #9945ff;
  --green: #14f195;
  --cyan: #00d1ff;
  --danger: #ff6b81;
  --grad: linear-gradient(100deg, var(--purple), var(--cyan) 55%, var(--green));
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root {
  isolation: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
}

/* ── Stage & atmosphere ──────────────────────────────────────────────── */

.stage {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) 1.25rem;
  overflow: clip;
}

.aurora {
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38rem 28rem at 22% 18%, rgba(153, 69, 255, 0.34),
    transparent 65%),
    radial-gradient(34rem 26rem at 80% 28%, rgba(0, 209, 255, 0.22), transparent
    62%),
    radial-gradient(40rem 30rem at 58% 88%, rgba(20, 241, 149, 0.2), transparent
    66%),
    var(--bg);
  filter: blur(18px) saturate(120%);
  animation: drift 26s var(--ease) infinite alternate;
}

/* Fine grain keeps the large gradients from banding on wide screens. */
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  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='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 2%, 0) scale(1.06);
  }
}

/* ── Shared blocks ───────────────────────────────────────────────────── */

.hero,
.product,
.panel {
  position: relative;
  width: min(64rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  animation: rise 0.9s var(--ease) both;
}

.panel {
  width: min(34rem, 100%);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(20, 241, 149, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 241, 149, 0);
  }
}

.headline {
  font-size: clamp(2.6rem, 9vw, 5.75rem);
  /* Gradient text is clipped to its own box, so descenders need room. */
  line-height: 1.08;
  padding-bottom: 0.06em;
  font-weight: 700;
  letter-spacing: -0.045em;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}

.headline-sm {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

@keyframes sheen {
  to {
    background-position: 200% 0;
  }
}

.sub {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}
.error {
  color: var(--danger);
  font-size: 0.92rem;
}

/* ── Countdown ───────────────────────────────────────────────────────── */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.6vw, 1rem);
  width: min(46rem, 100%);
  margin-top: 0.5rem;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: clamp(0.9rem, 2.4vw, 1.5rem) 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255,
    0.015));
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -30px rgba(153, 69, 255, 0.9);
}

.unit-value {
  font-size: clamp(1.9rem, 6.5vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.unit-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Calls to action ─────────────────────────────────────────────────── */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #07070d;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 14px 40px -18px rgba(20, 241, 149, 0.85);
}

.cta-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
}

.cta:hover {
  transform: translateY(-2px);
}
.cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255,
    0.45), transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.cta:hover::after {
  transform: translateX(120%);
}

.cta-tier {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(7, 7, 13, 0.22);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ghost {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.24);
}

.back {
  color: var(--muted);
  font-size: 0.9rem;
  align-self: flex-start;
}
.back:hover {
  color: var(--ink);
}

/* ── Downloads, features, socials ────────────────────────────────────── */

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  width: min(38rem, 100%);
}

.download {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.download:hover {
  transform: translateY(-2px);
  border-color: rgba(153, 69, 255, 0.5);
  background: rgba(153, 69, 255, 0.09);
}

.download-os {
  font-weight: 600;
}
.download-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  width: min(52rem, 100%);
}

.features li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}

.features strong {
  font-weight: 620;
}
.features span {
  color: var(--muted);
  font-size: 0.9rem;
}

.socials {
  display: flex;
  gap: 1.25rem;
}

.social {
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.social:hover {
  color: var(--ink);
  border-color: var(--green);
}

/* ── Access-code form ────────────────────────────────────────────────── */

.code-form {
  display: flex;
  gap: 0.6rem;
  width: min(28rem, 100%);
}

.code-input,
.field input,
.issue input,
.issue select {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.code-input::placeholder,
.field input::placeholder,
.issue input::placeholder {
  color: rgba(154, 150, 181, 0.6);
  letter-spacing: normal;
}

.code-input:focus,
.field input:focus,
.issue input:focus,
.issue select:focus {
  outline: none;
  border-color: rgba(153, 69, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.18);
}

/* ── Wallet demo ─────────────────────────────────────────────────────── */

.demo {
  display: grid;
  place-items: center;
  width: 100%;
}

.demo-device {
  position: relative;
  width: min(20rem, 82vw);
  aspect-ratio: 9 / 11;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255,
    255, 0.02));
  box-shadow: 0 40px 90px -40px rgba(153, 69, 255, 0.9);
}

.demo-glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 241, 149, 0.22),
    transparent);
  filter: blur(24px);
  z-index: -1;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  50% {
    opacity: 0.45;
    transform: scale(1.08);
  }
}

.demo-screen {
  position: relative;
  height: 100%;
  padding: 1rem;
  border-radius: 26px;
  background: var(--bg-2);
  overflow: hidden;
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.demo-mark {
  width: 22px;
  height: 22px;
}
.demo-title {
  font-weight: 640;
  letter-spacing: -0.01em;
}

.demo-chip {
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-beat {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 3.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  opacity: 0;
  animation: beat 12s var(--ease) infinite;
}

.demo-beat-2 {
  animation-delay: 4s;
}
.demo-beat-3 {
  animation-delay: 8s;
  align-items: center;
  text-align: center;
}

@keyframes beat {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  4% {
    opacity: 1;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: none;
  }
  34% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.demo-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-balance {
  font-size: 1.9rem;
  font-weight: 660;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.demo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.85rem;
}

.demo-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.25rem 0 0.1rem;
}

.demo-actions span {
  padding: 0.45rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink);
}

.demo-token {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
}
.demo-name {
  font-weight: 600;
}
.demo-amount {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.demo-field {
  padding: 0.65rem 0.8rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.demo-button {
  margin-top: 0.2rem;
  padding: 0.65rem;
  border-radius: 999px;
  background: var(--grad);
  color: #07070d;
  font-weight: 650;
  font-size: 0.9rem;
  text-align: center;
}

.demo-check {
  width: 74px;
  height: 74px;
  margin: 1.5rem auto 0.4rem;
}
.demo-check svg {
  width: 100%;
  height: 100%;
}

.demo-check path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw 12s linear infinite;
}

@keyframes draw {
  0%,
  66% {
    stroke-dashoffset: 48;
  }
  72% {
    stroke-dashoffset: 0;
  }
  92% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 48;
  }
}

/* ── Admin console ───────────────────────────────────────────────────── */

.console {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: start center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  background: rgba(4, 4, 9, 0.72);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  animation: fade 0.25s var(--ease) both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.console-card {
  width: min(46rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #101019, #0a0a12);
  box-shadow: 0 40px 100px -40px #000;
}

.console-locked {
  width: min(24rem, 100%);
  align-items: stretch;
  text-align: center;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.console-card h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.console-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.console-card h4 {
  font-size: 0.78rem;
  color: var(--green);
  margin: 0.8rem 0 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.chip:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.25);
}

.chip-on {
  color: #07070d;
  background: var(--grad);
  border-color: transparent;
  font-weight: 620;
}

.field {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.field span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: capitalize;
}
.field input {
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  letter-spacing: normal;
}

.issue {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.issue select,
.issue input[type="number"] {
  flex: 0 0 auto;
  width: auto;
  padding: 0.55rem 0.7rem;
}
.issue input[type="number"] {
  width: 5rem;
}
.issue input:not([type="number"]) {
  flex: 1 1 10rem;
  padding: 0.55rem 0.75rem;
  letter-spacing: normal;
}

.codes {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.9rem;
  max-height: 16rem;
  overflow-y: auto;
}

.codes li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.codes code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
}
.code-meta {
  color: var(--muted);
  font-size: 0.78rem;
}
.codes li .ghost {
  margin-left: auto;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

/* ── Small screens & motion preferences ──────────────────────────────── */

@media (max-width: 30rem) {
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .code-form {
    flex-direction: column;
  }
  .field {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .demo-beat-1 {
    opacity: 1;
  }
  .demo-beat-2,
  .demo-beat-3 {
    display: none;
  }
}

/* ── Disclaimer, hints and the admin preview ribbon ──────────────────── */

.disclaimer {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-wrap: balance;
}

.field-hint {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.preview-bar {
  position: fixed;
  z-index: 60;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.9rem;
  background: rgba(11, 11, 20, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.preview-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--grad);
  color: #07070d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-bar .chips {
  flex: 1;
}

.preview-bar .ghost {
  margin: 0;
}
