/* IAVirtuals — shared design system (landing page, sign-in pages, dashboard).
   Deep navy ground, electric blue / cyan / violet light, glass used sparingly:
   prices, codes, forms and tables always sit on calm, readable surfaces. */

@font-face {
  font-family: 'Stack Sans Headline';
  font-style: normal; font-display: swap; font-weight: 200 700;
  src: url('/fonts/stack-sans-headline/stack-sans-headline-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Stack Sans Headline';
  font-style: normal; font-display: swap; font-weight: 200 700;
  src: url('/fonts/stack-sans-headline/stack-sans-headline-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Stack Sans Text';
  font-style: normal; font-display: swap; font-weight: 200 700;
  src: url('/fonts/stack-sans-text/stack-sans-text-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Stack Sans Text';
  font-style: normal; font-display: swap; font-weight: 200 700;
  src: url('/fonts/stack-sans-text/stack-sans-text-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  /* Ground and surfaces */
  --bg: #050816;
  --bg-2: #090e27;
  --surface: rgba(17, 26, 62, 0.58);
  --surface-solid: #0c1331;
  --surface-raised: #121b40;
  --surface-hover: rgba(36, 50, 108, 0.55);
  --border: rgba(110, 140, 255, 0.16);
  --border-strong: rgba(126, 156, 255, 0.36);
  /* Text */
  --text: #eef2ff;
  --muted: #a3aed3;
  --faint: #7d88b0;
  /* Light */
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --purple: #a855f7;
  --gradient: linear-gradient(120deg, #3b6cf6 0%, #6366f1 48%, #a855f7 100%);
  --gradient-text: linear-gradient(90deg, #4f8dff 0%, #7b6dff 48%, #b46cff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(59, 108, 246, 0.22), rgba(168, 85, 247, 0.18));
  --glow: 0 0 0 1px rgba(99, 132, 255, 0.25), 0 10px 36px rgba(59, 108, 246, 0.35);
  /* Status */
  --success: #34d399; --success-bg: rgba(52, 211, 153, 0.13);
  --danger: #fb7185; --danger-bg: rgba(251, 113, 133, 0.13);
  --warning: #fbbf24; --warning-bg: rgba(251, 191, 36, 0.13);
  --info: #60a5fa; --info-bg: rgba(96, 165, 250, 0.13);
  /* Type */
  --font-display: 'Stack Sans Headline', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Stack Sans Text', 'Segoe UI', system-ui, sans-serif;
  --step-hero: clamp(2.4rem, 0.9rem + 3.3vw, 3.75rem);
  --step-h2: clamp(1.9rem, 1.2rem + 2.2vw, 3rem);
  --step-h3: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-small: 0.875rem;
  /* Shape and space */
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1240px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(59, 108, 246, 0.2), transparent 62%),
    radial-gradient(900px 520px at 4% 6%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 var(--step-body) / 1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(99, 102, 241, 0.55); color: #fff; }
.icon { flex: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; }
.skip-link:focus { top: 16px; background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 999px; }

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

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.45)); }
.logo__name { display: block; font: 700 1.25rem / 1.1 var(--font-display); letter-spacing: -0.02em; }
.logo__tag { display: block; font-size: 0.75rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--gradient); background-size: 160% 100%; background-position: 0% 50%;
  color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(59, 108, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background-position 0.5s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.3s ease;
}
.btn:hover { background-position: 100% 50%; box-shadow: 0 10px 36px rgba(124, 92, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { transition: transform 0.25s var(--ease-out); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn--ghost {
  background: rgba(10, 16, 42, 0.5); border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-hover); box-shadow: 0 0 0 1px rgba(126, 156, 255, 0.45); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.link-button { background: none; border: 0; padding: 0; color: var(--blue-bright); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-button:hover { color: #fff; }

/* ---------- Surfaces ---------- */
.glass {
  background: linear-gradient(180deg, rgba(24, 36, 86, 0.62), rgba(11, 17, 44, 0.62));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.panel {
  background: linear-gradient(180deg, rgba(18, 27, 64, 0.72), rgba(11, 17, 44, 0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.icon-badge {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 14px; background: var(--gradient-soft); border: 1px solid var(--border-strong); color: #cfd8ff;
}
.icon-badge--round { border-radius: 50%; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--success { background: var(--success-bg); color: var(--success); }
.pill--danger { background: var(--danger-bg); color: var(--danger); }
.pill--warning { background: var(--warning-bg); color: var(--warning); }
.pill--neutral { background: rgba(148, 163, 214, 0.14); color: var(--muted); }

.flag { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); }
.flag--sm { width: 22px; height: 22px; }
.flag--placeholder { display: inline-grid; place-items: center; background: var(--surface-raised); color: var(--muted); font-size: 0.6875rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 16px; }
.label { font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(6, 10, 30, 0.7); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25); }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.hint { font-size: var(--step-small); color: var(--faint); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9375rem; }
.alert--error { background: var(--danger-bg); color: #fecdd3; border: 1px solid rgba(251, 113, 133, 0.35); }
.alert--success { background: var(--success-bg); color: #bbf7d0; border: 1px solid rgba(52, 211, 153, 0.35); }
.alert--info { background: var(--info-bg); color: #dbeafe; border: 1px solid rgba(96, 165, 250, 0.3); }
.alert .icon { margin-top: 2px; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid rgba(110, 140, 255, 0.1); }
.table thead th { font-size: 0.8125rem; font-weight: 500; color: var(--faint); border-bottom-color: rgba(110, 140, 255, 0.16); }
.table .num { text-align: right; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Motion helpers ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes float-y { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .js:not(.reveal-off) [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--delay, 0ms);
  }
  .js:not(.reveal-off) [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
