/* ═══════════════════════════════════════════════
   AUTGPT — autgpt.live
   Dark technical theme, smooth animations
   ═══════════════════════════════════════════════ */

:root {
  --bg:         #000000;
  --bg-surface: #0a0a0a;
  --bg-card:    #0f0f0f;
  --bg-elevated:#1a1a1a;
  --border:     #2a2a2a;
  --border-light:#3a3a3a;

  --text:       #f0f0f0;
  --text-muted: #999999;
  --text-dim:   #666666;

  --accent:     #00d4ff;
  --accent-dim: #8b5cf6;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-pink: #ff3d8e;
  --accent-green: #39ff14;
  --gradient:   linear-gradient(135deg, #00d4ff, #39ff14, #ffb800, #ff3d8e, #8b5cf6);

  --font:       'JetBrains Mono', 'Fira Code', monospace;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25em; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-elevated); padding: 0.15em 0.4em; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── NAV ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7, 8, 10, 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
#navbar.scrolled {
  background: rgba(7, 8, 10, 0.92);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 900; font-size: 1.1rem; letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--accent-glow);
}
.nav-logo img { width: 28px; height: 28px; }
.nav-logo:hover { opacity: 1; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-x {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 0;
  color: var(--text-muted); border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-x:hover { color: var(--accent); background: var(--bg-elevated); border-color: var(--accent); opacity: 1; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text-muted);
  border-radius: 2px; transition: all 0.3s var(--ease);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 0;
  background: var(--gradient); color: #000;
  font-weight: 700; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 2px solid var(--accent);
  transition: transform 0.1s, box-shadow 0.2s;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
.btn-primary:hover {
  opacity: 1; transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent-dim);
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 0;
  border: 2px solid var(--accent); color: var(--accent);
  font-weight: 700; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: transparent;
  transition: transform 0.1s, box-shadow 0.2s, border-color 0.3s;
}
.btn-outline:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent-dim);
  border-color: var(--accent-pink);
  opacity: 1; background: rgba(0, 212, 255, 0.05);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 0;
  color: var(--text-muted); font-weight: 700; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 2px solid var(--border); background: transparent;
  transition: color 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn-ghost:hover {
  color: var(--text); border-color: var(--text-muted);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--border-light); opacity: 1;
}
.btn-lg { padding: 14px 28px; font-size: 0.9375rem; }

/* ─── HERO ─── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 70%);
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(circle at 30% 40%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  filter: blur(100px);
}
.hero-content { position: relative; text-align: center; max-width: 780px; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 0;
  background: rgba(0, 212, 255, 0.08); border: 1px solid var(--accent);
  color: var(--accent); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 28px;
  animation: badge-flicker 3s infinite;
}
@keyframes badge-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.4; }
  95% { opacity: 1; }
  96% { opacity: 0.6; }
}
#hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title-line { display: block; }
.hero-title-line.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
.hero-sub {
  font-size: 1.125rem; color: var(--text-muted);
  line-height: 1.7; max-width: 620px; margin: 0 auto 36px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex; gap: 0; justify-content: center; align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; padding: 0 32px; }
.stat-value { display: block; font-size: 1.125rem; font-weight: 700; color: var(--text); font-family: var(--mono); }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ─── SECTIONS ─── */
section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ─── ABOUT ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 40px; }
.about-lead a { color: var(--accent); font-weight: 500; }
.trait-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trait {
  padding: 24px; border-radius: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.trait:nth-child(1) { transform: rotate(-0.5deg); }
.trait:nth-child(2) { transform: rotate(0.7deg); }
.trait:nth-child(3) { transform: rotate(0.3deg); }
.trait:nth-child(4) { transform: rotate(-0.8deg); }
.trait:hover { border-color: var(--accent); transform: translate(-2px, -2px) rotate(0deg) !important; box-shadow: 4px 4px 0 var(--accent-dim); }
.trait h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 8px; }
.trait p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }
.about-visual {
  border-radius: 0; overflow: hidden;
  border: 2px solid var(--accent-dim);
  background: var(--bg-card);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}
.about-visual img { width: 100%; }

/* ─── HOW IT WORKS ─── */
#how-it-works { background: var(--bg-surface); }
.steps { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 32px; padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--mono); font-size: 0.875rem; font-weight: 700;
  color: #000; min-width: 40px; padding-top: 2px;
  background: var(--accent);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-3deg);
  flex-shrink: 0;
}
.step-content h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* ─── ARCHITECTURE ─── */
.arch-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px;
  margin-bottom: 64px;
}
.code-block {
  background: var(--bg-card); border: 1px solid var(--accent); border-radius: 0;
  padding: 28px; overflow-x: auto;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.55;
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}
.arch-cards { display: flex; flex-direction: column; gap: 16px; }
.arch-card {
  padding: 24px; border-radius: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.arch-card:hover { border-color: var(--accent); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent-dim); }
.arch-card h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }
.arch-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }

/* GitHub preview */
.github-preview {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0;
  overflow: hidden;
}
.gh-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.875rem; font-weight: 600;
  color: var(--text);
}
.gh-header svg { color: var(--text-muted); }
.gh-star {
  margin-left: auto; font-family: var(--font);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--accent);
}
.gh-files { padding: 12px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.gh-file {
  padding: 8px 0; font-family: var(--mono); font-size: 0.8125rem;
  color: var(--text-muted); display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.gh-icon { font-size: 0.875rem; opacity: 0.5; }
.gh-readme {
  padding: 24px; border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.gh-readme h4 {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 600;
  color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}
.gh-readme p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ─── TOKENOMICS ─── */
#tokenomics { background: var(--bg-surface); }
.token-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.token-card {
  padding: 32px; border-radius: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.token-card:nth-child(1) { transform: rotate(0.5deg); }
.token-card:nth-child(2) { transform: rotate(-0.6deg); }
.token-card:nth-child(3) { transform: rotate(-0.3deg); }
.token-card:nth-child(4) { transform: rotate(0.7deg); }
.token-card:hover { border-color: var(--accent-pink); transform: translate(-2px, -2px) rotate(0deg) !important; box-shadow: 4px 4px 0 var(--accent-pink); }
.token-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.token-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.token-card strong { color: var(--text); }
.token-highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(139, 92, 246, 0.03), var(--bg-card));
}
.token-cta { text-align: center; }

/* ─── WHITEPAPER ─── */
.wp-content { max-width: 780px; margin: 0 auto; }
.wp-section { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.wp-section:last-child { border-bottom: none; margin-bottom: 0; }
.wp-section h3 {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 16px; color: var(--text);
}
.wp-section h4 { font-size: 0.9375rem; font-weight: 700; margin-top: 24px; margin-bottom: 10px; }
.wp-section p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.wp-section p:last-child { margin-bottom: 0; }
.wp-section ol, .wp-section ul { margin-bottom: 16px; }
.wp-section li {
  font-size: 0.9375rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 6px;
}
.wp-section li strong { color: var(--text); }
.wp-section a { color: var(--accent); font-weight: 500; }

/* ─── FOOTER ─── */
#footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.875rem; line-height: 1.6; margin-top: 12px; }
.footer-logo { width: 36px; height: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.8125rem; color: var(--text-dim);
}

/* ─── DOODLE / AUTISM MEME ELEMENTS ─── */
.doodle-border {
  position: relative;
}
.doodle-border::before {
  content: '';
  position: absolute; inset: -3px;
  border: 3px dashed var(--accent);
  opacity: 0.3;
  animation: doodle-dash 20s linear infinite;
  pointer-events: none;
}
@keyframes doodle-dash {
  to { stroke-dashoffset: -1000; background-position: 1000px 0; }
}

.scribble-underline {
  position: relative;
  display: inline-block;
}
.scribble-underline::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='8'%3E%3Cpath d='M0 4 Q10 0 20 4 T40 4 T60 4 T80 4 T100 4' fill='none' stroke='%2300d4ff' stroke-width='2' opacity='0.6'/%3E%3C/svg%3E") repeat-x;
  background-size: 100px 8px;
}

.hand-arrow {
  position: absolute;
  font-size: 1.5rem;
  animation: arrow-bounce 1.5s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-6px) rotate(-10deg); }
}

.sticker {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-pink);
  color: #000;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.autism-sparkle {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkle-spin 3s linear infinite;
  opacity: 0.6;
}
@keyframes sparkle-spin {
  to { transform: rotate(360deg) scale(0.8); }
}

.puzzle-piece {
  position: absolute;
  width: 24px; height: 24px;
  opacity: 0.15;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z' fill='%2300d4ff'/%3E%3C/svg%3E") no-repeat center/contain;
  animation: float-piece 6s ease-in-out infinite;
}
@keyframes float-piece {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(5deg); }
  66% { transform: translateY(4px) rotate(-3deg); }
}

.brain-emoji {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.12;
  animation: float-piece 8s ease-in-out infinite;
}

/* ─── ANIMATIONS ─── */
[data-animate] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .arch-grid { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gh-files { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(7, 8, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat { padding: 8px 20px; }
  .stat-divider { display: none; }
  .trait-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  #hero h1 { font-size: 2.25rem; }
}
@media (max-width: 480px) {
  section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .btn-lg { padding: 12px 22px; font-size: 0.875rem; }
}
