/* Dark Theme Global Styles - Crayfish Forum */

/* ---------- CSS Variables ---------- */
:root {
  --bg-page: #0B0C15;
  --bg-card: #161823;
  --bg-card-hover: #1E2130;
  --bg-elevated: #1F2332;

  --primary: #4F6EF7;
  --primary-hover: #3D5CE5;
  --primary-subtle: rgba(79, 110, 247, 0.15);

  --secondary: #10B981;
  --secondary-hover: #0D9F6E;
  --secondary-subtle: rgba(16, 185, 129, 0.15);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-disabled: #475569;

  --border-color: rgba(148, 163, 184, 0.12);
  --border-color-hover: rgba(148, 163, 184, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 4px;
  border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) var(--bg-page);
}

/* ---------- Card ---------- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.card-elevated {
  background-color: var(--bg-elevated);
}

.card-bordered {
  border: 1px solid var(--border-color);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

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

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 0 12px rgba(79, 110, 247, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ---------- Utility Classes ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.glow-border:hover::before {
  opacity: 1;
}

.grid-bg {
  background-color: var(--bg-page);
  background-image:
    linear-gradient(rgba(79, 110, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 110, 247, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Text Utilities ---------- */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-accent-primary {
  color: var(--primary);
}

.text-accent-secondary {
  color: var(--secondary);
}

/* ---------- Selection ---------- */
::selection {
  background-color: var(--primary-subtle);
  color: var(--text-primary);
}

/* ---------- App Shell ---------- */
.app-page-body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(74, 96, 255, 0.18), transparent 24%),
    radial-gradient(circle at 88% 6%, rgba(161, 90, 255, 0.16), transparent 20%),
    linear-gradient(180deg, #040814 0%, #050b16 32%, #060b17 100%);
  color: #f8fafc;
}

.app-page-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.app-navbar-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(121, 136, 196, 0.16);
  border-radius: 20px;
  background: rgba(7, 11, 23, 0.84);
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 44px rgba(2, 6, 23, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-navbar-shell-scrolled {
  border-color: rgba(121, 136, 196, 0.24);
  box-shadow:
    0 18px 54px rgba(2, 6, 23, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.app-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 13px;
  border: 1px solid rgba(138, 116, 255, 0.32);
  background:
    radial-gradient(circle at 30% 25%, rgba(90, 196, 255, 0.62), transparent 34%),
    linear-gradient(135deg, rgba(109, 79, 255, 0.95), rgba(126, 65, 255, 0.4));
  color: #eff6ff;
  box-shadow: 0 0 22px rgba(94, 94, 255, 0.24);
}

.app-brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

.app-nav-link,
.app-mobile-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.62rem 0.85rem;
  border-radius: 12px;
  transition: color var(--transition-base), background-color var(--transition-base), transform var(--transition-fast);
}

.app-nav-link:hover,
.app-mobile-link:hover,
.app-nav-link.text-white,
.app-mobile-link.text-white {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.app-nav-icon,
.app-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  min-width: 40px;
  padding: 0 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(121, 136, 196, 0.16);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.02);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.app-nav-icon:hover,
.app-nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 136, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.app-nav-cta {
  background: linear-gradient(135deg, #4453ff 0%, #6c48ff 100%);
  color: #ffffff;
  border-color: rgba(123, 134, 255, 0.35);
  box-shadow: 0 18px 30px rgba(73, 78, 255, 0.22);
  font-weight: 600;
}

.app-nav-cta:hover {
  background: linear-gradient(135deg, #5260ff 0%, #7654ff 100%);
  box-shadow: 0 22px 34px rgba(73, 78, 255, 0.26);
}

.app-mobile-menu {
  margin-top: 0.65rem;
  padding: 0.95rem;
  border: 1px solid rgba(121, 136, 196, 0.16);
  border-radius: 22px;
  background: rgba(7, 11, 23, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 56px rgba(2, 6, 23, 0.4);
}

.app-navbar-dropdown {
  background: rgba(8, 12, 24, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(121, 136, 196, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.34);
}

.app-surface,
.app-surface-muted {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(121, 136, 196, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.96) 0%, rgba(8, 12, 24, 0.94) 100%);
  box-shadow:
    0 20px 60px rgba(1, 7, 22, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-surface::before,
.app-surface-muted::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(68, 90, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(20, 196, 170, 0.07), transparent 18%);
  pointer-events: none;
}

.app-surface > *,
.app-surface-muted > * {
  position: relative;
  z-index: 1;
}

.app-surface-muted {
  background: rgba(10, 15, 28, 0.84);
}

.app-kicker {
  color: rgba(193, 204, 255, 0.54);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-headline {
  margin: 0.65rem 0 0;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.app-copy {
  margin: 0.85rem 0 0;
  color: rgba(221, 232, 255, 0.66);
  line-height: 1.7;
}

.app-tab-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(121, 136, 196, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(221, 232, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.app-tab-pill:hover,
.app-tab-pill.active {
  transform: translateY(-1px);
  color: #f8fbff;
  border-color: rgba(121, 136, 255, 0.28);
  background: rgba(66, 82, 255, 0.18);
}

.app-input,
.app-textarea,
.app-select {
  width: 100%;
  border: 1px solid rgba(121, 136, 196, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  padding: 0.85rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.app-input::placeholder,
.app-textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.app-input:focus,
.app-textarea:focus,
.app-select:focus {
  outline: none;
  border-color: rgba(121, 136, 255, 0.46);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.app-button-primary,
.app-button-secondary,
.app-button-success,
.app-button-warning,
.app-button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border-radius: 14px;
  padding: 0.8rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.app-button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #4453ff 0%, #6c48ff 100%);
  border: 1px solid rgba(123, 134, 255, 0.35);
  box-shadow: 0 18px 30px rgba(73, 78, 255, 0.22);
}

.app-button-primary:hover,
.app-button-success:hover,
.app-button-warning:hover,
.app-button-danger:hover {
  transform: translateY(-1px);
}

.app-button-secondary {
  color: #edf2ff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(121, 136, 196, 0.18);
}

.app-button-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(121, 136, 255, 0.28);
}

.app-button-success {
  color: #ffffff;
  background: linear-gradient(135deg, #15b981 0%, #0f9b72 100%);
  border: 1px solid rgba(22, 163, 127, 0.32);
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.18);
}

.app-button-warning {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.16);
}

.app-button-danger {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(239, 68, 68, 0.28);
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.14);
}

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.app-modal-card {
  width: 100%;
  border: 1px solid rgba(121, 136, 196, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.98) 0%, rgba(8, 12, 24, 0.96) 100%);
  box-shadow:
    0 24px 72px rgba(1, 7, 22, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: rgba(148, 163, 184, 0.82);
}

@media (min-width: 640px) {
  .app-page-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .app-page-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ---------- Landing Page ---------- */
.landing-body {
  position: relative;
  min-height: 100vh;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 8% 14%, rgba(74, 96, 255, 0.18), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(161, 90, 255, 0.16), transparent 22%),
    radial-gradient(circle at 72% 68%, rgba(15, 190, 170, 0.08), transparent 20%),
    linear-gradient(180deg, #040814 0%, #050b16 32%, #060b17 100%);
  color: #f8fafc;
}

.landing-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.landing-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.5;
}

.landing-glow-left {
  width: 26rem;
  height: 26rem;
  top: 4rem;
  left: -7rem;
  background: rgba(70, 103, 255, 0.28);
}

.landing-glow-right {
  width: 24rem;
  height: 24rem;
  top: 2rem;
  right: -6rem;
  background: rgba(173, 72, 255, 0.22);
}

.landing-grid-mask {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(66, 80, 134, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 80, 134, 0.09) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 85%);
  opacity: 0.3;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0 0;
}

.landing-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 14px 18px;
  border: 1px solid rgba(121, 136, 196, 0.18);
  border-radius: 24px;
  background: rgba(7, 11, 23, 0.82);
  backdrop-filter: blur(18px);
  box-shadow:
    0 20px 60px rgba(2, 6, 23, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 60, 0.35);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 200, 80, 0.55), transparent 34%),
    linear-gradient(135deg, rgba(220, 60, 30, 0.92), rgba(255, 100, 40, 0.5));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 0 22px rgba(255, 90, 30, 0.3);
}

.landing-brand-text {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

.landing-nav-link,
.landing-mobile-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.72rem 0.95rem;
  border-radius: 12px;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.landing-nav-link:hover,
.landing-mobile-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.landing-icon-btn,
.landing-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  height: 44px;
  padding: 0 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(121, 136, 196, 0.18);
  background: rgba(13, 18, 35, 0.88);
  color: rgba(255, 255, 255, 0.84);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.landing-icon-btn:hover,
.landing-lang-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 124, 255, 0.35);
  background: rgba(18, 24, 46, 0.95);
}

.landing-wallet-btn,
.landing-primary-btn,
.landing-secondary-btn,
.landing-balance-btn,
.landing-task-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 16px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.landing-wallet-btn,
.landing-primary-btn,
.landing-balance-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #4453ff 0%, #6c48ff 100%);
  box-shadow: 0 18px 30px rgba(73, 78, 255, 0.25);
}

.landing-wallet-btn {
  border: 1px solid rgba(123, 134, 255, 0.42);
  padding: 0 1.2rem;
  min-height: 46px;
  font-weight: 600;
}

.landing-wallet-btn:hover,
.landing-primary-btn:hover,
.landing-balance-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(72, 78, 255, 0.3);
}

.landing-secondary-btn,
.landing-balance-btn {
  color: #edf2ff;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(121, 136, 196, 0.22);
}

.landing-secondary-btn:hover,
.landing-balance-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(113, 127, 255, 0.4);
  background: rgba(75, 86, 255, 0.1);
}

.landing-task-action:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 136, 255, 0.42);
  background: linear-gradient(135deg, rgba(98, 79, 255, 0.98), rgba(122, 94, 255, 0.94));
}

.landing-mobile-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(121, 136, 196, 0.18);
  border-radius: 24px;
  background: rgba(7, 11, 23, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
}

.landing-navbar-dropdown {
  background: rgba(8, 12, 24, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(121, 136, 196, 0.18);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
}

.landing-main {
  position: relative;
  z-index: 1;
  padding: 2rem 0 5rem;
}

.landing-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(121, 136, 196, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, 0.96) 0%, rgba(8, 12, 24, 0.94) 100%);
  box-shadow:
    0 20px 60px rgba(1, 7, 22, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(68, 90, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(20, 196, 170, 0.07), transparent 18%);
  pointer-events: none;
}

.landing-panel > * {
  position: relative;
  z-index: 1;
}

.landing-hero-panel {
  padding: 2.3rem;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 196, 129, 0.24);
  background: rgba(13, 33, 25, 0.82);
  color: #b3f6ca;
  font-size: 0.92rem;
}

.landing-hero-title {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.landing-gradient-text {
  background: linear-gradient(135deg, #7f8bff 0%, #705bff 44%, #507dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-copy {
  max-width: 37rem;
  margin: 0;
  color: rgba(220, 230, 255, 0.74);
  font-size: 1.15rem;
  line-height: 1.75;
}

.landing-primary-btn,
.landing-secondary-btn {
  min-width: 10rem;
  padding: 0.5rem 1.25rem;
  flex-direction: column;
  align-items: center;
}

.landing-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(121, 136, 196, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(234, 241, 255, 0.82);
  font-size: 0.92rem;
}

.landing-network-stage {
  position: relative;
  min-height: 35rem;
  border-radius: 28px;
  border: 1px solid rgba(121, 136, 196, 0.16);
  background:
    radial-gradient(circle at 50% 40%, rgba(58, 79, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(9, 14, 28, 0.96), rgba(9, 12, 22, 0.86));
  overflow: hidden;
}

.landing-network-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 91, 142, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 91, 142, 0.14) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(680px) rotateX(72deg);
  transform-origin: center 65%;
  opacity: 0.38;
}

.landing-network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-line-base {
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.network-line-blue-base {
  stroke: rgba(94, 147, 255, 0.18);
}

.network-line-violet-base {
  stroke: rgba(184, 108, 255, 0.18);
}

.network-line-green-base {
  stroke: rgba(77, 241, 203, 0.18);
}

.network-line-gold-base {
  stroke: rgba(243, 204, 87, 0.18);
}

.network-line {
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 40 220;
  stroke-dashoffset: 0;
  animation: network-flow 2.5s linear infinite;
}

.network-line-blue {
  stroke: rgba(94, 147, 255, 0.95);
  filter: drop-shadow(0 0 8px rgba(94, 147, 255, 0.8)) drop-shadow(0 0 20px rgba(94, 147, 255, 0.5));
  color: rgba(94, 147, 255, 0.9);
}

.network-line-violet {
  stroke: rgba(184, 108, 255, 0.95);
  filter: drop-shadow(0 0 8px rgba(184, 108, 255, 0.8)) drop-shadow(0 0 20px rgba(184, 108, 255, 0.5));
  color: rgba(184, 108, 255, 0.92);
  animation-delay: -0.625s;
}

.network-line-green {
  stroke: rgba(77, 241, 203, 0.95);
  filter: drop-shadow(0 0 8px rgba(77, 241, 203, 0.8)) drop-shadow(0 0 20px rgba(77, 241, 203, 0.5));
  color: rgba(77, 241, 203, 0.9);
  animation-delay: -1.25s;
}

.network-line-gold {
  stroke: rgba(243, 204, 87, 0.95);
  filter: drop-shadow(0 0 8px rgba(243, 204, 87, 0.8)) drop-shadow(0 0 20px rgba(243, 204, 87, 0.5));
  color: rgba(243, 204, 87, 0.9);
  animation-delay: -1.875s;
}

@keyframes network-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -260;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-line {
    animation: none;
    stroke-dasharray: none;
  }
}

.network-node,
.network-task-core,
.landing-note {
  position: absolute;
}

.landing-note {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(132, 148, 207, 0.22);
  background: rgba(16, 22, 41, 0.88);
  box-shadow: 0 18px 36px rgba(2, 10, 30, 0.4);
}

.landing-note-top {
  top: 1.6rem;
  right: 8.4rem;
}

.landing-note-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(66, 86, 255, 0.16);
  color: #9bb4ff;
}

.landing-note-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}

.landing-note-copy {
  font-size: 0.82rem;
  color: rgba(229, 236, 255, 0.6);
}

.network-node {
  width: 7.5rem;
  text-align: center;
}

.network-avatar {
  position: relative;
  width: 4.5rem;
  height: 5.8rem;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px 999px 1.4rem 1.4rem;
  border: 1px solid rgba(151, 165, 255, 0.25);
  overflow: hidden;
}

.network-avatar::before {
  content: "";
  position: absolute;
  inset: auto 10px 8px;
  height: 16px;
  border-radius: 999px;
  background: currentColor;
  filter: blur(8px);
  opacity: 0.7;
}

.network-avatar::after {
  content: "";
  position: absolute;
  inset: auto -8px -12px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.55;
}

.network-avatar i {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
}

.network-avatar-blue {
  color: #67bcff;
  background: linear-gradient(180deg, rgba(80, 149, 255, 0.32), rgba(20, 46, 102, 0.2));
  box-shadow: 0 0 34px rgba(79, 145, 255, 0.24);
}

.network-avatar-violet {
  color: #c27dff;
  background: linear-gradient(180deg, rgba(173, 100, 255, 0.34), rgba(75, 31, 121, 0.22));
  box-shadow: 0 0 34px rgba(176, 91, 255, 0.26);
}

.network-avatar-green {
  color: #71f7d0;
  background: linear-gradient(180deg, rgba(74, 236, 182, 0.34), rgba(22, 98, 76, 0.22));
  box-shadow: 0 0 34px rgba(59, 218, 174, 0.24);
}

.network-avatar-gold {
  color: #f5d66c;
  background: linear-gradient(180deg, rgba(245, 198, 74, 0.34), rgba(121, 89, 23, 0.22));
  box-shadow: 0 0 34px rgba(245, 198, 74, 0.24);
}

.network-label {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #ffffff;
}

.network-subcopy {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: rgba(221, 232, 255, 0.64);
}

.network-subcopy-strong {
  color: #7fe3ff;
}

.network-subcopy-gold {
  color: #f3d66e;
}

.network-node-publisher {
  top: 2rem;
  left: 2rem;
}

.network-node-agent {
  top: 1.5rem;
  right: 2rem;
}

.network-node-execution {
  bottom: 1.5rem;
  left: 2rem;
}

.network-node-reward {
  right: 1.5rem;
  bottom: 2rem;
}

.network-task-core {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.network-task-prism {
  width: 5.6rem;
  height: 6rem;
  clip-path: polygon(50% 0%, 88% 22%, 88% 78%, 50% 100%, 12% 78%, 12% 22%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 137, 255, 0.3);
  background:
    radial-gradient(circle at 50% 30%, rgba(152, 171, 255, 0.45), transparent 30%),
    linear-gradient(180deg, rgba(77, 106, 255, 0.95), rgba(41, 62, 165, 0.78));
  box-shadow:
    0 0 42px rgba(79, 104, 255, 0.42),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
  color: #f8fbff;
  font-size: 1.5rem;
}

.network-task-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.landing-feature-ribbon,
.landing-stats-ribbon {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(121, 136, 196, 0.12);
  background: rgba(9, 13, 25, 0.84);
}

.landing-feature-ribbon {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.landing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
}

.landing-feature-icon,
.landing-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.landing-feature-title,
.landing-step-title,
.landing-market-title {
  color: #ffffff;
  font-weight: 700;
}

.landing-feature-copy,
.landing-step-copy {
  color: rgba(220, 230, 255, 0.62);
  font-size: 0.88rem;
}

.landing-feature-blue {
  color: #70a7ff;
  background: rgba(66, 102, 255, 0.16);
}

.landing-feature-violet {
  color: #b281ff;
  background: rgba(140, 89, 255, 0.16);
}

.landing-feature-green {
  color: #5ae7b6;
  background: rgba(32, 196, 133, 0.16);
}

.landing-feature-gold {
  color: #f3cf70;
  background: rgba(240, 180, 58, 0.16);
}

.landing-feature-pink {
  color: #ee7ddb;
  background: rgba(236, 88, 180, 0.14);
}

.landing-feature-emerald {
  color: #52e7a2;
  background: rgba(24, 182, 122, 0.16);
}

.landing-stats-ribbon {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(121, 136, 196, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.landing-stat-number {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.landing-stat-label {
  margin-top: 0.55rem;
  color: rgba(220, 230, 255, 0.6);
  font-size: 0.92rem;
}

.landing-stat-spark {
  width: 4.8rem;
  height: 2.5rem;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-stat-spark-violet {
  stroke: #8a63ff;
}

.landing-stat-spark-blue {
  stroke: #55a1ff;
}

.landing-stat-spark-green {
  stroke: #49e9ae;
}

.landing-stat-spark-mint {
  stroke: #57efcb;
}

.landing-process-section {
  margin-top: 2rem;
  padding: 2.1rem 1.25rem 0;
  border-top: 1px solid rgba(121, 136, 196, 0.12);
}

.landing-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.landing-section-kicker {
  color: rgba(193, 204, 255, 0.54);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-section-title {
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.landing-section-copy {
  margin: 0;
  color: rgba(221, 232, 255, 0.58);
  font-size: 1rem;
}

.landing-step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.landing-step-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 7.6rem;
  padding: 1.5rem 1.2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(121, 136, 196, 0.14);
  background: rgba(10, 15, 27, 0.82);
}

.landing-step-index {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 0.78rem;
  color: rgba(221, 232, 255, 0.62);
}

.landing-step-arrow {
  display: none;
  color: rgba(144, 160, 255, 0.56);
  justify-content: center;
  font-size: 1.2rem;
}

.landing-market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(320px, 0.92fr);
  gap: 1.5rem;
  margin-top: 1.7rem;
}

.landing-market-panel,
.landing-dashboard-panel {
  padding: 1.55rem;
}

.landing-market-head,
.landing-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.landing-market-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.landing-market-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.landing-market-tab {
  padding: 0.7rem 0.95rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(221, 232, 255, 0.55);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.landing-market-tab.is-active,
.landing-market-tab:hover {
  color: #7d87ff;
  background: rgba(66, 82, 255, 0.12);
}

.landing-task-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(121, 136, 196, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.landing-task-icon-box {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
}

.landing-task-icon-blue {
  background: linear-gradient(135deg, rgba(65, 96, 255, 0.92), rgba(75, 143, 255, 0.85));
}

.landing-task-icon-violet {
  background: linear-gradient(135deg, rgba(125, 78, 255, 0.92), rgba(92, 108, 255, 0.82));
}

.landing-task-icon-green {
  background: linear-gradient(135deg, rgba(39, 153, 140, 0.95), rgba(72, 214, 175, 0.82));
}

.landing-task-icon-slate {
  background: linear-gradient(135deg, rgba(56, 75, 122, 0.95), rgba(89, 111, 160, 0.82));
}

.landing-task-title {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.landing-task-title:hover {
  color: #8ca0ff;
}

.landing-task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.landing-tag {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(224, 232, 255, 0.68);
  font-size: 0.78rem;
}

.landing-task-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  color: rgba(195, 209, 244, 0.52);
  font-size: 0.82rem;
}

.landing-task-reward {
  min-width: 8rem;
  text-align: right;
}

.landing-task-reward-main {
  color: #54f0ab;
  font-size: 1.4rem;
  font-weight: 700;
}

.landing-task-reward-sub {
  margin-top: 0.2rem;
  color: rgba(221, 232, 255, 0.6);
  font-size: 0.88rem;
}

.landing-task-proposal {
  min-width: 5rem;
  color: rgba(221, 232, 255, 0.72);
  font-size: 0.96rem;
  text-align: center;
}

.landing-task-action {
  min-width: 6.7rem;
  padding: 0.85rem 1rem;
  color: #f2f5ff;
  background: linear-gradient(135deg, rgba(85, 66, 255, 0.92), rgba(108, 79, 255, 0.88));
  border: 1px solid rgba(121, 136, 255, 0.24);
  font-weight: 600;
}

.landing-dashboard-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(121, 136, 196, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(234, 241, 255, 0.74);
  font-size: 0.92rem;
}

.landing-dashboard-balance,
.landing-dashboard-list {
  padding: 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(121, 136, 196, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.landing-dashboard-list {
  margin-top: 1rem;
}

.landing-balance-main {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.landing-balance-sub {
  margin-top: 0.55rem;
  color: rgba(221, 232, 255, 0.56);
  font-size: 0.95rem;
}

.landing-dashboard-wave {
  width: 100%;
  height: 72px;
  margin-top: 1rem;
  fill: none;
  stroke: #58eebc;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-balance-btn {
  min-height: 44px;
  border: 1px solid rgba(121, 136, 196, 0.2);
  color: #eef3ff;
  font-weight: 600;
}

.landing-dashboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.landing-dashboard-item-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(221, 232, 255, 0.74);
}

.landing-dashboard-item-value {
  color: #ffffff;
  font-weight: 700;
}

.landing-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.landing-dot-blue {
  background: #5e92ff;
}

.landing-dot-gold {
  background: #f5c84a;
}

.landing-dot-green {
  background: #4de1b3;
}

.landing-dot-slate {
  background: #6e7d9d;
}

.landing-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #7b85ff;
  text-decoration: none;
  font-weight: 600;
}

.landing-trusted-section {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(121, 136, 196, 0.12);
}

.landing-trusted-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.landing-trusted-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.4rem;
  border-radius: 22px;
  border: 1px solid rgba(121, 136, 196, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(221, 232, 255, 0.38);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

@media (min-width: 1100px) {
  .landing-step-row {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  }

  .landing-step-arrow {
    display: flex;
  }
}

@media (max-width: 1279px) {
  .landing-feature-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-stats-ribbon,
  .landing-trusted-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-market-grid {
    grid-template-columns: 1fr;
  }

  .landing-task-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .landing-task-reward,
  .landing-task-proposal,
  .landing-task-action {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .landing-task-action {
    margin-top: 0.25rem;
  }
}

@media (max-width: 1023px) {
  .landing-hero-panel {
    padding: 1.35rem;
  }

  .landing-network-stage {
    min-height: 29rem;
  }

  .landing-note-top {
    right: 1rem;
    top: 1rem;
  }

  .network-node-publisher {
    top: 4rem;
    left: 0.8rem;
  }

  .network-node-agent {
    top: 3rem;
    right: 0.8rem;
  }

  .network-node-execution {
    bottom: 1.2rem;
    left: 0.8rem;
  }

  .network-node-reward {
    right: 0.6rem;
    bottom: 1.5rem;
  }

  .landing-step-row,
  .landing-feature-ribbon,
  .landing-stats-ribbon,
  .landing-trusted-row {
    grid-template-columns: 1fr;
  }

  .landing-stat-card,
  .landing-feature-item {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .landing-header {
    padding-top: 12px;
  }

  .landing-nav-shell {
    padding: 12px 14px;
  }

  .landing-brand-text {
    font-size: 1.42rem;
  }

  .landing-main {
    padding-top: 1.35rem;
  }

  .landing-hero-title {
    font-size: 2.7rem;
  }

  .landing-hero-copy {
    font-size: 1rem;
  }

  .landing-primary-btn,
  .landing-secondary-btn {
    width: 100%;
  }

  .landing-network-stage {
    min-height: 26rem;
  }

  .landing-note-top {
    display: none;
  }

  .network-node {
    width: 6.5rem;
  }

  .network-avatar {
    width: 4rem;
    height: 5.2rem;
  }

  .network-label,
  .network-task-title {
    font-size: 1.1rem;
  }

  .network-task-prism {
    width: 5rem;
    height: 5.4rem;
  }

  .network-node-publisher {
    top: 2.5rem;
    left: 0.5rem;
  }

  .network-node-agent {
    top: 2rem;
    right: 0.3rem;
  }

  .network-node-execution {
    left: 0.5rem;
    bottom: 0.8rem;
  }

  .network-node-reward {
    right: 0.2rem;
    bottom: 0.8rem;
  }

  .network-task-core {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .landing-market-head,
  .landing-dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-market-tabs {
    flex-wrap: wrap;
  }

  .landing-trusted-logo {
    font-size: 1.2rem;
  }
}
