/* ModiPay — premium fintech tokens */
:root {
  --bg: #0B1120;
  --bg-2: #0F172A;
  --surface: #111827;
  --card: #172033;
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --accent: #22D3EE;
  --text: #F8FAFC;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --border: #1E293B;
  --border-2: #334155;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --grad: linear-gradient(105deg, #3B82F6 0%, #22D3EE 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Syne", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .btn, a.btn { cursor: pointer; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  min-height: 48px;
  border: 1px solid transparent;
  transition: background 180ms var(--ease), border-color 180ms var(--ease),
    transform 180ms var(--ease), box-shadow 280ms var(--ease), color 180ms var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.38);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.08);
}
.btn-block { width: 100%; border-radius: 14px; }

/* Forms */
.fg { margin-bottom: 1.15rem; }
.fg label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.iw { position: relative; }
.iw input {
  width: 100%;
  background: rgba(11, 17, 32, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 3rem 0.95rem 1.05rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.iw input::placeholder { color: var(--text-3); }
.iw input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.iw .eye {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--text-3);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.iw .eye:hover { color: var(--text); background: rgba(248,250,252,0.06); }

@keyframes mp-rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes mp-glow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.06); }
}
@keyframes mp-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.rise { animation: mp-rise 700ms var(--ease) both; }
.d1 { animation-delay: 90ms; }
.d2 { animation-delay: 180ms; }
.d3 { animation-delay: 270ms; }
.d4 { animation-delay: 360ms; }
.d5 { animation-delay: 450ms; }

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