/* ==========================================================================
   LISC.WORLD — SACRED GEOMETRY & CYBER-CONSCIOUSNESS DESIGN SYSTEM
   Код 3-5-8 · Цветок Жизни · Золотое Сечение · Премиальный Нео-Ренессанс
   ========================================================================== */

:root {
  --bg-void: #010709;
  --bg-deep: #030e12;
  --bg-surface: #06181f;
  --bg-card: rgba(6, 26, 34, 0.68);
  --bg-card-hover: rgba(8, 36, 48, 0.82);
  --bg-glass: rgba(4, 20, 27, 0.75);

  --gold-sacred: #D4AF37;
  --gold-bright: #F7D488;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-line: rgba(212, 175, 55, 0.28);

  --emerald-life: #00F0A8;
  --emerald-vibrant: #10ffb5;
  --emerald-glow: rgba(0, 240, 168, 0.35);
  --emerald-line: rgba(0, 240, 168, 0.22);

  --teal-deep: #004b5c;
  --teal-light: #00a8c6;
  --cyan-cosmic: #00e5ff;

  --text-pure: #FFFFFF;
  --text-primary: #E9F4F2;
  --text-muted: #8AA4A0;
  --text-dim: #55726D;
  --border-subtle: rgba(0, 240, 168, 0.14);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sacred: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.12);
  --shadow-glow: 0 0 30px rgba(0, 240, 168, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* SACRED GEOMETRY CANVAS BACKGROUND */
#sacredCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.cosmic-nebula {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 75, 92, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 240, 168, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* TYPOGRAPHY — КОД 3-5-8 */
.triad-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-pure);
  text-transform: uppercase;
}

.triad-title em {
  font-style: italic;
  color: var(--gold-sacred);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.vector-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--emerald-life);
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  margin: 12px 0 24px;
}

.octave-text {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 820px;
}

/* HEADER & NAVIGATION */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(1, 7, 9, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-emblem {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.sacred-glyph {
  font-size: 30px;
  color: var(--gold-sacred);
  text-shadow: 0 0 16px var(--gold-glow);
  line-height: 1;
  animation: glyphSpin 40s linear infinite;
}

@keyframes glyphSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.brand-naming {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
}

.brand-title span {
  color: var(--emerald-life);
}

.brand-code {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-sacred);
  box-shadow: 0 0 10px var(--gold-sacred);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.btn-cabinet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0, 240, 168, 0.15));
  border: 1px solid var(--gold-line);
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.btn-cabinet-link:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(0, 240, 168, 0.3));
  border-color: var(--gold-sacred);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero-sacred {
  position: relative;
  z-index: 2;
  padding: 80px 24px 60px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.sacred-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-line);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.pulse-point {
  width: 8px;
  height: 8px;
  background: var(--emerald-life);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-life);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* 4 ACTION BUTTONS — EMOTIONAL IMPULSE */
.action-grid-quad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 44px 0 56px;
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЕ КНОПКИ ДЕЙСТВИЙ: APPLE iOS 18 LIQUID GLASS & IRIDESCENT SHIMMER
   ========================================================================== */
.btn-action {
  position: relative;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  user-select: none;
}

/* Перламутровый перелив жидкого стекла */
.btn-action::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 255, 255, 0) 0deg,
    rgba(212, 175, 55, 0.35) 60deg,
    rgba(0, 240, 168, 0.35) 120deg,
    rgba(0, 229, 255, 0.35) 180deg,
    rgba(244, 114, 182, 0.35) 240deg,
    rgba(212, 175, 55, 0.35) 300deg,
    rgba(255, 255, 255, 0) 360deg
  );
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.5s ease, transform 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

/* Верхний зеркальный блик стекла iOS */
.btn-action::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 999px 999px 20px 20px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.btn-action:hover::before {
  opacity: 1;
  transform: rotate(180deg);
}

.btn-action:hover::after {
  opacity: 0.9;
}

.btn-action > * {
  position: relative;
  z-index: 3;
}

.btn-action .action-title {
  font-size: 15.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.btn-action .action-hint {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 400;
}

/* 1. Жидкое Сакральное Золото */
.btn-buy-tokens {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(153, 120, 24, 0.85));
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  color: #010709;
  border: 1px solid rgba(247, 212, 136, 0.6);
  box-shadow:
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1.5px 1px 0 rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(212, 175, 55, 0.35);
}

.btn-buy-tokens:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #FFF;
  box-shadow:
    inset 0 1.5px 1px 0 #FFF,
    0 14px 36px rgba(212, 175, 55, 0.55),
    0 0 24px rgba(247, 212, 136, 0.6);
  color: #000;
}

/* 2. Жидкий Океанический Циан */
.btn-apply-house {
  background: linear-gradient(135deg, rgba(0, 168, 198, 0.85), rgba(0, 75, 92, 0.75));
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  color: #fff;
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow:
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 24px rgba(0, 168, 198, 0.3);
}

.btn-apply-house:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, rgba(0, 201, 255, 0.95), rgba(0, 122, 148, 0.85));
  border-color: #00E5FF;
  box-shadow:
    inset 0 1.5px 1px 0 #FFF,
    0 14px 36px rgba(0, 229, 255, 0.5),
    0 0 24px rgba(0, 229, 255, 0.4);
}

/* 3. Живой Изумрудный Неон */
.btn-donate {
  background: linear-gradient(135deg, rgba(0, 240, 168, 0.22), rgba(0, 75, 92, 0.45));
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  color: var(--emerald-vibrant);
  border: 1px solid rgba(0, 240, 168, 0.4);
  box-shadow:
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 240, 168, 0.2);
}

.btn-donate:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, rgba(0, 240, 168, 0.4), rgba(0, 100, 120, 0.6));
  border-color: var(--emerald-vibrant);
  color: #fff;
  box-shadow:
    inset 0 1.5px 1px 0 #FFF,
    0 14px 36px rgba(0, 240, 168, 0.45),
    0 0 24px rgba(0, 240, 168, 0.5);
}

/* 4. Космическое Стекло Сообщества */
.btn-community {
  background: linear-gradient(135deg, rgba(6, 26, 34, 0.8), rgba(12, 45, 58, 0.65));
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-community:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, rgba(14, 52, 68, 0.95), rgba(20, 70, 90, 0.8));
  border-color: var(--gold-sacred);
  color: var(--gold-bright);
  box-shadow:
    inset 0 1.5px 1px 0 #FFF,
    0 14px 36px rgba(212, 175, 55, 0.3),
    0 0 20px rgba(212, 175, 55, 0.35);
}

/* LIVE METRICS BAR */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-sacred);
}

.metric-node {
  text-align: left;
  border-left: 2px solid var(--emerald-line);
  padding-left: 16px;
}

.metric-node.gold-border {
  border-left-color: var(--gold-sacred);
}

.metric-node .caption {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-node .figure {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 4px 0;
}

.metric-node .note {
  font-size: 12px;
  color: var(--emerald-life);
}

/* SECTION STRUCTURE */
.content-section {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 24px;
}

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

/* CARDS & GLASS PANELS */
.sacred-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}

.sacred-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--emerald-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(-3px);
}

.gold-glow-card {
  border-color: var(--gold-line);
}

.gold-glow-card:hover {
  border-color: var(--gold-sacred);
  box-shadow: var(--shadow-sacred);
}

/* VISUAL SHOWCASE (ORIGINAL RENDERS) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #020b0e;
  group: hover;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 20px;
  background: rgba(3, 14, 18, 0.92);
  border-top: 1px solid var(--border-subtle);
}

.gallery-caption h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.gallery-caption p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SACRED 3-5-8 CODE BREAKDOWN */
.code-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

@media (max-width: 880px) {
  .code-triad-grid {
    grid-template-columns: 1fr;
  }
}

.code-box {
  padding: 36px 28px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(6, 26, 34, 0.55);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.code-num {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  color: var(--gold-sacred);
  margin-bottom: 12px;
}

.code-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 12px;
}

.code-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* INTERACTIVE CANVAS CHART */
.chart-card-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 40px;
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.growth-canvas-container {
  width: 100%;
  height: 360px;
  position: relative;
  background: rgba(2, 8, 10, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 240, 168, 0.12);
  overflow: hidden;
}

#growthCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ROADMAP PHASES */
.phases-timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
}

.phase-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  align-items: center;
}

@media (max-width: 700px) {
  .phase-row {
    grid-template-columns: 1fr;
  }
}

.phase-tag {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--gold-sacred);
  font-weight: 400;
  border-right: 1px solid var(--border-subtle);
  padding-right: 20px;
}

.phase-body h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.phase-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* MODAL OVERLAYS (BUY / APPLY / DONATE) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 7, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-sacred);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

/* FOOTER */
.site-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  background: rgba(1, 7, 9, 0.95);
  padding: 60px 24px 40px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-manifest-links {
  display: flex;
  gap: 20px;
}

.footer-manifest-links a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-manifest-links a:hover {
  color: #fff;
}
