/* Lensox — Dark Theme */
:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a2e;
  --fg: #e0e0e0;
  --fg2: #888;
  --accent: #00d4aa;
  --accent2: #7c3aed;
  --red: #ef4444;
  --gold: #f59e0b;
  --border: #1e1e30;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
}

/* Background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0,212,170,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
nav {
  background: rgba(18,18,26,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

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

nav .logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

nav .links {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav .links a {
  color: var(--fg2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.9rem;
}

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

/* Hero */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--fg2);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero .badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.3);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* Project Cards */
.projects {
  padding: 60px 0;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--fg);
  display: block;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card:hover::before { opacity: 1; }

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--fg2);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card .tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-chain { background: rgba(0,212,170,0.1); color: var(--accent); }
.tag-ai { background: rgba(124,58,237,0.1); color: var(--accent2); }
.tag-trading { background: rgba(245,158,11,0.1); color: var(--gold); }
.tag-soon { background: rgba(239,68,68,0.1); color: var(--red); }

.card .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-top: 8px;
}

.card .status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.stat {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat .value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent);
}

.stat .label {
  font-size: 0.8rem;
  color: var(--fg2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--fg2);
  font-size: 0.85rem;
  margin-top: 80px;
}

/* Project page specific */
.project-header {
  padding: 80px 0 40px;
}

.project-header h1 {
  font-size: 3rem;
  font-weight: 900;
}

.project-header .desc {
  font-size: 1.1rem;
  color: var(--fg2);
  max-width: 700px;
  margin-top: 12px;
}

.section {
  padding: 40px 0;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Live data */
.live-data {
  font-family: var(--mono);
  font-size: 0.9rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
}

.live-data .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.live-data .row:last-child { border-bottom: none; }

.live-data .key { color: var(--fg2); }
.live-data .val { color: var(--fg); font-weight: 600; }
.live-data .val.green { color: var(--accent); }
.live-data .val.red { color: var(--red); }

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 60px 0 40px; }
  .grid { grid-template-columns: 1fr; }
  nav .links { gap: 12px; }
  nav .links a { font-size: 0.8rem; }
}
