/* =========================================================
   GLIARD PROTOCOL - LUXURY EDITORIAL DESIGN SYSTEM
   Visual aesthetics from Gliard Core:
   - Ambient Silk Canvas & Fading Grid Overlay
   - Geist & Geist Mono Typography
   - Soft Luminous Glass Cards & Crisp Monolithic Accents
   ========================================================= */

:root {
  --bg-base: #f5f6f8;
  --accent: #09090b;
  --accent-muted: #27272a;
  --text-main: #09090b;
  --text-muted: #52525b;
  --text-dim: #71717a;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.04);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  background-image: url('/bg-light.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Fluid WebGL Background Canvas */
.fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fluid-canvas.active {
  opacity: 1;
}

/* Fading Grid Background Overlay */
.fading-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-size: 54px 54px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 95% 70% at 50% 35%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 95% 70% at 50% 35%, black 20%, transparent 85%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar, .top-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease, -webkit-backdrop-filter 0.25s ease;
}

.navbar.scrolled, .top-nav.scrolled {
  background: rgba(245, 246, 248, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  user-select: none;
}

.nav-logo, .brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0);
}

.nav-brand, .brand-name {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  text-transform: lowercase;
  color: #09090b;
}

.nav-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #71717a;
  letter-spacing: 0.02em;
  margin-left: 6px;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.nav-links, .nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item, .nav-links a {
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -0.2px;
  text-transform: lowercase;
  color: #71717a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item:hover, .nav-links a:hover {
  color: #09090b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: 'Geist', sans-serif;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
}

.btn-primary {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
}

.btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #09090b;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* =========================================================
   HERO TWO-COLUMN EDITORIAL ARCHITECTURE (GLIARD ORIGINAL)
   ========================================================= */

.main-canvas {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 48px 48px 48px;
  display: flex;
  flex-direction: column;
}

.hero-editorial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-top: 24px;
  margin-bottom: 40px;
}

/* Left Column: Giant Typography Stack */
.hero-col-left {
  flex: 1.15;
  min-width: 320px;
  display: flex;
  flex-direction: column;
}

.giant-typography-box {
  position: relative;
  display: inline-block;
  user-select: none;
  margin-top: 6px;
}

.giant-typography-ghost {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Geist', sans-serif;
  font-size: clamp(52px, 6.8vw, 104px);
  font-weight: 350;
  line-height: 0.84;
  letter-spacing: -0.045em;
  pointer-events: none;
  z-index: 1;
}

.ghost-line-1 {
  display: block;
  color: #09090b;
  filter: blur(14px);
  -webkit-filter: blur(14px);
  opacity: 0.28;
}

.ghost-line-2 {
  display: block;
  margin-top: -0.20em;
  padding-bottom: 0.15em;
  color: #09090b;
  filter: blur(16px);
  -webkit-filter: blur(16px);
  opacity: 0.22;
}

.giant-typography {
  position: relative;
  z-index: 2;
  font-family: 'Geist', sans-serif;
  font-size: clamp(52px, 6.8vw, 104px);
  font-weight: 350;
  line-height: 0.84;
  letter-spacing: -0.045em;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.giant-line-1 {
  position: relative;
  z-index: 1;
  display: block;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.72) 0%, rgba(9, 9, 11, 0.38) 45%, rgba(9, 9, 11, 0.05) 85%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.giant-line-2 {
  position: relative;
  z-index: 3;
  display: block;
  margin-top: -0.20em;
  padding-bottom: 0.15em;
  color: #09090b;
}

.hero-narrative {
  font-family: 'Geist', sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  color: #27272a;
  letter-spacing: -0.2px;
  margin-top: 30px;
  max-width: 580px;
}

/* Right Column: Interactive Discord Card Mockup */
.hero-col-right {
  flex: 1;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-demo-card {
  width: 100%;
  margin: 0;
  background: #09090b;
  border: 1px solid #18181b;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.18);
  color: #f4f4f5;
}

/* Editorial Footer Coordinates */
.hero-footer-coords {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 40px;
  margin-bottom: 32px;
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  color: #71717a;
  letter-spacing: -0.2px;
  text-transform: lowercase;
}

.footer-coord-left {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  justify-self: start;
}

.footer-coord-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.footer-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #09090b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.footer-arrow-btn:hover {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.footer-coord-right {
  text-align: right;
  justify-self: end;
}

/* Trust Badges */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-val {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #09090b;
  letter-spacing: -0.02em;
}

.trust-lbl {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: #71717a;
  letter-spacing: 0.02em;
}

/* Demo Card Components */
.demo-card {
  max-width: 700px;
  margin: 0 auto;
  background: #09090b;
  border: 1px solid #18181b;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.16);
  color: #f4f4f5;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.demo-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.demo-bot-name {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.demo-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.demo-timestamp {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #71717a;
}

.discord-embed {
  border-left: 3px solid #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 18px 20px;
}

.embed-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.embed-title {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.embed-desc {
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  color: #d4d4d8;
  line-height: 1.5;
}

.embed-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.embed-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.field-name {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.04em;
}

.field-value {
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
}

.embed-actions {
  margin-top: 6px;
}

.embed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #09090b;
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #ffffff;
}

.embed-btn:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

/* Editorial Sections */
.section {
  position: relative;
  z-index: 5;
  padding: 88px 0;
}

.section.border-top {
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 14px;
  display: inline-block;
}

.section-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  letter-spacing: -0.035em;
  color: #09090b;
  line-height: 1.15;
}

.section-desc {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  color: #52525b;
  margin-top: 10px;
  font-weight: 350;
}

/* Features Grid (01 - 06) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
  letter-spacing: 0.04em;
}

.feature-name {
  font-family: 'Geist', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #09090b;
}

.feature-text {
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #52525b;
}

.feature-text code {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: #09090b;
}

/* Supported Networks Grid */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.network-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.network-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.net-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.net-name {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #09090b;
}

.net-type {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  color: #71717a;
}

.net-tokens {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #09090b;
}

.net-wallets {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  color: #71717a;
  line-height: 1.4;
}

/* Commands Reference */
.commands-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cmd-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cmd-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.cmd-code {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #09090b;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

.cmd-content h4 {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #09090b;
  margin-bottom: 4px;
}

.cmd-content p {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: #52525b;
  line-height: 1.5;
}

.cmd-content code {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
  color: #09090b;
}

/* Security Standards Section */
.security-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

.security-desc {
  font-family: 'Geist', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: #52525b;
  max-width: 860px;
  margin-bottom: 36px;
}

.security-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.sec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sec-item strong {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #09090b;
}

.sec-item span {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: #52525b;
  line-height: 1.5;
}

/* CTA Banner */
.cta-section {
  position: relative;
  z-index: 5;
  padding: 40px 0 80px 0;
}

.cta-card {
  background: #09090b;
  color: #f4f4f5;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.15);
}

.cta-card h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
  max-width: 560px;
}

.cta-card p {
  font-family: 'Geist', sans-serif;
  font-size: 14.5px;
  color: #a1a1aa;
  margin-top: 8px;
}

.cta-card .btn-primary {
  background: #ffffff;
  color: #09090b;
  border: 1px solid #ffffff;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.cta-card .btn-primary:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

/* Site Footer */
.footer {
  position: relative;
  z-index: 5;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 36px 0 48px 0;
  font-family: 'Geist', sans-serif;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: #71717a;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: #71717a;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #09090b;
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .main-canvas { padding: 24px 20px; }
  .nav-container { padding: 16px 20px; }
  .hero-editorial-row { flex-direction: column; gap: 36px; }
  .hero-col-right { max-width: 100%; }
  .hero-footer-coords { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .footer-coord-left, .footer-coord-right { justify-self: center; text-align: center; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .networks-grid { grid-template-columns: 1fr 1fr; }
  .commands-list { grid-template-columns: 1fr; }
  .security-points { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .embed-fields { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}

