/* AGENTZON — Global Styles */
:root {
  /* Brand palette: neon crypto-Amazon. Amazon orange #FF9900 on warm near-black,
     with a glowing smile-arrow accent. Legacy token names (--amber/--cyan/--purple)
     are kept for compatibility but repointed to the orange-forward system. */

  /* warm near-black surfaces, faint amber undertone keeps the orange vivid */
  --bg-primary: #0B0A08;
  --bg-secondary: #100E0B;
  --bg-card: #17140F;
  --bg-card-hover: #1E1A14;

  /* primary signal = Amazon orange */
  --amber: #FF9900;
  --amber-dim: rgba(255, 153, 0, 0.13);
  /* secondary = warm gold (gradient partner) */
  --cyan: #FFC24D;
  --cyan-dim: rgba(255, 194, 77, 0.13);
  /* tertiary = deep ember (ambient glow only) */
  --purple: #FF6A2A;
  --purple-dim: rgba(255, 106, 42, 0.12);
  /* semantic red = burn / destructive / error */
  --red: #FF4D4D;
  /* success / live indicator = clean green (distinct from brand orange) */
  --green: #2ED573;
  /* brighter orange for hovers / glows */
  --brand-bright: #FFB020;

  --text-primary: #F2EEE7;
  --text-secondary: #9A9187;
  --text-dim: #625A50;
  --border: #241F17;
  --border-hover: #362E22;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 10, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
}
.nav-logo-img { width: 32px; height: 32px; border-radius: 8px; }
.nav-logo-text { font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); margin: 5px 0;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all 0.2s;
  border: none; gap: 8px;
}
.btn-primary {
  background: var(--amber); color: #000;
}
.btn-primary:hover { background: var(--brand-bright); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-nav { padding: 8px 18px; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--amber-dim) 0%, transparent 70%),
              radial-gradient(ellipse 40% 30% at 70% 60%, var(--cyan-dim) 0%, transparent 60%),
              radial-gradient(ellipse 30% 40% at 30% 70%, var(--purple-dim) 0%, transparent 60%);
}
.hex-grid {
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='0.5' y='0.5' width='55' height='55' fill='none' stroke='%23FF9900' stroke-width='0.5'/%3E%3Cpath d='M0 18H56M0 38H56' stroke='%23FF9900' stroke-width='0.35'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px; color: var(--green);
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--amber), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
  display: block; font-size: 28px; font-weight: 800;
  font-family: var(--mono); color: var(--amber);
}
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* LIVE FEED */
.live-feed {
  overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.feed-track {
  display: flex; gap: 24px; animation: scroll 40s linear infinite;
  white-space: nowrap;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.feed-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.feed-item .feed-emoji { font-size: 16px; }
.feed-item .feed-amount { color: var(--amber); font-weight: 600; font-family: var(--mono); }

/* LIVE ON DEVNET */
#live-network { text-align: center; }
.live-badge-wrap { text-align: center; }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; margin-bottom: 16px;
  background: var(--amber-dim); border: 1px solid var(--amber);
  border-radius: 100px; font-size: 13px; color: var(--amber); font-weight: 600;
}
.live-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin: 8px 0 28px; }
.live-programs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.prog-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; text-decoration: none; color: var(--text-secondary);
  font-size: 13px; transition: border-color 0.2s;
}
.prog-pill code { color: var(--amber); font-family: var(--mono); }
.prog-pill:hover { border-color: var(--amber); }
.live-actions { margin-bottom: 44px; }
#liveConnect.connected { background: var(--green); color: #000; }
.live-listings-title { font-size: 20px; margin-bottom: 24px; }
.live-empty { grid-column: 1 / -1; text-align: center; color: var(--text-secondary); padding: 24px; line-height: 1.7; }
#liveGrid { text-align: left; }
.agent-panel {
  max-width: 720px; margin: 0 auto 44px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; text-align: left;
}
.agent-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.agent-form h4 { font-size: 14px; margin-bottom: 12px; color: var(--text-primary); }
.agent-form input, .agent-form select {
  width: 100%; margin-bottom: 10px; padding: 10px 12px;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font); font-size: 14px;
}
.agent-form input:focus, .agent-form select:focus { outline: none; border-color: var(--amber); }
.agent-form .btn { width: 100%; }
.agent-note { font-size: 12px; color: var(--text-dim); margin: 18px 0 0; line-height: 1.6; }
.agent-note a { color: var(--amber); }
.tx-result { margin-top: 14px; font-size: 13px; min-height: 18px; }
.tx-result.ok { color: var(--green); }
.tx-result.err { color: var(--red); }
.tx-result a { color: var(--amber); }
.live-exp-link { display: block; text-align: center; margin-top: 8px; font-size: 11px; color: var(--text-dim); text-decoration: none; }
.live-exp-link:hover { color: var(--amber); }
@media (max-width: 768px) { .agent-forms { grid-template-columns: 1fr; } }

/* SECTIONS */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; text-align: center; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--text-secondary);
  font-size: 16px; max-width: 500px; margin: 0 auto 48px;
}

/* HOW IT WORKS */
.flow-grid {
  display: flex; align-items: stretch; gap: 0;
  justify-content: center; flex-wrap: wrap;
}
.flow-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  flex: 1; min-width: 260px; max-width: 320px;
  position: relative; transition: all 0.3s;
}
.flow-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.flow-icon { font-size: 36px; margin-bottom: 16px; }
.flow-step {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-dim); font-weight: 600;
}
.flow-card h3 { font-size: 18px; margin-bottom: 8px; }
.flow-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.flow-arrow {
  display: flex; align-items: center; font-size: 24px;
  color: var(--amber); padding: 0 12px;
}

/* MARKETPLACE */
.marketplace-filters {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--amber); color: var(--amber);
  background: var(--amber-dim);
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all 0.3s;
}
.skill-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.skill-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px;
}
.skill-agent { display: flex; align-items: center; gap: 10px; }
.agent-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.agent-name { display: block; font-size: 13px; font-weight: 600; }
.agent-rep { font-size: 11px; color: var(--amber); }
.skill-price {
  font-size: 18px; font-weight: 800; color: var(--amber);
  font-family: var(--mono);
}
.skill-price small { font-size: 11px; color: var(--text-dim); font-weight: 400; }
.skill-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.skill-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.skill-meta {
  display: flex; gap: 14px; font-size: 12px;
  color: var(--text-dim); margin-bottom: 16px;
}
.btn-execute { width: 100%; }

/* TRANSACTION TERMINAL */
.tx-terminal {
  background: #0D0B08; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  max-width: 800px; margin: 0 auto;
}
.tx-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #14110C;
  border-bottom: 1px solid var(--border);
}
.tx-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.tx-dot.red { background: #FF5F57; }
.tx-dot.yellow { background: #FFBD2E; }
.tx-dot.green { background: #28C840; }
.tx-title { font-size: 12px; color: var(--text-dim); margin-left: 8px; font-family: var(--mono); }
.tx-body {
  padding: 16px; font-family: var(--mono); font-size: 13px;
  min-height: 280px; max-height: 340px; overflow-y: auto;
  line-height: 1.8;
}
.tx-line { opacity: 0; animation: fadeIn 0.3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.tx-time { color: var(--text-dim); }
.tx-agent { color: var(--cyan); }
.tx-skill { color: var(--text-primary); }
.tx-amount { color: var(--amber); font-weight: 600; }
.tx-burn { color: var(--red); }
.tx-success { color: var(--green); }

/* TOKENOMICS */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.token-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.3s;
}
.token-card:hover { border-color: var(--amber); }
.token-icon { font-size: 32px; margin-bottom: 12px; }
.token-card h3 { font-size: 18px; margin-bottom: 8px; }
.token-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.token-info {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  max-width: 600px; margin: 0 auto 48px;
}
.token-info-row {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.token-info-row:last-child { border-bottom: none; }
.token-label { color: var(--text-secondary); font-size: 14px; }
.token-value { font-weight: 600; font-size: 14px; }
.token-value.mono { font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.highlight-red { color: var(--green); }

/* CONTRACT ADDRESS — COPY TO CLIPBOARD */
.ca-row {
  cursor: pointer;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  border: 1px solid var(--amber) !important;
  background: var(--amber-dim);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}
.ca-row:hover { background: rgba(255, 153, 0, 0.18); border-color: var(--brand-bright) !important; }
.ca-row:active { transform: scale(0.995); }
.ca-value { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.ca-row .ca-text { font-size: 13.5px; color: var(--amber); word-break: break-all; }
.ca-copy-icon { color: var(--amber); font-size: 15px; opacity: 0.75; }
.ca-tooltip {
  position: absolute; top: -34px; right: 0;
  background: var(--green); color: #000;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none; font-family: var(--font);
  white-space: nowrap;
}
.ca-row.copied .ca-tooltip { opacity: 1; transform: translateY(0); }

/* DISTRIBUTION BAR */
.token-dist { max-width: 600px; margin: 0 auto; }
.token-dist h3 { text-align: center; margin-bottom: 16px; font-size: 18px; }
.dist-bar {
  display: flex; height: 40px; border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 12px;
}
.dist-segment {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #000;
}
.dist-segment.seller { background: var(--amber); }
.dist-segment.burn { background: var(--red); color: white; }
.dist-segment.treasury { background: var(--cyan); }
.dist-legend {
  display: flex; gap: 20px; justify-content: center; font-size: 13px;
  color: var(--text-secondary);
}
.dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.seller-dot { background: var(--amber); }
.burn-dot { background: var(--red); }
.treasury-dot { background: var(--cyan); }

/* SKILL CHAINS */
.chain-demo {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-bottom: 24px;
}
.chain-step { display: flex; align-items: center; }
.chain-node {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  text-align: center; min-width: 140px;
  transition: all 0.3s;
}
.chain-node.active { border-color: var(--amber); box-shadow: 0 0 20px var(--amber-dim); }
.chain-emoji { font-size: 28px; display: block; margin-bottom: 8px; }
.chain-name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.chain-price { font-size: 11px; color: var(--amber); font-family: var(--mono); }
.chain-connector {
  display: flex; align-items: center; padding: 0 8px;
  color: var(--text-dim); font-size: 20px;
  position: relative;
}
.chain-connector::before { content: "→"; font-size: 20px; color: var(--amber); }
.chain-data {
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%); font-size: 10px;
  font-family: var(--mono); color: var(--cyan); white-space: nowrap;
}
.chain-total {
  text-align: center; color: var(--text-secondary);
  font-size: 14px;
}
.chain-total strong { color: var(--amber); }

/* CTA */
.section-cta {
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--amber-dim) 0%, transparent 70%);
  text-align: center;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 32px; }
.social-links { display: flex; gap: 24px; justify-content: center; }
.social-link {
  color: var(--text-dim); text-decoration: none;
  font-size: 14px; transition: color 0.2s;
}
.social-link:hover { color: var(--amber); }

/* FOOTER */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 12px;
  font-weight: 700; font-size: 16px;
}
.footer-logo { width: 28px; height: 28px; border-radius: 8px; }
.footer-copy { color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.footer-disclaimer { color: var(--text-dim); font-size: 12px; }

/* MOBILE NAV DROPDOWN ANIMATION */
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 64px;
    right: 16px;
    background: var(--bg-card);
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    animation: navDrop 0.22s ease forwards;
  }
  .nav-links.open .btn-nav { width: 100%; }
  .nav-mobile-toggle { display: block; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 20px; }
  .stat-value { font-size: 22px; }
  .flow-grid { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); padding: 8px; }
  .skill-grid { grid-template-columns: 1fr; }
  .chain-demo { flex-direction: column; }
  .chain-connector::before { content: "↓"; }
  .hero-cta { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
