/* ==========================================================================
   GRAVITY BOT — MODERN WHITE THEME LIQUID GLASS UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg:           #f8fafc;
  --bg-card:      rgba(255, 255, 255, 0.75);
  --bg-card-hover:rgba(255, 255, 255, 0.95);
  
  --p:            #7c3aed;
  --p-light:      #8b5cf6;
  --p-dark:       #6d28d9;
  --p-glow:       rgba(124, 58, 237, 0.28);
  --p-gradient:   linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  
  --text:         #0f172a;
  --text-body:    #334155;
  --muted:        #64748b;
  --subtle:       #94a3b8;
  
  --line:         rgba(226, 232, 240, 0.85);
  --line-strong:  #cbd5e1;
  --glass-border: rgba(255, 255, 255, 0.9);
  
  --shadow-sm:    0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-card:  0 12px 32px -4px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 20px 40px -6px rgba(124, 58, 237, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 20px 45px -8px rgba(15, 23, 42, 0.12);
  
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse 900px 520px at 50% -5%, rgba(139, 92, 246, 0.08), transparent 70%),
    radial-gradient(ellipse 700px 600px at 90% 25%, rgba(6, 182, 212, 0.06), transparent 70%),
    radial-gradient(ellipse 700px 500px at 10% 65%, rgba(236, 72, 153, 0.05), transparent 70%),
    radial-gradient(ellipse 900px 480px at 50% 100%, rgba(139, 92, 246, 0.07), transparent 70%),
    radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 32px 32px;
  background-attachment: fixed;
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   NAVIGATION (LIQUID FROSTED GLASS NAVBAR)
   ========================================================================== */

nav {
  height: 76px;
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ddd6fe;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
  display: block;
}

.brand b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}

.brand b span {
  color: var(--p);
  margin-left: 2px;
}

.links, .footlinks {
  display: flex;
  gap: 28px;
}

.links a, .footlinks a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s var(--ease);
}

.links a:hover, .footlinks a:hover {
  color: var(--p);
}

/* ==========================================================================
   BUTTONS (LIQUID GRADIENT WITH GLOW)
   ========================================================================== */

.invite {
  color: #ffffff !important;
  text-decoration: none;
  background: var(--p-gradient);
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px -2px var(--p-glow), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  border: 1px solid transparent;
  transition: all .2s var(--ease);
}

.invite:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -2px var(--p-glow), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  filter: brightness(1.06);
}

.invite:active {
  transform: translateY(0);
}

.ghost {
  color: var(--text) !important;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.ghost:hover {
  background: #ffffff;
  border-color: var(--p-light);
  color: var(--p) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

.big {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 14px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  max-width: 1200px;
  margin: auto;
  min-height: 640px;
  padding: 80px 28px 100px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  color: var(--p);
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin: 18px 0;
  font-weight: 900;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
}

.actions {
  display: flex;
  gap: 14px;
  margin: 36px 0 0;
  flex-wrap: wrap;
}

/* ==========================================================================
   HERO LOGO SHOWCASE & AMBIENT STAGE
   ========================================================================== */

.stage {
  height: 480px;
  display: grid;
  place-items: center;
  position: relative;
}

.stage-glow, .orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, rgba(196, 181, 253, 0.15) 50%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-logo-card {
  width: 290px;
  height: 290px;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 232, 255, 0.7));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 25px 60px -10px rgba(124, 58, 237, 0.16),
    0 10px 25px -5px rgba(15, 23, 42, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 1);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  display: block;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* FLOATING FROSTED GLASS BADGES */
.float {
  position: absolute;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.float.a {
  top: 50px;
  left: 2%;
  animation: floatA 5s ease-in-out infinite;
}

.float.b {
  right: -10px;
  top: 175px;
  animation: floatB 6s ease-in-out infinite;
}

.float.c {
  bottom: 50px;
  left: 8%;
  animation: floatC 5.5s ease-in-out infinite;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(9px) rotate(1deg); }
}

@keyframes floatC {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(1deg); }
}

@keyframes pulseGlow {
  0%   { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* ==========================================================================
   SECTIONS & FEATURES GRID (FROSTED WHITE CARDS)
   ========================================================================== */

.section, .commands-page {
  max-width: 1100px;
  margin: auto;
  padding: 30px 24px 100px;
}

.section {
  text-align: center;
}

.section h2 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 12px 0 45px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  text-align: left;
}

.grid article {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all .25s var(--ease);
}

.grid article:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: #ddd6fe;
  box-shadow: var(--shadow-hover);
}

.icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: inline-block;
  background: #ede9fe;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid #ddd6fe;
}

.grid h3 {
  margin: 12px 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.grid p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

/* ==========================================================================
   CTA BANNER (LIQUID FROSTED GLASS)
   ========================================================================== */

.cta {
  max-width: 1100px;
  margin: 20px auto 100px;
  padding: 50px 54px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.85) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid #ddd6fe;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  gap: 25px;
}

.cta h2 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  margin: 8px 0 0;
}

.cta p {
  color: var(--muted);
  font-size: 16px;
}

/* ==========================================================================
   COMMANDS & LEGAL PAGES
   ========================================================================== */

.commands-page {
  padding-top: 60px;
}

.pagehero {
  margin-bottom: 35px;
}

.pagehero h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin: 14px 0 8px;
}

.pagehero span {
  color: var(--p);
}

.pagehero p {
  color: var(--muted);
  font-size: 16px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin: 28px 0;
}

.filters input, .filters select {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
}

.filters input:focus, .filters select:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.command-category {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  margin: 24px 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.command-category header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.command-category header strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.command-category header span {
  color: var(--p);
  font-weight: 700;
  font-size: 13px;
  background: #ede9fe;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #ddd6fe;
}

.command-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}

.command-row:last-child {
  border-bottom: none;
}

.command-row:hover {
  background: rgba(255, 255, 255, 0.95);
}

.command-row code {
  color: var(--p-dark);
  font-weight: 700;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  background: #ede9fe;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #ddd6fe;
}

.command-row p {
  color: var(--text-body);
  margin: 6px 0 0;
  font-size: 14px;
}

.command-row small {
  color: var(--subtle);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

/* Legal pages content container */
.command-category h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.command-category p {
  color: var(--text-body);
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  max-width: 1200px;
  margin: auto;
  padding: 45px 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

footer p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 850px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .hero p { margin: 0 auto; }
  .actions { justify-content: center; }
  .stage { order: -1; height: 350px; }
  .hero-logo-card { width: 230px; height: 230px; border-radius: 26px; }
  .stage-glow, .orb { width: 250px; height: 250px; }
  .float.a { top: 20px; left: 0%; }
  .float.b { right: -5px; top: 120px; }
  .float.c { bottom: 20px; left: 5%; }
  .grid { grid-template-columns: 1fr; }
  .cta { margin: 0 20px 70px; display: block; text-align: center; }
  .cta .invite { margin-top: 24px; }
  .filters { grid-template-columns: 1fr; }
  .command-row { display: block; }
  .command-row small { display: block; margin-top: 8px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footlinks { justify-content: center; }
}