/* ============================================================
   FORMETRIX LANDING HERO (index.html)
   ============================================================ */

.fm-fullpage {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px;
}

.fm-fullpage-inner {
  max-width: 900px;
  width: 100%;
  margin: auto;
  border-radius: 28px;
  padding: 32px 32px 22px;
  background:
    radial-gradient(circle at 12% 12%,
      rgba(148, 163, 184, 0.20) 0%,
      rgba(148, 163, 184, 0.08) 28%,
      transparent 58%),
    radial-gradient(circle at 100% 100%,
      rgba(45, 212, 191, 0.16) 0%,
      rgba(45, 212, 191, 0.07) 30%,
      transparent 60%),
    linear-gradient(145deg, #0f1426 0%, #0b1022 50%, #0a0d1c 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.fm-main-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

/* App icon */
.fm-hero-icon {
  width: clamp(140px, 24vw, 190px);
  height: clamp(140px, 24vw, 190px);
  border-radius: 40px;
  background: linear-gradient(145deg, #1C1C1C, #0E0E0E);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fm-hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text */
.fm-hero-text h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 3.8vw, 36px);
  letter-spacing: 0.2em;
  font-weight: 400;
  font-family: 'Sora', system-ui, -apple-system, "Inter", sans-serif;
  text-shadow: 2px 2px 0px rgba(35, 35, 35, 0.55); /* sharp, no blur */
}

.fm-coming-label {
  margin: 10;
  font-size: 14px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.fm-try-text {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Platforms */
.fm-platforms-block {
  margin-top: 18px;
  width: 100%;
}

.fm-platforms-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-align: left;
}

.fm-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fm-platform-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 18px;
  text-decoration: none;
  overflow: hidden;
  color: var(--text-main);

  transform: translateY(0) scale(1);

  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fm-platform-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  opacity: 1;
  pointer-events: none;
}

/* .fm-platform-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.22);
} */

.fm-platform-icon-circle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(248, 250, 252, 0.96), rgba(148, 163, 184, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 8px 18px rgba(15, 23, 42, 0.95);
}

.fm-platform-icon-text {
  font-size: 16px;
  color: #020617;
}

.fm-platform-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fm-platform-title {
  font-size: 14px;
  font-weight: 600;
}

.fm-platform-sub {
  font-size: 12px;
  color: var(--text-soft);
}

/* Powered by AEV Labs */
.fm-powered-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.fm-powered-row span:hover {
  opacity: 0.8;
}

.fm-aev-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.fm-powered-text {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-main);
}

/* Documentation Card */
.fm-docs-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  margin-top: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.fm-docs-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 89, 68, 0.331);
box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 8px 18px rgba(15, 23, 42, 0.95);
  background: linear-gradient(135deg, rgba(8, 89, 68, 0.5) 0%, rgba(8, 89, 68, 0.2) 100%);
  color: #ffffff4d;
   backdrop-filter: blur(8px);
}
.fm-docs-icon svg{
    color :#fff
}

.fm-docs-content {
  flex: 1;
}

.fm-docs-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.fm-docs-content p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.fm-docs-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}

.fm-docs-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

/* Roles Section (Outside main) */
.fm-roles-section {
  width: 100%;
  padding: 3rem 1.5rem;
  background: transparent;
  backdrop-filter: none;
  border-top: none;
}

.fm-roles-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(33, 29, 48, 0.05);
  backdrop-filter: var(--backdrop-blur);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.fm-roles-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.fm-roles-subtitle {
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.fm-roles-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.fm-role-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.3s ease;
}

.fm-role-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

.fm-role-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fm-role-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.fm-role-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0);
  color: #fff;
  overflow: visible;
  position: relative;
}

/* Lottie sizing inside role icons */
.fm-role-icon dotlottie-player {
  width: 200px;
  height: 200px;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.fm-role-info {
  flex: 1;
  text-align: left;
}

.fm-role-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fm-role-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.fm-role-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.fm-role-item.open .fm-role-chevron {
  transform: rotate(180deg);
}

.fm-role-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  opacity: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.fm-role-item.open .fm-role-content {
  padding: 0 1.25rem 1.25rem 1.25rem;
}

.fm-role-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.fm-role-content p {
  margin: 0 0 1rem 0;
}

/* CTA Buttons */
.fm-role-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}

.fm-role-cta:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.fm-role-cta-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.fm-role-cta-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.fm-role-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive tweaks */
@media (max-width: 840px) {
  .fm-fullpage-inner {
    padding: 26px 22px 18px;
  }

  .fm-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .fm-fullpage-inner {
    padding: 22px 18px 16px;
    border-radius: 22px;
    gap: 18px;
  }

  .fm-hero-text h1 {
    font-size: 24px;
  }

  .fm-try-text {
    font-size: 14px;
  }

  .fm-platform-btn {
    padding: 9px 11px;
  }

  .fm-aev-logo {
    height: 52px;
  }
}