/* ==========================================================================
   OBELIX - Components Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 168, 89, 0.15);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: drop-shadow(0 0 8px rgba(0, 168, 89, 0.3));
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0F172A;
}

.brand-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  display: block;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 991px) {
  .hamburger { display: block; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 2rem;
    gap: 1.75rem;
    transition: left var(--transition-normal);
    border-right: 1px solid var(--border-color);
  }
  .nav-menu.active {
    left: 0;
  }
}

/* --------------------------------------------------------------------------
   2. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);

  span {
    color: var(--text-muted);
    font-size: 0.72rem;
    display: block;
  }
}

.pill-badge svg,
.pill-badge i {
  color: var(--accent-primary);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Hero Visual & Interactive Obelisk Centerpiece */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.obelisk-platform {
  position: relative;
  width: 320px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glowing-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 255, 135, 0.3);
  animation: rotate-ring 30s linear infinite;
}

.glowing-ring-inner {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: inset 0 0 25px rgba(0, 255, 135, 0.15);
  animation: rotate-ring-reverse 20s linear infinite;
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-ring-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.central-obelisk-img {
  width: 220px;
  height: 220px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 35px rgba(0, 255, 135, 0.6));
  animation: float-obelisk 4s ease-in-out infinite alternate;
}

@keyframes float-obelisk {
  0% { transform: translateY(-8px); }
  100% { transform: translateY(12px); }
}

.node-chip {
  position: absolute;
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: all var(--transition-fast);
  z-index: 3;
}

.node-chip:hover {
  background: rgba(0, 168, 89, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 168, 89, 0.25);
}

.node-wallets { top: 5%; left: 0%; }
.node-defi { top: 5%; right: 0%; }
.node-contracts { top: 35%; left: -10%; }
.node-daos { top: 35%; right: -10%; }
.node-tokens { top: 65%; left: 0%; }
.node-crosschain { top: 65%; right: 0%; }
.node-nfts { bottom: 0%; left: 30%; }

@media (max-width: 600px) {
  .node-contracts { left: 0%; }
  .node-daos { right: 0%; }
}

/* --------------------------------------------------------------------------
   3. HOW OBELIX WORKS (Interactive Step Pipeline 01-06)
   -------------------------------------------------------------------------- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  position: relative;
  margin-top: 2rem;
}

.pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.pipeline-card::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.2rem;
  opacity: 0.5;
  z-index: 2;
}

.pipeline-grid .pipeline-card:last-child::after {
  display: none;
}

@media (max-width: 768px) {
  .pipeline-card::after { display: none; }
}

.pipeline-card.active,
.pipeline-card:hover {
  background: rgba(0, 255, 135, 0.06);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 25px rgba(0, 255, 135, 0.2);
  transform: translateY(-5px);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.pipeline-card.active .step-num {
  background: var(--accent-primary);
  color: #041009;
  box-shadow: 0 0 15px var(--accent-primary);
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(13, 22, 27, 0.9);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  font-size: 1.4rem;
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.15);
  transition: all var(--transition-fast);
}

.pipeline-card:hover .step-icon,
.pipeline-card.active .step-icon {
  border-color: var(--accent-primary);
  background: rgba(0, 255, 135, 0.1);
  box-shadow: 0 0 25px rgba(0, 255, 135, 0.4);
  transform: scale(1.08);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Active Step Details Panel */
.pipeline-detail-box {
  margin-top: 2rem;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .pipeline-detail-box {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   4. WHAT OBELIX TRACKS & KEY BENEFITS CARDS
   -------------------------------------------------------------------------- */
.track-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.track-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.track-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Robot AI Avatar Callout */
.robot-hero-banner {
  background: linear-gradient(135deg, rgba(13, 24, 28, 0.9) 0%, rgba(6, 12, 14, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .robot-hero-banner {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.robot-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.robot-avatar {
  width: 240px;
  height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(0, 255, 135, 0.4));
  animation: float-obelisk 5s ease-in-out infinite alternate;
}

/* --------------------------------------------------------------------------
   5. LIVE EXPLORER CONSOLE (explorer.html)
   -------------------------------------------------------------------------- */
.explorer-header-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 135, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-value {
  font-family: var(--font-code);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Search Bar */
.search-box {
  position: relative;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1rem 3.2rem;
  color: var(--text-main);
  font-family: var(--font-code);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.2);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Live Event Table / Stream */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(0, 255, 135, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.live-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.live-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.live-table th {
  background: #F1F5F9;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.live-table tr:hover {
  background: rgba(0, 255, 135, 0.04);
}

.tx-hash {
  color: var(--accent-cyan);
  text-decoration: none;
}

.tx-hash:hover {
  text-decoration: underline;
}

.tag-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.tag-normal { background: rgba(0, 255, 135, 0.1); color: var(--accent-primary); border: 1px solid rgba(0, 255, 135, 0.3); }
.tag-warning { background: rgba(255, 193, 7, 0.12); color: #FFC107; border: 1px solid rgba(255, 193, 7, 0.3); }
.tag-danger { background: rgba(255, 77, 77, 0.12); color: #FF4D4D; border: 1px solid rgba(255, 77, 77, 0.3); }

/* --------------------------------------------------------------------------
   6. AI TERMINAL & COMMAND CONSOLE (agent.html)
   -------------------------------------------------------------------------- */
.terminal-window {
  background: #05080A;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 135, 0.1);
  overflow: hidden;
}

.terminal-header {
  background: #0B1116;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: #94A3B8;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.9rem;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  color: #D4D4D4;
}

.terminal-line {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.terminal-prompt {
  color: var(--accent-primary);
  font-weight: 700;

  margin-right: 0.5rem;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-code);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.prompt-chip {
  background: rgba(0, 255, 135, 0.06);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-code);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prompt-chip:hover {
  background: var(--accent-primary);
  color: #041009;
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #04070A;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--accent-primary);
  color: #041009;
  transform: translateY(-3px);
}
