/* ============================================
   SMART GEEKS SHOWCASE — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0b1d31;
  --bg-mid: #0f2640;
  --bg-light: #143356;
  --accent: #007dfe;
  --accent-cyan: #22d3ee;
  --accent-green: #10b981;
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --text: #ffffff;
  --text-dim: #94a3b8;
  --text-mute: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --max: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ============================================
   TOP NAV
   ============================================ */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(11, 29, 49, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #fff;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.logo-text .dim { color: var(--text-dim); font-weight: 400; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* ============================================
   HERO
   ============================================ */
.hero, .case-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(0, 125, 254, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(34, 211, 238, 0.12) 0%, transparent 60%);
  z-index: 0;
}
.hero .container, .case-hero .container { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero h1, .case-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero h1 .accent, .case-hero h1 .accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub, .case-hero .lead {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 48px;
}
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: #fff; }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 32px;
  max-width: 720px;
}
.hero-stats > div { text-align: left; }
.hero-stats .num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-cyan);
  line-height: 1;
}
.hero-stats .lbl {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: rgba(255, 255, 255, 0.02); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section p { color: var(--text-dim); font-size: 17px; max-width: 640px; }

/* ============================================
   VARIANT GRID
   ============================================ */
.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.variant-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.variant-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.variant-preview {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: #050816;
}
.variant-meta { padding: 24px; }
.variant-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  font-weight: 600;
}
.variant-meta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #fff;
}
.variant-meta p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.variant-link {
  font-size: 13px;
  color: var(--accent-cyan);
  font-weight: 600;
}
.bold-tag { background: rgba(0, 125, 254, 0.15); color: var(--accent); }
.min-tag { background: rgba(255, 255, 255, 0.1); color: #fff; }
.brut-tag { background: #ff003c; color: #fff; }
.glass-tag { background: rgba(236, 72, 153, 0.15); color: var(--accent-pink); }
.retro-tag { background: rgba(95, 255, 95, 0.15); color: var(--accent-green); }

/* Variant preview mini-renders */
.v1-mini {
  width: 100%; height: 100%; padding: 14px;
  background: linear-gradient(135deg, #0f2640, #0b1d31);
  display: flex; flex-direction: column; gap: 8px;
}
.v1-hero { height: 32%; background: linear-gradient(135deg, #007dfe, #22d3ee); border-radius: 6px; }
.v1-bar { height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; }
.v1-bar.w70 { width: 70%; }
.v1-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.v1-card { border-radius: 6px; }
.v1c1 { background: rgba(0, 125, 254, 0.4); }
.v1c2 { background: rgba(34, 211, 238, 0.4); }
.v1c3 { background: rgba(16, 185, 129, 0.4); }
.v1c4 { background: rgba(124, 58, 237, 0.4); }

.v2-mini {
  width: 100%; height: 100%; padding: 20px;
  background: #fafafa;
  display: flex; flex-direction: column; gap: 10px;
}
.v2-line { height: 6px; background: #0a0a0a; border-radius: 1px; }
.v2-w30 { width: 30%; }
.v2-w80 { width: 80%; }
.v2-w60 { width: 60%; }
.v2-w40 { width: 40%; }
.v2-divider { height: 1px; background: #e5e5e5; margin: 8px 0; }
.v2-block { height: 32px; border-radius: 0; }
.v2-b1 { background: #fff; border: 1px solid #e5e5e5; }
.v2-b2 { background: #fff; border: 1px solid #e5e5e5; }

.v3-mini {
  width: 100%; height: 100%;
  background: #ffff00;
  position: relative;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.v3-yellow-bg { position: absolute; inset: 0; background: #ffff00; }
.v3-stripe {
  position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: repeating-linear-gradient(45deg, #000, #000 6px, #ffff00 6px, #ffff00 12px);
  opacity: 0.4;
  z-index: 1;
}
.v3-block { height: 32px; border: 3px solid #000; position: relative; z-index: 2; }
.v3-pink { background: #ff003c; }
.v3-cyan { background: #00ffff; }
.v3-yellow { background: #ffff00; }

.v4-mini {
  width: 100%; height: 100%; padding: 14px;
  background: #050816;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  overflow: hidden;
}
.v4-mesh {
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, #ec4899 0%, transparent 30%),
              radial-gradient(circle at 70% 70%, #3b82f6 0%, transparent 30%),
              radial-gradient(circle at 50% 80%, #8b5cf6 0%, transparent 30%);
  opacity: 0.5;
}
.v4-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.v5-mini {
  width: 100%; height: 100%;
  background: #000;
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
  border: 2px solid #3a3a2a;
}
.v5-term-bar { height: 8px; background: #2a2a1a; border-radius: 1px; margin-bottom: 6px; }
.v5-line { height: 5px; border-radius: 1px; }
.v5-green { background: #5fff5f; }
.v5-amber { background: #ffb000; }
.v5-w30 { width: 30%; }
.v5-w40 { width: 40%; }
.v5-w50 { width: 50%; }
.v5-w70 { width: 70%; }
.v5-cursor {
  width: 8px; height: 8px;
  background: #5fff5f;
  animation: blink-cursor 1s infinite;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

/* ============================================
   COMPARE TABLE
   ============================================ */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.compare-table td a { color: var(--accent-cyan); }

/* ============================================
   CASE STUDY
   ============================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.case-stat {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.case-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-cyan);
  line-height: 1;
}
.case-lbl {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

.case-built h3, .case-live h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
}
.case-built p { font-size: 16px; color: var(--text-dim); line-height: 1.7; }
.built-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.built-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent-cyan);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.live-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.live-link:hover {
  border-color: var(--accent-cyan);
  background: var(--card-hover);
  text-decoration: none;
}
.live-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.live-url {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
}

/* Stack grid (case study) */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.stack-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stack-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 16px;
  color: #fff;
}
.stack-card ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-dim);
}
.stack-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.stack-card li:last-child { border-bottom: none; }
.stack-card li::before {
  content: '✓ ';
  color: var(--accent-cyan);
  font-weight: 700;
  margin-right: 6px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(0, 125, 254, 0.15), rgba(34, 211, 238, 0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); text-decoration: none; }
.cta-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 125, 254, 0.3);
}
.cta-btn-primary:hover { box-shadow: 0 8px 30px rgba(0, 125, 254, 0.5); }
.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-strong);
}
.cta-btn-ghost {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}
.footer .dim { color: var(--text-mute); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { color: var(--text-dim); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .top-nav { padding: 16px 20px; }
  .nav-links { gap: 16px; font-size: 13px; }
  .hero, .case-hero { padding: 60px 0 50px; }
  .section { padding: 60px 0; }
  .hero-stats .num { font-size: 32px; }
}
@media (max-width: 540px) {
  .nav-links { display: none; }
  .variant-grid { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px; }
}