/* ================================================
   Formova Landing — Design System & Styles
   Primary: #0D9488 (teal), Accent: #F97316 (orange)
   Background: #FAFAF9, Text: #1C1917
   Fonts: Bricolage Grotesque (headings), DM Sans (body)
   ================================================ */

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

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --card: #F5F5F4;
  --border: #E7E5E4;
  --border-hover: #D6D3D1;
  --text: #1C1917;
  --text-secondary: #57534E;
  --muted: #78716C;
  --primary: #0D9488;
  --primary-hover: #0F766E;
  --primary-glow: rgba(13, 148, 136, 0.15);
  --accent: #F97316;
  --accent-hover: #EA580C;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --secondary: #5EEAD4;
  --green: #16A34A;
  --red: #DC2626;
  --orange: #F97316;
  --cyan: #0D9488;
  --blue: #0EA5E9;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm { padding: 8px 20px; font-size: 0.85rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }

.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--accent:hover {
  background: linear-gradient(135deg, var(--accent-hover), #C2410C);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #115E59);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.25);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 32px;
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(13, 148, 136, 0.05);
}

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

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.nav--scrolled {
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  padding: 10px 0;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  z-index: 1001;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.nav__logo-text { letter-spacing: -0.02em; }

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

.nav__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__cta { border-radius: var(--radius-full); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

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

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  opacity: 0.12;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
  opacity: 0.08;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__micro {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Hero Image --- */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__image {
  position: relative;
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Problem Section --- */
.problem { padding: 100px 0; }

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

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

.problem__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.problem__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.problem__card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.problem__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem__icon--red {
  background: rgba(220, 38, 38, 0.10);
  color: var(--red);
}

/* --- Steps (How It Works) --- */
.steps {
  padding: 100px 0;
  background: var(--surface);
}

.steps__header {
  text-align: center;
  margin-bottom: 64px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps__grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card__number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step-card:hover .step-card__icon {
  border-color: var(--primary);
  box-shadow: 0 0 24px var(--primary-glow);
}

.step-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* --- Features --- */
.features { padding: 100px 0; }

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

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before { opacity: 1; }

.feature-card:last-child {
  grid-column: 1 / -1;
}

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

.feature-card__icon--teal {
  background: rgba(13, 148, 136, 0.10);
  color: var(--primary);
}

.feature-card__icon--orange {
  background: rgba(249, 115, 22, 0.10);
  color: var(--orange);
}

.feature-card__icon--red {
  background: rgba(220, 38, 38, 0.10);
  color: var(--red);
}

.feature-card__icon--cyan {
  background: rgba(13, 148, 136, 0.10);
  color: var(--cyan);
}

.feature-card__icon--blue {
  background: rgba(14, 165, 233, 0.10);
  color: var(--blue);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(13, 148, 136, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* --- Comparison --- */
.comparison { padding: 100px 0; background: var(--surface); }

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

.comparison__table {
  max-width: 820px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison__table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison__table th,
.comparison__table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.comparison__table thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  padding-bottom: 20px;
}

.comparison__table tbody td {
  color: var(--text-secondary);
}

.comparison__highlight {
  color: var(--text) !important;
  background: rgba(13, 148, 136, 0.04);
}

.check {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

.cross {
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Social Proof --- */
.social-proof { padding: 80px 0; }

.social-proof__inner {
  max-width: 700px;
  margin: 0 auto;
}

.social-proof__quote { text-align: center; }

.social-proof__icon {
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 24px;
}

.social-proof__quote blockquote p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.social-proof__author {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.social-proof__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.social-proof__name { font-weight: 600; font-size: 0.95rem; }
.social-proof__role { font-size: 0.8rem; color: var(--muted); }

/* --- FAQ --- */
.faq { padding: 100px 0; }

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

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

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

.faq__item[open] {
  border-color: rgba(13, 148, 136, 0.3);
  background: var(--surface);
}

.faq__question {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  user-select: none;
}

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

.faq__chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--muted);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq__answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta { padding: 100px 0; }

.cta__inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.08;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
}

.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}

.store-badge:hover {
  background: #292524;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.2);
}

.store-badge small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1;
}

.store-badge span {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.cta__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
  position: relative;
}

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

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

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

.footer__col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s;
}

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

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

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

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions { justify-content: center; }

  .hero__micro { text-align: center; }

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

  .feature-card:last-child {
    grid-column: 1 / -1;
  }

  .steps__grid::before { display: none; }

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

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger { display: flex; }

  .nav__links.nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1000;
  }

  .nav__links--open .nav__link { font-size: 1.3rem; }

  .nav__burger--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__burger--open span:nth-child(2) { opacity: 0; }
  .nav__burger--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__image { max-width: 360px; }

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

  .feature-card:last-child {
    grid-column: auto;
  }

  .comparison__table th,
  .comparison__table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .comparison__table th:first-child,
  .comparison__table td:first-child {
    min-width: 130px;
  }

  .cta__inner { padding: 40px 24px; }

  .store-badge {
    padding: 10px 20px;
    flex: 1;
    justify-content: center;
    min-width: 160px;
  }

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 1.85rem; }
  .section-title { font-size: 1.75rem; }

  .cta__buttons { flex-direction: column; align-items: center; }
  .store-badge { width: 100%; max-width: 260px; }
}
