/* Shared site styles for /projects/ pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0f; --surface: #13131a; --surface-2: #181825;
  --border: #1e1e2e; --border-light: #2a2a3e;
  --accent: #7c3aed; --accent-light: #a855f7;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --text: #f1f0f5; --muted: #8b8a9e;
  --green: #22c55e; --red: #ef4444; --orange: #fb923c;
  --yellow: #fbbf24; --blue: #60a5fa;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--text); }

body::before {
  content: ""; position: fixed; top: -20%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

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

nav {
  padding: 20px 0; border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); position: sticky; top: 0;
  background: rgba(10,10,15,0.85); z-index: 10;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1rem; color: var(--text); }
.logo .dot { color: var(--accent-light); }
.nav-links { display: flex; gap: 24px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.85rem;
  margin-top: 32px; margin-bottom: 16px;
}
.back-link:hover { color: var(--accent-light); }
.back-link svg { width: 14px; height: 14px; }

/* Hero */
.hero { padding: 20px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 840px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-eyebrow.green { color: var(--green); background: rgba(34,197,94,0.1); border: 1px solid var(--green); }
.hero-eyebrow.blue  { color: var(--blue);  background: rgba(96,165,250,0.1); border: 1px solid var(--blue); }
.hero-eyebrow.orange{ color: var(--orange);background: rgba(251,146,60,0.1); border: 1px solid var(--orange); }
.hero-eyebrow.purple{ color: var(--accent-light); background: rgba(124,58,237,0.1); border: 1px solid var(--accent); }
.hero-eyebrow .pulse {
  width: 6px; height: 6px; background: currentColor;
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
h1 .gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 30px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }

.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .label { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-meta .value { color: var(--text); font-weight: 700; }

/* Hero visual wrappers */
.hero-visual {
  position: relative; min-height: 420px;
  border-radius: 24px; border: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(124,58,237,0.25);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Terminal/dashboard mock */
.mock-dashboard {
  padding: 20px; font-family: "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--muted);
  background: #0a0a0f; height: 100%;
}
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mock-kpi {
  background: var(--surface); padding: 12px; border-radius: 8px;
  border: 1px solid var(--border);
}
.mock-kpi .l { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.mock-kpi .v { font-size: 22px; color: var(--orange); font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; }
.mock-kpi.green .v { color: var(--green); }
.mock-kpi.blue .v { color: var(--blue); }
.mock-kpi.purple .v { color: var(--accent-light); }
.mock-chart {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; height: 140px;
  position: relative;
}
.mock-chart .bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.mock-chart .bar {
  flex: 1; background: linear-gradient(to top, var(--accent), var(--accent-light));
  border-radius: 2px 2px 0 0; opacity: 0.85;
  animation: barPulse 3s ease-in-out infinite;
}
@keyframes barPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.5; } }

/* Phone mockup */
.phone-mock {
  position: relative; width: 100%; max-width: 340px;
  margin: 0 auto; aspect-ratio: 9/19.5;
  background: #000; border-radius: 48px;
  padding: 10px; border: 2px solid #1a1a1a;
  box-shadow: 0 40px 80px -20px rgba(124,58,237,0.35), 0 0 0 1px var(--border-light);
}
.phone-mock::before {
  content: ""; position: absolute;
  top: 24px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #000;
  border-radius: 999px; z-index: 2;
}
.phone-mock img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }

/* Sections */
section { padding: 80px 0; }
.section-kicker {
  font-size: 0.72rem; color: var(--accent-light);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 10px;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 640px; margin-bottom: 40px; }

.problem {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 28px 32px;
  font-size: 1.05rem;
}
.problem p + p { margin-top: 12px; }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.feature .icon {
  font-size: 1.4rem; margin-bottom: 12px;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(124,58,237,0.12);
  display: flex; align-items: center; justify-content: center;
}
.feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 0.9rem; color: var(--muted); }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.gallery .shot {
  aspect-ratio: 9/19.5;
  background: #000; border-radius: 20px;
  padding: 4px; border: 1px solid var(--border-light);
  transition: transform .25s, border-color .25s;
  overflow: hidden;
}
.gallery .shot.wide { aspect-ratio: 16/10; }
.gallery .shot:hover { transform: translateY(-4px); border-color: var(--accent); }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

/* Stack block */
.stack { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.stack-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 24px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.stack-row:last-child { border-bottom: none; }
.stack-row .label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.stack-row .value { font-size: 0.98rem; }
.stack-row .value code {
  background: var(--bg); padding: 2px 7px; border-radius: 5px;
  font-size: 0.85rem; color: var(--accent-light);
  border: 1px solid var(--border-light);
  font-family: "SF Mono", Menlo, monospace;
}
@media (max-width: 640px) { .stack-row { grid-template-columns: 1fr; gap: 6px; } .stack { padding: 24px; } }

/* Numbers */
.numbers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.number {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  position: relative; overflow: hidden;
}
.number::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.number:hover::after { opacity: 1; }
.number .big {
  font-size: 2.4rem; font-weight: 900; color: var(--accent-light);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 6px;
}
.number .big.green { color: var(--green); }
.number .big.blue { color: var(--blue); }
.number .big.orange { color: var(--orange); }
.number .big .unit { font-size: 1rem; opacity: 0.6; font-weight: 700; }
.number .t { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.number .d { font-size: 0.82rem; color: var(--text); margin-top: 4px; }

/* CTA */
.cta-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(96,165,250,0.08));
  border: 1px solid var(--accent); border-radius: 16px;
  padding: 40px; text-align: center;
  box-shadow: 0 20px 60px -20px var(--accent-glow);
}
.cta-card h2 { margin-bottom: 12px; }
.cta-card p { color: var(--muted); margin-bottom: 24px; }

footer {
  padding: 40px 0 60px; border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: 0.85rem;
  margin-top: 60px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent-light); }

@media (max-width: 640px) { section { padding: 48px 0; } }
