/* ============================================================
   TOGETHER — Pure Black & White Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;

  --font: 'Manrope', 'Segoe UI', sans-serif;
  --display-font: 'Space Grotesk', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-border-soft: rgba(255, 255, 255, 0.14);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 28px 90px rgba(0, 0, 0, 0.6);

  --transition: 0.24s cubic-bezier(0.16, 1, 0.3, 1);

  /* Black & white gray mapping */
  --gray-50: rgba(255, 255, 255, 0.08);
  --gray-100: rgba(255, 255, 255, 0.1);
  --gray-200: rgba(255, 255, 255, 0.14);
  --gray-300: rgba(255, 255, 255, 0.48);
  --gray-400: rgba(255, 255, 255, 0.64);
  --gray-500: rgba(255, 255, 255, 0.72);
  --gray-600: rgba(255, 255, 255, 0.8);
  --gray-700: rgba(255, 255, 255, 0.88);
  --gray-800: rgba(255, 255, 255, 0.92);
  --gray-900: rgba(255, 255, 255, 0.96);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--white);
  background: #000000;
  line-height: 1.6;
  min-height: 100vh;
}

* {
  font-family: var(--font);
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
img { display: block; max-width: 100%; }

.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.text-3xl { font-size: 36px; }
.text-4xl { font-size: 48px; }
.text-5xl { font-size: 64px; }
.text-7xl { font-size: 96px; }
.text-9xl { font-size: 144px; }

.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.tracking-tight { letter-spacing: -0.04em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.08em; }
.tracking-wider { letter-spacing: 0.14em; }
.tracking-widest { letter-spacing: 0.24em; }

.uppercase { text-transform: uppercase; }
.label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.72);
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.gap-5 { gap: 48px; }
.space-y-1 > * + * { margin-top: 8px; }
.space-y-2 > * + * { margin-top: 16px; }
.space-y-3 > * + * { margin-top: 24px; }
.space-y-4 > * + * { margin-top: 32px; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-black { color: var(--black); }
.text-white { color: var(--white); }
.text-muted { color: rgba(255, 255, 255, 0.64); }
.text-light { color: rgba(255, 255, 255, 0.48); }
.bg-black { background: var(--black); }
.bg-white { background: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  color: var(--black);
  border: 2px solid var(--white);
  background: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.24);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  color: var(--white);
  border: 2px solid var(--white);
  background: transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.btn-secondary:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border: none;
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.btn-lg { padding: 16px 34px; font-size: 11px; border-radius: var(--radius-full); }
.btn-sm { padding: 9px 18px; font-size: 10px; }
.btn-full { width: 100%; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: all var(--transition);
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.input-field::placeholder { color: rgba(255, 255, 255, 0.44); }

.input-field:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.input-field.error { border-color: #ff6b6b; }

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card:hover {
  border-color: var(--glass-border);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.88);
}

.pill-dark {
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  margin: 24px 0;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.alert-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.32);
  color: #ffb3b3;
}

.alert-success {
  background: rgba(147, 255, 190, 0.12);
  border: 1px solid rgba(147, 255, 190, 0.32);
  color: #c3ffe0;
}

.nav {
  position: fixed;
  top: 12px;
  left: 18px;
  right: 18px;
  z-index: 100;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-logo {
  width: auto;
  height: 34px;
  border-radius: 10px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

.nav-link:hover { color: var(--white); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin { to { transform: rotate(360deg); } }

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.3s; }
.animate-fade-up.delay-4 { animation-delay: 0.4s; }
.animate-fade-up.delay-5 { animation-delay: 0.5s; }
.animate-fade-up.delay-6 { animation-delay: 0.6s; }

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-dark {
  border-color: rgba(0, 0, 0, 0.2);
  border-top-color: var(--black);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

@media (max-width: 768px) {
  .nav {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 0 14px;
    height: 56px;
  }

  .nav-links { gap: 10px; }
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
