/* ============================================
   CLAWFRAP — AI Assistant Landing Page
   Dark Mode · Tech · Cyber
   ============================================ */

/* RESET & VARIABLES */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --surface:   #12121a;
  --surface2:  #1a1a25;
  --border:    #2a2a3a;
  --accent:    #6c63ff;
  --accent2:   #00d4aa;
  --text:      #e4e4f0;
  --text-dim:  #7a7a9a;
  --code-bg:   #0d0d18;
  --code-key:  #6c63ff;
  --code-str:  #a8e6cf;
  --code-cmt:  #4a4a6a;
  --code-fn:   #ffd166;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius:    12px;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-brain { margin-left: 4px; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(108,99,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(0,212,170,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(108,99,255,0.35);
}

.btn-primary:hover {
  background: #7d74ff;
  box-shadow: 0 0 32px rgba(108,99,255,0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large { padding: 16px 36px; font-size: 1rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* CODE BLOCK */
.hero-visual {
  position: relative;
  z-index: 1;
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  overflow-x: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(108,99,255,0.1);
}

.code-block code { color: var(--text); }

.code-comment { color: var(--code-cmt); font-style: italic; }
.code-const  { color: #ff79c6; }
.code-var     { color: var(--accent); }
.code-key     { color: var(--text); }
.code-str     { color: var(--code-str); }
.code-fn      { color: var(--code-fn); }

/* ============================================
   SECTIONS (shared)
   ============================================ */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.12);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================
   STACK
   ============================================ */
.stack {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

.stack .section-header { margin-bottom: 48px; }

.stack-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.stack-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stack-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
  padding: 120px 24px;
}

.contact-inner { max-width: 560px; margin: 0 auto; }

.contact-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}

.contact-inner p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.contact-note {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.contact-note span { opacity: 0.5; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-weight: 900;
  font-size: 1rem;
}

.footer-copy, .footer-tech {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    gap: 48px;
    text-align: center;
  }

  .hero-content { order: 1; }
  .hero-visual { order: 0; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; }

  .nav-links { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }

  .code-block { font-size: 0.72rem; padding: 20px; }
}
