/* Fervio AI — Landing styles */

:root {
  --bg-deep: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --border: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(0, 168, 130, 0.35);
  --accent: #00a884;
  --accent-2: #4f46e5;
  --accent-glow: rgba(0, 168, 130, 0.18);
  --text: #111111;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: #008f6d;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.2s, box-shadow var(--transition);
}

.btn:hover {
  background: linear-gradient(135deg, #00c896, #6366f1);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.logo-icon {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-list a:hover {
  color: var(--accent);
}

.header-cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Breadcrumbs */
.breadcrumbs {
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 0.5rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.breadcrumbs-list li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-dim);
}

.breadcrumbs-list a {
  color: var(--text-muted);
}

.breadcrumbs-list a:hover {
  color: var(--accent);
}

.breadcrumbs-list li[aria-current="page"] {
  color: var(--text-muted);
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Hero */
.hero {
  position: relative;
  padding: 3rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 12s ease-in-out infinite;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 168, 130, 0.12), transparent 70%);
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1), transparent 70%);
  animation-delay: -6s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 168, 130, 0.08);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-left h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-left > p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

/* Form card */
.form-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.form-card__header {
  margin-bottom: 1.25rem;
}

.form-card__header h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-card__header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Problem-solution */
.problem-solution {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, rgba(241, 245, 249, 0.9) 50%, transparent);
}

.pains-block {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(254, 242, 242, 0.8);
}

.pains-title {
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 1rem;
}

.pains-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.pains-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
}

.problem-solution-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-solution-list > li {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.problem-solution-list > li:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.problem-solution-item-svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
}

.problem-solution-item-svg svg {
  width: 100%;
  height: 100%;
}

.problem-solution-list h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.problem-solution-list p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* How it works */
.how-its-work {
  padding: 5rem 0;
}

.how-its-work-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.how-its-work-list::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  opacity: 0.2;
}

.how-its-work-list > li {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.how-its-work-item-svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(0, 168, 130, 0.06);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.how-its-work-list > li:hover .how-its-work-item-svg {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--accent-glow);
}

.how-its-work-item-svg svg {
  width: 100%;
  height: 100%;
}

.how-its-work-list h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}

.how-its-work-list p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Numbers */
.numbers {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(0, 168, 130, 0.06), rgba(79, 70, 229, 0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.numbers-list h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.numbers-list p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Reviews */
.review {
  padding: 5rem 0;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.review-list > li {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition);
}

.review-list > li:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.review-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.review-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.review-location {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.125rem;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.review-span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 168, 130, 0.08);
  border: 1px solid rgba(0, 168, 130, 0.2);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* FAQ */
.faq {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, rgba(241, 245, 249, 0.7));
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(0, 168, 130, 0.05);
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA */
.cta {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0, 168, 130, 0.08), transparent);
  pointer-events: none;
}

.cta-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta-left h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-left > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-top {
  margin-bottom: 2rem;
}

.footer-lega-disclaimer,
.footer-disclaimer-investing-risk {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-bottom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-bottom-list a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-bottom-list a:hover {
  color: var(--accent);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-page a {
  color: var(--accent);
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.contact-card svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Responsive — Tablet */
@media (max-width: 1024px) {
  .hero-wrapper,
  .cta-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-left {
    text-align: center;
  }

  .hero-left > p,
  .hero-features {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features {
    align-items: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .problem-solution-list {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .how-its-work-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-its-work-list::before {
    display: none;
  }

  .numbers-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .review-list {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .burger {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .how-its-work-list {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .numbers-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .cta-left {
    text-align: center;
  }

  .cta-checklist {
    align-items: center;
  }

  .footer-bottom-list {
    flex-direction: column;
    gap: 0.75rem;
  }
}

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

  .form-card {
    padding: 1.25rem;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .problem-solution,
  .how-its-work,
  .review,
  .faq,
  .cta {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-orb {
    animation: none;
  }

  .btn:hover,
  .problem-solution-list > li:hover,
  .review-list > li:hover,
  .contact-card:hover {
    transform: none;
  }
}
