/* ===========================
   FIXR Landing Page
   =========================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg:             #0A0F0D;
  --bg-alt:         #0F1512;
  --surface:        rgba(255, 255, 255, 0.04);
  --surface-hover:  rgba(255, 255, 255, 0.07);
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.15);
  --text:           #F1F5F3;
  --text-secondary: #8A9B91;
  --text-muted:     #5C6B63;
  --accent:         #4ADE80;
  --accent-hover:   #6EE7A0;
  --accent-dim:     rgba(74, 222, 128, 0.10);
  --teal:           #2DD4BF;
  --teal-dim:       rgba(45, 212, 191, 0.10);
  --amber:          #FBBF24;
  --amber-dim:      rgba(251, 191, 36, 0.10);
  --purple:         #A78BFA;
  --purple-dim:     rgba(167, 139, 250, 0.10);
  --red:            #F87171;
  --radius:         14px;
  --radius-sm:      10px;
  --radius-xs:      6px;
  --max-w:          1140px;
  --font-display:   'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:           cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 11px 24px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.25);
}
.btn--primary:active { transform: scale(0.97); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(74, 222, 128, 0.4);
}
.btn--outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.btn--outline:active { transform: scale(0.97); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

.btn--lg {
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 13, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

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

.navbar__logo { display: flex; align-items: center; }
.navbar__logo-img { height: 34px; width: auto; }

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

.navbar__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.navbar__link:hover { color: var(--text); }

.navbar__cta { margin-left: 4px; }

.navbar__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.navbar__burger.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(10, 15, 13, 0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.mobile-menu__link:hover { color: var(--text); }

.mobile-menu__cta { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 222, 128, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: rgba(74, 222, 128, 0.15);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__glow--2 {
  width: 350px;
  height: 350px;
  background: rgba(45, 212, 191, 0.1);
  bottom: -80px;
  right: 10%;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(74, 222, 128, 0.15);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero__title--italic {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hero__trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Segment (Section blocks) ---------- */
.segment {
  padding: 100px 0;
}

.segment--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.segment__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 16px;
}

.segment__label--teal { color: var(--teal); }

.segment__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.segment__title em {
  font-style: italic;
  color: var(--accent);
}

.segment--alt .segment__title em,
.segment__label--teal + .segment__title em {
  color: var(--teal);
}

.segment__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.card--teal:hover {
  border-color: rgba(45, 212, 191, 0.25);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 20px;
}

.card__icon--teal  { background: var(--teal-dim);   color: var(--teal);   }
.card__icon--amber  { background: var(--amber-dim);  color: var(--amber);  }
.card__icon--purple { background: var(--purple-dim); color: var(--purple); }

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- Flow Section ---------- */
.flow-section {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow {
  max-width: 680px;
  margin: 0 auto 56px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow:last-child { margin-bottom: 0; }

.flow__heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 28px;
}

.flow--teal .flow__heading { color: var(--teal); }

.flow__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow__step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.flow__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.flow--teal .flow__number {
  background: var(--teal-dim);
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.2);
}

.flow__content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.flow__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow__connector {
  width: 2px;
  height: 24px;
  margin-left: 19px;
  background: linear-gradient(to bottom, rgba(74, 222, 128, 0.25), rgba(74, 222, 128, 0.05));
}

.flow--teal .flow__connector {
  background: linear-gradient(to bottom, rgba(45, 212, 191, 0.25), rgba(45, 212, 191, 0.05));
}

/* ---------- Why Section ---------- */
.why-section {
  padding: 100px 0;
}

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

.why-item {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}

.why-item:hover {
  border-color: var(--border-hover);
}

.why-item__marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 16px;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Sign-Up Section ---------- */
.signup-section {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.signup__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.signup__title em {
  font-style: italic;
  color: var(--accent);
}

.signup__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.signup__perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signup__perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.signup__perk svg { color: var(--accent); flex-shrink: 0; }

/* Form */
.signup__form-wrap {
  min-height: 480px;
}

.signup-form,
.signup-success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.signup-form__heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.signup-form__toggle {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.toggle-btn--active {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(74, 222, 128, 0.2);
}

.toggle-btn:not(.toggle-btn--active):hover {
  color: var(--text-secondary);
}

.signup-form__field {
  margin-bottom: 18px;
}

.signup-form__field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.signup-form__field input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form__field input::placeholder {
  color: var(--text-muted);
}

.signup-form__field input:focus {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}

.signup-form__error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  color: var(--red);
}

.signup-form__submit {
  width: 100%;
  margin-bottom: 16px;
}

.signup-form__legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.signup-form__legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(10, 15, 13, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success */
.signup-success {
  text-align: center;
  padding: 48px 32px;
}

.signup-success__icon {
  color: var(--accent);
  margin-bottom: 20px;
  animation: successPop 0.5s var(--ease);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.signup-success h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.signup-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.signup-success__badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.signup-success__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

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

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  height: 30px;
  width: auto;
  margin-bottom: 12px;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .signup {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .signup__info { text-align: center; }
  .signup__perks { align-items: center; }
  .footer__top {
    flex-direction: column;
    gap: 36px;
  }
  .footer__nav {
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
  .mobile-menu { display: flex; }

  .hero { padding: 72px 0 60px; }

  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .segment { padding: 72px 0; }
  .flow-section { padding: 72px 0; }
  .why-section { padding: 72px 0; }
  .signup-section { padding: 72px 0; }

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

  .flow { padding: 28px 24px; }

  .signup-form,
  .signup-success {
    padding: 28px 22px;
  }

  .footer__nav { gap: 32px; }
}

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

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

  .signup-form__toggle {
    flex-direction: column;
  }

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

  .footer__nav {
    flex-direction: column;
    gap: 28px;
  }
}
