:root {
  --bg: #07140d;
  --bg-2: #0d2315;
  --bg-3: #06120b;

  --text: #f2fff5;
  --muted: rgba(242, 255, 245, .74);
  --soft: rgba(242, 255, 245, .48);
  --dim: rgba(242, 255, 245, .28);

  --green: #6cf08f;
  --green-2: #2ac46f;
  --green-3: #145b2b;
  --green-4: #0c3a1c;
  --yellow: #f6e58d;
  --blue: #8fd8ff;
  --danger: #ff9c9c;
  --danger-2: #c0392b;
  --orange: #ff9f43;

  --card: rgba(255, 255, 255, .065);
  --card-strong: rgba(255, 255, 255, .11);
  --card-hover: rgba(255, 255, 255, .13);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);

  --shadow: 0 24px 90px rgba(0, 0, 0, .38);
  --shadow-sm: 0 8px 32px rgba(0, 0, 0, .28);
  --radius: 24px;
  --radius-sm: 14px;
  --radius-xs: 8px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 18% 12%, rgba(108, 240, 143, .22), transparent 30rem),
    radial-gradient(circle at 84% 9%, rgba(246, 229, 141, .14), transparent 26rem),
    radial-gradient(circle at 50% 100%, rgba(42, 196, 111, .1), transparent 38rem),
    linear-gradient(160deg, var(--bg), var(--bg-2) 55%, var(--bg-3));
  background-attachment: fixed;
  color: var(--text);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

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

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

img { max-width: 100%; }

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* Utility */
.hidden { display: none !important; }

.gradient-text {
  background: linear-gradient(90deg, var(--green), #c7ffd4 45%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.015em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }

.btn:focus-visible {
  outline: 3px solid rgba(108, 240, 143, .55);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #04180a;
  box-shadow: 0 14px 40px rgba(108, 240, 143, .22);
}

.btn-primary:hover {
  box-shadow: 0 18px 50px rgba(108, 240, 143, .32);
}

.btn-secondary {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--line-strong);
}

.btn-large {
  min-height: 54px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 18px;
  transition: background .18s ease, transform .18s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--card-hover);
  transform: scale(1.08);
}

.btn-icon:focus-visible {
  outline: 3px solid rgba(108, 240, 143, .55);
  outline-offset: 3px;
}

/* Cards */
.glass-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

/* Typography */
.label-upper {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
}

/* Focus states */
:focus-visible {
  outline: 2px solid rgba(108, 240, 143, .5);
  outline-offset: 3px;
}

/* Screen wrapper */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }
