/* ===========================================
   REPARY | Design System
   =========================================== */

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1040px;
  --radius: 10px;
  --t: 180ms ease;
}

[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-alt: #111114;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.06);
  --border-h: rgba(255, 255, 255, 0.12);
  --text: #e8e8ec;
  --text-2: #85858f;
  --text-3: #4e4e56;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.10);
  --blue-glow: rgba(59, 130, 246, 0.20);
  --nav-bg: rgba(10, 10, 12, 0.82);
  --hero-glow: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(59, 130, 246, 0.10), transparent 70%);
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --surface: rgba(0, 0, 0, 0.025);
  --border: rgba(0, 0, 0, 0.06);
  --border-h: rgba(0, 0, 0, 0.12);
  --text: #111114;
  --text-2: #62626b;
  --text-3: #a1a1a9;
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.07);
  --blue-glow: rgba(37, 99, 235, 0.12);
  --nav-bg: rgba(250, 250, 250, 0.82);
  --hero-glow: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%);
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* ======= NAV ======= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav__logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

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

.nav__lang {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.04em;
  transition: color var(--t);
}

.nav__lang:hover {
  color: var(--text);
}

.nav__lang--active {
  color: var(--text);
  font-weight: 600;
}

.nav__sep {
  color: var(--text-3);
  font-size: 12px;
  user-select: none;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}

.theme-btn:hover {
  color: var(--text);
  border-color: var(--border-h);
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: block;
}

/* ======= HERO ======= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92vh;
  min-height: 92svh;
  padding: 52px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}

.hero__body {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 0 24px;
}

.hero__title {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(165deg, var(--text) 45%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto 36px;
}

.hero__ctas {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 9px;
  font: 500 14px/1 var(--font);
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow var(--t), opacity var(--t);
}

.btn:active {
  transform: scale(0.98);
}

.btn--fill {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 1px 12px var(--blue-glow);
}

.btn--fill:hover {
  box-shadow: 0 2px 20px var(--blue-glow);
}

.btn--outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn__arrow {
  transition: transform var(--t);
}

.btn:hover .btn__arrow {
  transform: translateX(2px);
}

/* ======= SECTION HELPERS ======= */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section__heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section__sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 480px;
}

/* ======= PATHS (Homeowner / Worker) ======= */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.path {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t);
}

.path:hover {
  border-color: var(--border-h);
}

.path--accent {
  background: var(--blue-soft);
  border-color: rgba(59, 130, 246, 0.12);
}

.path--accent:hover {
  border-color: var(--blue);
}

.path__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}

.path__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 20px;
}

.path__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}

.path__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.45;
}

/* ======= HOW IT WORKS ======= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.step {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ======= CATEGORIES ======= */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 36px;
}

.cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t), border-color var(--t), background var(--t);
}

.cat:hover {
  color: var(--text);
  border-color: var(--border-h);
}

.cat__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
  opacity: 0.6;
  transition: opacity var(--t);
}

.cat:hover .cat__icon {
  opacity: 1;
}

/* ======= VALUES ======= */
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.value {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.value__icon {
  color: var(--blue);
  margin-bottom: 16px;
  opacity: 0.7;
}

.value__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.value__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ======= FAQ ======= */
.faq-list {
  max-width: 640px;
  margin-top: 36px;
}

.faq {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  transition: color var(--t);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--text-3);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--t);
}

.faq[open] .faq__q::after {
  content: '\2212';
}

.faq__q:hover {
  color: var(--blue);
}

.faq__a {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  padding-bottom: 20px;
}

/* ======= FOOTER ======= */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer__left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-3);
}

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

.footer__links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color var(--t);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  width: 100%;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .paths {
    grid-template-columns: 1fr;
  }

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

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

  .path {
    padding: 28px;
  }

  .cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__left {
    flex-direction: column;
    gap: 4px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cats {
    grid-template-columns: 1fr;
  }
}