/* ========================================
   Zanoma Linear v3.0 — Main CSS
   ======================================== */

/* Google Fonts are loaded in default.hbs */

:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a24;
  --bg4: #222230;
  --green: #39FF14;
  --green-dim: rgba(57, 255, 20, 0.15);
  --green-glow: rgba(57, 255, 20, 0.4);
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --text-dim: #555568;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--green); text-decoration: none; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; }

/* ========================================
   Animated Background
   ======================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,20,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,255,20,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { top: -200px; right: -200px; }
.bg-glow-2 { bottom: -300px; left: -200px; }

/* ========================================
   Layout
   ======================================== */

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

/* ========================================
   Header / Nav
   ======================================== */

header {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo:hover { opacity: 1; }
.logo span { color: var(--green); }

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}
nav a:hover { color: var(--green); opacity: 1; }

/* AI-Powered pill in nav */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: default;
}

.nav-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50% { opacity: 0.4; box-shadow: none; }
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--green-glow);
  transform: translateY(-2px);
  opacity: 1;
  color: var(--bg);
}

.btn-secondary {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  opacity: 1;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--green), #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Stats Row
   ======================================== */

.stats-section {
  padding: 60px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: rgba(57,255,20,0.3);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================
   Clients / Logo Wall
   ======================================== */

.clients-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.big-bold-text {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.logo-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.logo-item:hover {
  border-color: var(--green);
  color: var(--text);
  background: rgba(57,255,20,0.05);
}

/* ========================================
   Services
   ======================================== */

.services-section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, transparent 60%, rgba(57,255,20,0.04));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.service-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.service-price {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--green-dim) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}

.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn {
  position: relative;
  z-index: 1;
}

/* ========================================
   Footer
   ======================================== */

footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.footer-logo span { color: var(--green); }
.footer-logo:hover { opacity: 1; }

.footer-text {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); opacity: 1; }

/* ========================================
   Page / Post Content
   ======================================== */

.content-wrap {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.content-wrap h1,
.content-wrap h2,
.content-wrap h3,
.content-wrap h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}

.content-wrap h1 { font-size: 40px; letter-spacing: -1px; }
.content-wrap h2 { font-size: 30px; }
.content-wrap h3 { font-size: 22px; }

.content-wrap p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.content-wrap ul,
.content-wrap ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.content-wrap li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.content-wrap a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-wrap blockquote {
  border-left: 3px solid var(--green);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.content-wrap pre,
.content-wrap code {
  font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.content-wrap pre {
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.content-wrap code {
  padding: 2px 8px;
  font-size: 13px;
}

.content-wrap img {
  border-radius: var(--radius);
  margin: 24px 0;
  width: 100%;
}

.content-wrap hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Post header */
.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-header .post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 16px;
}

.post-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.post-meta span::after {
  content: '·';
  margin-left: 16px;
}
.post-meta span:last-child::after { content: ''; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  nav { display: none; }
  .hero { padding: 80px 0 60px; }
  .hero h1 { letter-spacing: -1px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .cta-box { padding: 60px 24px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .logo-grid { gap: 10px; }
  .logo-item { padding: 12px 18px; font-size: 12px; }
}
