/* ============================================
   HireMind Landing Page — Design System & Styles
   Color palette derived from the Streamlit app
   ============================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Primary palette */
  --primary: #7c3aed;
  --primary-dark: #630ed4;
  --primary-light: #eaddff;
  --primary-dim: #d2bbff;

  /* Secondary & Tertiary */
  --secondary: #6366f1;
  --tertiary: #ec4899;

  /* Surfaces */
  --surface: #f7f9fb;
  --surface-container: #eceef0;
  --surface-container-low: #f2f4f6;
  --surface-container-lowest: #ffffff;

  /* Text */
  --on-surface: #191c1e;
  --on-surface-variant: #4a4455;
  --text-heading: #1b2559;
  --text-body: #64748b;
  --text-muted: #7b7487;

  /* Borders & outlines */
  --outline: #7b7487;
  --outline-variant: #ccc3d8;
  --border-subtle: rgba(0, 0, 0, 0.05);

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ba1a1a;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #e0c3fc 0%, #c4b5fd 30%, #a78bfa 60%, #7c3aed 100%);
  --gradient-hero-radial: radial-gradient(ellipse at 30% 20%, rgba(224, 195, 252, 0.4) 0%, transparent 60%);
  --gradient-cta: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #3730a3 100%);
  --gradient-card-accent: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, transparent 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -10px rgba(124, 58, 237, 0.15);
  --shadow-primary: 0 8px 24px rgba(124, 58, 237, 0.25);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Sizing */
  --container-max: 1200px;
  --nav-height: 72px;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background-color: var(--surface);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}


/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

p {
  color: var(--text-body);
  line-height: 1.6;
}


/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .emoji {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.section-header p {
  max-width: 640px;
  margin: var(--space-md) auto 0;
  font-size: 1.125rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Glass Card ── */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}


/* ── Shimmer Effect ── */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  z-index: 10;
  pointer-events: none;
}

.shimmer:hover::before {
  left: 200%;
}


/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(247, 249, 251, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(204, 195, 216, 0.15);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-smooth);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.nav-logo .logo-emoji {
  font-size: 1.75rem;
  animation: float 3s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem 0.75rem 2rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.nav-links .nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.nav-links .nav-cta::after {
  display: none !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-radial);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--surface) 0%, transparent 100%);
}

/* Decorative floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: 1;
}

.hero-orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(236, 72, 153, 0.3);
  top: 10%;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.4);
  bottom: 20%;
  left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  color: var(--text-heading);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-heading);
  font-weight: 500;
  margin-bottom: var(--space-md);
  opacity: 0.9;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--on-surface-variant);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--gradient-cta);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 1.0625rem;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-smooth);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.4);
}

.hero-cta .cta-emoji {
  font-size: 1.25rem;
}


/* ============================================
   KEY CAPABILITIES SECTION
   ============================================ */
.capabilities {
  background: var(--surface);
  position: relative;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.capability-card {
  padding: var(--space-xl);
  text-align: left;
  position: relative;
}

.capability-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-smooth);
}

.capability-card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
}

.capability-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.capability-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.capability-card .card-highlight {
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.375rem 0.75rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

/* Metric list within scoring card */
.metric-list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-body);
}

.metric-item .metric-emoji {
  font-size: 0.875rem;
}

.metric-item strong {
  color: var(--on-surface);
}


/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  background: var(--surface-container-low);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(to right, var(--primary-dim), var(--primary), var(--primary-dim));
  border-radius: var(--radius-full);
  z-index: 0;
}

.step-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  transition: transform var(--transition-smooth);
}

.step-card:hover .step-number {
  transform: scale(1.15);
}

.step-card h3 {
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.9375rem;
  max-width: 300px;
  margin: 0 auto;
}


/* ============================================
   APP PREVIEW SECTION
   ============================================ */
.app-preview {
  background: var(--surface);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-4xl);
}

.preview-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.browser-frame {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface-container);
  border-bottom: 1px solid var(--border-subtle);
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot--red { background: #ff5f56; }
.browser-dot--yellow { background: #ffbd2e; }
.browser-dot--green { background: #27c93f; }

.browser-url {
  flex: 1;
  margin-left: 0.75rem;
  padding: 0.375rem 1rem;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.browser-url .lock-icon {
  color: var(--success);
  font-size: 0.75rem;
}

.browser-content {
  padding: 0;
}

.browser-content img {
  width: 100%;
  display: block;
}

/* Glow effect around preview */
.preview-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  border-radius: var(--radius-2xl);
  z-index: -1;
}


/* ============================================
   RESOURCES & TIPS SECTION
   ============================================ */
.resources {
  background: var(--surface-container-low);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.guidelines-card {
  padding: var(--space-xl);
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.guidelines-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}

.guidelines-card--dos {
  border-left: 4px solid var(--success);
}

.guidelines-card--dos h3 {
  color: var(--success);
}

.guidelines-card--donts {
  border-left: 4px solid var(--error);
}

.guidelines-card--donts h3 {
  color: var(--error);
}

.guidelines-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guidelines-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.5;
}

.guidelines-list li .list-icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1rem;
}

.guidelines-card--dos .list-icon { color: var(--success); }
.guidelines-card--donts .list-icon { color: var(--error); }


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-heading);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-brand .logo .logo-emoji {
  font-size: 1.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-col a {
  display: block;
  padding: 0.375rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--primary-dim);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-smooth);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -15px); }
  66% { transform: translate(-10px, 10px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities-grid .capability-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 249, 251, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid .capability-card:last-child {
    max-width: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .steps-grid::before {
    display: none;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}
