/* ==========================================
   Norax AI — Services & Pricing
   Dark SaaS style (Linear/Vercel inspired)
   ========================================== */

/* ---- VARIABLES ---- */
:root {
  --bg: #09090b;
  --bg-elevated: #0f0f12;
  --bg-card: #111114;
  --bg-card-hover: #16161a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #00e87b;
  --accent-hover: #00c968;
  --accent-glow: rgba(0, 232, 123, 0.25);
  --accent-glow-strong: rgba(0, 232, 123, 0.4);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.15);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.2s ease;
  --max-width: 1100px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

/* ---- AMBIENT BACKGROUND ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 232, 123, 0.08) 0%, rgba(168, 85, 247, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 0;
}

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

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 6px 16px;
  border-radius: var(--radius-xs);
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 0 20px var(--accent-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 232, 123, 0.1) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--accent);
  color: #000;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px var(--accent-glow-strong);
  color: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

/* ---- TRUST BAR ---- */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.trust-divider {
  color: rgba(255,255,255,0.12);
  font-size: 0.5rem;
}

/* ---- SECTION HEADERS ---- */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

#services .section-desc {
  margin-bottom: 8px;
}

/* ---- CATEGORY HEADERS ---- */
.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.category-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.category-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.category-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 232, 123, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

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

.service-card.featured {
  border-color: rgba(0, 232, 123, 0.15);
  background: linear-gradient(135deg, rgba(0, 232, 123, 0.03) 0%, var(--bg-card) 100%);
}

.service-card.featured::before {
  opacity: 0.5;
}

.service-badge {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 232, 123, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 232, 123, 0.2);
  margin-bottom: 16px;
}

.service-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.service-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.price-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  flex: 1;
  margin-bottom: 8px;
}

.service-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---- ORDER BUTTONS ---- */
.btn-order {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 24px;
  margin-top: 20px;
  background: rgba(0, 232, 123, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border: 1px solid rgba(0, 232, 123, 0.2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-order:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-emergency {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-emergency:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.3);
}

/* ---- CUSTOM CTA ---- */
.custom-cta {
  margin-top: 64px;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.custom-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.custom-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.custom-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ---- SHOWCASE ---- */
.showcase-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.showcase-stat {
  text-align: center;
  padding: 24px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.showcase-stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.showcase-stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.showcase-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Terminal */
.showcase-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: var(--red); opacity: 0.7; }
.dot.yellow { background: var(--yellow); opacity: 0.7; }
.dot.green { background: var(--green); opacity: 0.7; }

.terminal-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 16px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-body iframe {
  width: 100%;
  border: none;
}

/* Deliverables */
.showcase-deliverables {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.showcase-deliverables h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.deliverable {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 6px 0;
}

.deliverable-check {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---- STEPS ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- FAQ ---- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.faq-item {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

.faq-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- TECH TAGS ---- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  justify-content: center;
}

.tech-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 500;
  transition: all var(--transition);
}

.tech-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
  background: var(--bg-card-hover);
}

/* ---- CTA SECTION ---- */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 232, 123, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-desc {
  margin: 0 auto 32px;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer-brand {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-brand span {
  color: var(--accent);
  font-weight: 600;
}

.footer-email a {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-right {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-links { 
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(16px);
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }

  .hero { padding-top: 110px; padding-bottom: 48px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.92rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .trust-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .showcase-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .deliverables-grid { grid-template-columns: 1fr; }

  .custom-cta { padding: 28px 20px; }

  footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .service-card { padding: 20px; }
  .step { padding: 24px; }
  .showcase-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .showcase-stat { padding: 16px 8px; }
  .showcase-stat-value { font-size: 1.3rem; }
}
