/* ═══════════════════════════════════════════════════════════════
   ConvoHR Marketing Site — Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --bg: #0f0f17;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text: #e8e8f0;
  --text-muted: #9ca3af;
  --text-dim: #8b8fa0;
  --border: #2d2d44;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-cyan: #22d3ee;
  --accent-rose: #f43f5e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.3);
  --max-width: 1200px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,15,23,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 22px; font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -0.5px;
}
.logo span { color: var(--text-muted); font-weight: 400; font-size: 13px; margin-left: 6px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--primary-dark); color: #fff; border: none; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 24px rgba(99,102,241,0.4);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: rgba(15,15,23,0.95); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 20px; font-weight: 600; color: var(--text);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  text-align: center;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.35;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation: orbFloat2 15s ease-in-out infinite;
}
.hero-orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--accent-rose) 0%, transparent 70%);
  top: 30%; right: 15%;
  animation: orbFloat3 10s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px,40px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-50px,-30px) scale(1.05); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-40px) scale(0.95); }
}

.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 500;
  background: rgba(99,102,241,0.12); color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.2);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #e8e8f0 30%, var(--primary-light) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-muted);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 16px 36px; border-radius: 10px; font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; border: none; cursor: pointer; text-decoration: none;
  transition: box-shadow 0.3s, transform 0.15s;
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(99,102,241,0.5);
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-secondary {
  padding: 16px 36px; border-radius: 10px; font-size: 16px; font-weight: 600;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--primary); background: rgba(99,102,241,0.06);
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════════════════════════════ */
.trust-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar .container { text-align: center; }
.trust-bar p {
  font-size: 14px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 500; margin-bottom: 32px;
}
.stats-row {
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-size: 42px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════
   INTELLIGENCE SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.intelligence { padding: 100px 0; }
.section-header {
  text-align: center; margin-bottom: 64px;
}
.section-label {
  font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary-light); font-weight: 600; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3vw, 44px); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.intel-card {
  background: rgba(26,26,46,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.intel-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  opacity: 0; transition: opacity 0.3s;
}
.intel-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.intel-card:hover::before { opacity: 1; }

.intel-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 24px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.15);
}
.intel-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.intel-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

.intel-card--dis .intel-icon { background: rgba(99,102,241,0.1); }
.intel-card--ask .intel-icon { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.15); }
.intel-card--partner .intel-icon { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.15); }

/* ══════════════════════════════════════════════════════════════
   FEATURES (BENTO GRID)
   ══════════════════════════════════════════════════════════════ */
.features { padding: 100px 0; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.bento-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.bento-cell:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.bento-cell .icon {
  font-size: 28px; margin-bottom: 16px;
}
.bento-cell h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.bento-cell p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════════ */
.how-it-works { padding: 100px 0; }

.steps-row {
  display: flex; gap: 24px; align-items: stretch;
}
.step-card {
  flex: 1; text-align: center; padding: 40px 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); position: relative;
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.step-connector {
  display: flex; align-items: center; color: var(--border); font-size: 28px;
  padding: 0 4px;
}

/* ══════════════════════════════════════════════════════════════
   SECURITY
   ══════════════════════════════════════════════════════════════ */
.security { padding: 100px 0; }

.security-card {
  background: linear-gradient(135deg, rgba(26,26,46,0.8), rgba(15,15,23,0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.security-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.security-icon { font-size: 48px; margin-bottom: 24px; }
.security-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.security-card > p { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto 40px; }

.security-points {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  list-style: none; text-align: center;
}
.security-points li {
  padding: 24px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
}
.security-points .icon { font-size: 24px; margin-bottom: 10px; display: block; }
.security-points .label { font-size: 14px; font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════════════ */
.pricing { padding: 100px 0; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px;
  transition: transform 0.25s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff;
}
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-card .price {
  font-size: 40px; font-weight: 800; margin-bottom: 4px;
}
.pricing-card .price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-card .price-note { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }
.pricing-card ul {
  list-style: none; margin-bottom: 32px;
}
.pricing-card ul li {
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 10px;
}
.pricing-card ul li::before {
  content: '✓'; color: var(--accent-green); font-weight: 700;
}
.pricing-card .btn-primary, .pricing-card .btn-secondary {
  width: 100%; text-align: center; display: block;
  padding: 14px; font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════════════ */
.cta-banner {
  padding: 100px 0;
}
.cta-inner {
  background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; position: relative; }
.cta-inner p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; position: relative; }
.cta-inner .btn-primary {
  background: #fff; color: var(--primary-dark);
  position: relative;
}
.cta-inner .btn-primary:hover { box-shadow: 0 0 32px rgba(255,255,255,0.3); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 48px 0 32px;
  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-size: 18px; font-weight: 700; color: var(--primary-light); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; text-align: center; margin-top: 24px; font-size: 12px; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .intel-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .security-points { grid-template-columns: repeat(2, 1fr); }
  .steps-row { flex-direction: column; }
  .step-connector { justify-content: center; transform: rotate(90deg); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; min-height: auto; }
  .stats-row { gap: 32px; }
  .stat-number { font-size: 32px; }
  .security-card { padding: 40px 24px; }
  .security-card h2 { font-size: 24px; }
  .cta-inner { padding: 48px 24px; }
  .cta-inner h2 { font-size: 28px; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .security-points { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
