/* ==============================
   1. Design Tokens
   ============================== */
:root {
  /* Surfaces */
  --color-bg: #ded9d3ff;
  --color-surface: #FFFFFF;
  --color-dark: #1A2A3A;

  /* Text */
  --color-heading: #1A2A3A;
  --color-text: #374151;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;

  /* Brand */
  --color-brand: #C85B1A;
  --color-brand-hover: #A84D16;
  --color-teal: #2A5D6A;

  /* Borders */
  --color-border: #D1CBBD;
  --color-border-light: #E0DDD8;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-width: 1080px;
  --nav-height: 56px;
}

/* ==============================
   2. Reset / Base
   ============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background-color: var(--color-brand);
  color: white;
}

/* ==============================
   3. Layout
   ============================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ==============================
   4. Components — Navigation
   ============================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(222, 217, 211, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  transform: scaleX(-1);
}

.nav__logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__logo-fox {
  color: var(--color-brand);
}

.nav__logo-hire {
  color: var(--color-heading);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--color-teal);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__signin {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.nav__signin:hover {
  color: var(--color-heading);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-heading);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: rgba(222, 217, 211, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 12px;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 0;
  transition: color 0.15s ease;
}

.nav__mobile-link:hover {
  color: var(--color-teal);
}

/* ==============================
   5. Components — Buttons
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-brand);
  color: white;
  padding: 10px 24px;
}

.btn--primary:hover {
  background-color: var(--color-brand-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text-secondary);
  padding: 10px 24px;
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text-muted);
  color: var(--color-heading);
}

.btn--dark {
  background-color: var(--color-dark);
  color: white;
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--dark:hover {
  background-color: #0f1d28;
  transform: translateY(-1px);
}

.btn--large {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--nav {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

/* ==============================
   6. Hero Section
   ============================== */
.hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 80px;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__content {
  flex: 1 1 55%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-teal);
  background-color: rgba(42, 93, 106, 0.08);
  border: 1px solid rgba(42, 93, 106, 0.15);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  margin-bottom: 20px;
}

.hero__title-accent {
  color: var(--color-brand);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.hero__image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
}

.hero__image img {
  max-width: 340px;
  width: 100%;
}

/* ==============================
   7. Problem Section
   ============================== */
.problem {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.problem__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.problem__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
  margin-bottom: 20px;
}

.problem__text {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.problem__text strong {
  color: var(--color-heading);
  font-weight: 600;
}

.problem__highlight {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-teal);
}

/* ==============================
   8. How It Works Section
   ============================== */
.workflow {
  padding-top: 96px;
  padding-bottom: 96px;
}

.workflow__header {
  text-align: center;
  margin-bottom: 80px;
}

.workflow__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.workflow__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.workflow__steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Step rows */
.step {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
}

.step--reverse {
  flex-direction: row-reverse;
}

.step__image {
  flex: 0 0 27%;
  max-width: 27%;
}

.step__image img {
  width: 100%;
  border-radius: 8px;
}

.step__content {
  flex: 1;
}

.step__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-teal);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  margin-right: 10px;
  vertical-align: middle;
}

.step__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.step__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ==============================
   9. Features Section
   ============================== */
.features {
  background-color: var(--color-dark);
  padding: 96px 0;
}

.features__header {
  text-align: center;
  margin-bottom: 56px;
}

.features__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.features__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon--teal {
  background-color: rgba(42, 93, 106, 0.2);
  color: #5ba3b5;
}

.feature-card__icon--orange {
  background-color: rgba(200, 91, 26, 0.2);
  color: #e08a55;
}

.feature-card__icon i {
  width: 20px;
  height: 20px;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ==============================
   10. CTA Section
   ============================== */
.cta {
  background-color: var(--color-brand);
  padding: 80px 0;
  text-align: center;
}

.cta__title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.cta__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   11. Footer
   ============================== */
.footer {
  background-color: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-img {
  height: 22px;
  width: auto;
  transform: scaleX(-1);
}

.footer__logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer__logo-fox {
  color: var(--color-brand);
}

.footer__logo-hire {
  color: white;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: white;
}

/* ==============================
   12. Animations
   ============================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-float {
    animation: none;
  }
}

/* ==============================
   13. Responsive — Tablet (max 768px)
   ============================== */
@media (max-width: 768px) {
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__hamburger {
    display: block;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 48px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__note {
    text-align: center;
  }

  .hero__image img {
    max-width: 240px;
  }

  .step {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .step--reverse {
    flex-direction: column;
  }

  .step__image {
    flex: none;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }

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

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .workflow__header {
    margin-bottom: 48px;
  }

  .workflow__steps {
    gap: 56px;
  }

  .section {
    padding: 64px 0;
  }

  .workflow {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .features {
    padding: 64px 0;
  }

  .cta {
    padding: 56px 0;
  }

  .cta__title {
    font-size: 1.5rem;
  }
}

/* ==============================
   14. Responsive — Small mobile (max 480px)
   ============================== */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .problem__title {
    font-size: 1.375rem;
  }

  .workflow__title,
  .features__title {
    font-size: 1.375rem;
  }

  .step__title {
    font-size: 1.25rem;
  }

  .feature-card {
    padding: 24px;
  }
}
