/* =========================================================
   ATS / RECRUITER CRM STYLES
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --surface-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --accent-color: #2563eb;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
}

html {
  font-size: 14px !important; /* Scales down all rem values globally for ATS page */
}

body {
  font-family: 'Outfit', 'Poppins', sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: #fcfcfd;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-header p {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-gradient);
  color: var(--white);
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* ================= STATS SECTION ================= */
.ats-stats {
  background: #0f172a;
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stats-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item .stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================= KEY FEATURES ================= */
.ats-hero {
  padding: 4rem 0 3rem 0;
  background: var(--surface-gradient);
  position: relative;
  overflow: hidden;
}

.ats-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  z-index: 0;
  animation: pulse-slow 10s infinite alternate;
}

@keyframes pulse-slow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-5%, 5%); }
}

.ats-hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 30%;
  height: 40%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.ats-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ats-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 2rem;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.ats-hero-content h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.ats-hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 0.1em;
  background: var(--primary-gradient);
  opacity: 0.2;
  border-radius: 2px;
}

.ats-hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 580px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.ats-hero-visual .visual-card {
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s ease;
  overflow: hidden;
}

.ats-hero-visual .visual-card:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.ats-hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  display: block;
}

.ats-hero-visual {
  position: relative;
}

/* ================= FEATURES ================= */
.ats-features {
  background: var(--dark-gradient);
  position: relative;
  overflow: hidden;
}

.ats-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30 L30 0 M30 30 L60 30 M30 30 L30 60 M30 30 L0 30' stroke='rgba(255,255,255,0.03)' stroke-width='1' fill='none' /%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.feature-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  width: 55px;
  height: 55px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover .icon {
  background: var(--primary-gradient);
  transform: rotate(10deg);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.feature-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= FEATURE SET ================= */
.feature-set {
  background: #0f172a;
  color: var(--white);
}

.feature-set h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: #cbd5e1;
}

.list-item span {
  color: #10b981;
  font-weight: 800;
}

/* ================= PRICING ================= */
.ats-pricing {
  background: var(--dark-gradient);
  padding: 8rem 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-15px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-gradient);
  color: var(--white);
  padding: 0.6rem 2rem;
  border-radius: 3rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.pricing-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.price-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.amount {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.05em;
}

.currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.duration {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-bottom: 3.5rem;
  flex-grow: 1;
  padding: 0;
}

.plan-features li {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #cbd5e1;
  font-size: 1.1rem;
}

.plan-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: 900;
  font-size: 1.25rem;
}

.plan-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: 900;
  font-size: 1.125rem;
}

.btn-plan {
  display: block;
  text-align: center;
  padding: 1.25rem;
  background: #f1f5f9;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 700;
  color: #1e293b;
  transition: all 0.3s ease;
}

.pricing-card.featured .btn-plan {
  background: var(--primary-gradient);
  color: var(--white);
}

.btn-plan:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

.pricing-card.featured .btn-plan:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.trial-banner {
  margin-top: 5rem;
  background: #f8fafc;
  padding: 4rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid #e2e8f0;
}

.trial-banner h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.trial-banner p {
  font-size: 1.25rem;
  color: #475569;
  font-weight: 600;
}

.trial-banner strong {
  color: var(--accent-color);
}

/* ================= DEMO ================= */
.ats-demo {
  background: #f8fafc;
}

.demo-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1e293b;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--white);
}

.video-placeholder:hover {
  filter: brightness(1.2);
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--white);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.demo-footer {
  font-style: italic;
  color: var(--text-light);
}

/* ================= CONTACT ================= */
.ats-contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8rem;
  align-items: center;
}

.contact-info h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--text-main);
  letter-spacing: -0.04em;
  line-height: 1;
}

.contact-info p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 4rem;
  border-radius: 2.5rem;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  position: relative;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--primary-gradient);
  opacity: 0.05;
  border-radius: 50%;
  z-index: -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1.125rem 1.25rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1.25rem;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  border-radius: 1.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .ats-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ats-hero-content h1 { font-size: 3rem; }
  .ats-hero-content p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .ats-hero-visual { max-width: 600px; margin: 0 auto; }
  
  .pricing-card.featured { transform: scale(1); margin-bottom: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .ats-hero-content h1 { font-size: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 2rem; }
}

/* ================= ATS QUICK NAVIGATION (FLOATING) ================= */
.ats-quick-nav {
  position: fixed;
  top: 130px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ats-quick-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #2563eb;
  color: var(--white);
  border: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ats-quick-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-premium);
}

.ats-quick-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  right: 75px;
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
}

.ats-quick-nav:hover .ats-quick-nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.ats-quick-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.ats-quick-nav-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.ats-quick-nav-link .icon {
  font-size: 1.2rem;
}
