/* HireMate Design System - Light Default, Dark Toggle */
:root {
  /* LIGHT MODE (Default) */
  --primary: #000000;
  --primary-hover: #333333;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f4f4f5;
  --text-main: #09090b;
  /* Dark text for light bg */
  --text-muted: #71717a;
  --border-light: #e4e4e7;
  --white: #ffffff;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

[data-theme="dark"] {
  /* DARK MODE */
  --primary: #ffffff;
  --primary-hover: #e0e0e0;
  --background: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --text-main: #fafafa;
  /* Light text for dark bg */
  --text-muted: #a1a1aa;
  --border-light: #27272a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
  width: 100%;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  overflow-x: hidden;
  width: 100%;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--btn-border);
  cursor: pointer;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--text-main);
  color: var(--background);
  border-color: var(--text-main);
}

.btn-primary:hover {
  background: var(--background);
  color: var(--text-main);
  border-color: var(--text-main);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--text-main);
}

.btn-outline:hover {
  background: var(--text-main);
  color: var(--background);
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--text-main);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  display: inline-block;
}

.title-container {
  text-align: center;
  width: 100%;
}

/* Header */
header {
  padding: 1rem 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

/* Marquee Section */
.marquee-section {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  margin-top: -1px;
  /* Overlap border */
}

.marquee-content {
  display: flex;
  gap: 4rem;
  animation: scroll 20s linear infinite;
  width: max-content;
}

.marquee-item {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.marquee-item::after {
  content: "•";
  color: var(--text-main);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Toggle Button */
#theme-toggle {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 1rem;
  transition: all 0.2s ease;
}

#theme-toggle:hover {
  background: var(--surface);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--background);
  transition: background-color 0.3s ease;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero p {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Ecosystem Section */
.mission {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-light);
  transition: border-color 0.3s ease;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.card-glass {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.step-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Services */
.services {
  padding: var(--spacing-xl) 0;
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--text-main);
  background: var(--surface-hover);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-main);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: transparent;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA Section */
.cta {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.cta>.container>p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

/* Split CTA Section */
.split-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card {
  border: 1px solid var(--border-light);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--surface);
  border-radius: 4px;
}

.cta-card:hover {
  border-color: var(--text-main);
  background: var(--surface-hover);
  transform: translateY(-4px);
}

.cta-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 600;
}

.cta-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-card .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  /* Fix Header Alignment & Width - Single Line Layout */
  header {
    width: 100%;
    padding: 0.75rem 0;
    overflow-x: hidden;
    position: relative;
  }

  nav {
    flex-direction: row;
    /* Force row layout */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  .logo-img {
    height: 32px;
    /* Smaller logo for mobile */
    max-height: 32px;
    width: auto;
    margin: 0;
    /* Remove centering margin */
    display: block;
  }

  nav>div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    /* Shrink to fit content */
    max-width: none;
    flex-wrap: nowrap;
    /* Prevent wrapping */
  }

  /* Marquee Fix */
  .marquee-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-top: 1rem;
    word-wrap: break-word;
  }

  .grid-2,
  .split-cta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title,
  .cta h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .btn {
    width: 100%;
  }

  /* Compact nav button for single line */
  nav .btn {
    width: auto;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }

  #theme-toggle {
    margin-left: 0.25rem;
    padding: 0.25rem;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .cta-card,
  .feature-card {
    padding: 1.5rem 1rem;
  }
}

/* Small Screen / iPhone SE Specific Fixes */
@media (max-width: 380px) {
  nav>div {
    gap: 0.5rem;
    /* Reduce gap between button and toggle */
    max-width: 100%;
  }

  /* Target the Partner button specifically if possible, or generic btn in nav */
  .btn {
    padding: 0.6rem 1rem !important;
    /* Force smaller padding */
    font-size: 0.75rem !important;
  }

  .logo-img {
    height: 35px;
    /* Slightly smaller logo */
  }
}

```