/* ============================================================================
   JesperAI Marketing Site - Shared Base Styles
   Used by: index.html, pricing.html
   ============================================================================ */

/* ===========================================================================
   RESET & BASE
   =========================================================================== */

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

html {
  scroll-behavior: smooth;
}

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

/* ===========================================================================
   CSS VARIABLES - Dark Tech Theme with Cyan Accents
   =========================================================================== */

:root {
  /* Primary colors */
  --bg: #050810;
  --bg-2: #070c18;
  --bg-card: rgba(10, 16, 32, 0.85);

  /* Text colors */
  --text: #dce8ff;
  --text-muted: #6b80a8;
  --text-dim: #3d5070;

  /* Accent colors */
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --cyan-mid: rgba(0, 229, 255, 0.4);

  --green: #00ff9d;
  --green-dim: rgba(0, 255, 157, 0.1);

  --amber: #ffaa00;
  --amber-dim: rgba(255, 170, 0, 0.1);

  --blue: #1a6fff;
  --blue-dim: rgba(26, 111, 255, 0.15);

  /* Borders */
  --border: rgba(0, 229, 255, 0.1);
  --border-bright: rgba(0, 229, 255, 0.35);

  /* Fonts */
  --font-mono: 'Geist Mono', monospace;
  --font-display: 'Cabinet Grotesk', sans-serif;
  --font-body: 'Cabinet Grotesk', sans-serif;
}

/* ===========================================================================
   BACKGROUND EFFECTS
   =========================================================================== */

/* Scanline overlay effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

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

/* ===========================================================================
   NAVIGATION BAR
   =========================================================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Glow line under nav */
nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

/* Logo and branding */
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), transparent);
  border-radius: 3px;
}

.nav-logo-icon svg {
  width: 14px;
  height: 14px;
  position: relative;
  z-index: 1;
}

.nav-system-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding-left: 10px;
  border-left: 1px solid var(--border-bright);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active {
  color: var(--cyan);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
}

/* Nav CTA button */
.nav-cta {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  color: #050810 !important;
  background: var(--cyan) !important;
  padding: 7px 18px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: box-shadow 0.2s !important;
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4) !important;
}

/* ===========================================================================
   CONTENT LAYOUT
   =========================================================================== */

.content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* Content wrapper with max-width */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 60px;
}

/* ===========================================================================
   TYPOGRAPHY & HEADINGS
   =========================================================================== */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 40px;
}

.subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ===========================================================================
   SECTION STYLING
   =========================================================================== */

/* Section tag with decorative elements */
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.section-tag::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

/* Glow rule divider between sections */
.glow-rule {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-bright),
    transparent
  );
  max-width: 1100px;
  margin: 0 auto;
}

/* ===========================================================================
   CTA SECTION
   =========================================================================== */

.cta-section {
  text-align: center;
  padding: 64px 40px 100px;
  position: relative;
  z-index: 1;
}

/* Glow background effect */
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(0, 229, 255, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  position: relative;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}

/* CTA Button styling */
.cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #050810;
  background: var(--cyan);
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.4s;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.45);
  transform: translateY(-2px);
}

/* ===========================================================================
   FOOTER
   =========================================================================== */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

footer a {
  color: var(--cyan);
  text-decoration: none;
}

/* ===========================================================================
   ANIMATIONS
   =========================================================================== */

/* Fade-up animation for scroll trigger elements */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ===========================================================================
   RESPONSIVE DESIGN - Tablet (960px and below)
   =========================================================================== */

@media (max-width: 960px) {
  .wrap {
    padding: 60px 28px;
  }

  nav {
    padding: 0 24px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 24px;
  }

  h1 {
    font-size: 38px;
  }
}

/* ===========================================================================
   RESPONSIVE DESIGN - Mobile (600px and below)
   =========================================================================== */

@media (max-width: 600px) {
  .wrap {
    padding: 40px 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 28px;
  }

  nav {
    padding: 0 16px;
    height: 56px;
  }

  .nav-logo {
    font-size: 16px;
  }

  .nav-system-id {
    display: none;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-section {
    padding: 40px 20px 60px;
  }
}
