@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
  --pearl:    #F7F9FC;
  --silver:   #DCE2EA;
  --platinum: #B8C0CC;
  --steel:    #7A8494;
  --slate:    #3F4651;
  --onyx:     #1A1D24;
  --carbon:   #0A0C10;

  --ice-100:  #E4EBF5;
  --ice-300:  #B4C4DB;
  --ice-500:  #6F8AB0;
  --ice-800:  #2A3F5C;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--carbon);
  color: var(--pearl);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

a { color: inherit; text-decoration: none; }

.app-bg {
  background-color: var(--carbon);
  background-image:
    linear-gradient(135deg, rgba(184,192,204,0.06) 0%, transparent 40%, rgba(111,138,176,0.10) 100%),
    radial-gradient(at 20% 12%, rgba(184,192,204,0.12) 0, transparent 50%),
    radial-gradient(at 85% 88%, rgba(111,138,176,0.10) 0, transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.82  0 0 0 0 0.86  0 0 0 0 0.92  0 0 0 0.16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.panel-bg {
  background-color: #060709;
  background-image:
    linear-gradient(180deg, rgba(184,192,204,0.04) 0%, transparent 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.82  0 0 0 0 0.86  0 0 0 0 0.92  0 0 0 0.20 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: transform .08s ease, opacity .15s ease;
  user-select: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--silver); color: var(--carbon); }
.btn-primary:hover { background: var(--pearl); }

.btn-outline {
  background: transparent;
  color: var(--silver);
  border: 0.5px solid var(--slate);
}
.btn-outline:hover { border-color: var(--platinum); color: var(--pearl); }

.btn-ghost { background: transparent; color: var(--platinum); }
.btn-ghost:hover { color: var(--pearl); }

.input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 16px;
  background: rgba(184,192,204,0.05);
  border: 0.5px solid rgba(220,226,234,0.15);
  border-radius: var(--radius-md);
  color: var(--pearl);
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
  outline: none;
}
.input::placeholder { color: var(--steel); }
.input:focus {
  border-color: var(--ice-500);
  background: rgba(184,192,204,0.08);
}

.label {
  display: block;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: .04em;
  background: rgba(111,138,176,0.18);
  color: var(--ice-100);
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice-300);
}

.divider {
  height: 0.5px;
  background: rgba(220,226,234,0.10);
  border: none;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
