:root {
  --fm-bg: #0a0a1a;
  --fm-bg-gradient: radial-gradient(circle at 10% 5%, rgba(108, 75, 255, 0.4) 0%, transparent 25%),
                    radial-gradient(circle at 20% 10%, rgba(108, 75, 255, 0.2) 0%, transparent 40%),
                    radial-gradient(circle at 80% 80%, rgba(255, 214, 108, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 40% 60%, rgba(183, 154, 255, 0.1) 0%, transparent 40%),
                    #0a0a1a;
  --fm-purple: #7b5cff;
  --fm-purple-soft: #b79aff;
  --fm-purple-dark: #5a3fd9;
  --fm-yellow: #ffd66c;
  --fm-yellow-bright: #ffe599;
  --fm-text-main: #ffffff;
  --fm-text-muted: #a8a5b8;
  --fm-border-subtle: rgba(255, 255, 255, 0.12);
  --fm-glass-light: rgba(255, 255, 255, 0.06);
  --fm-glass-hover: rgba(255, 255, 255, 0.1);
  --fm-radius-large: 28px;
  --fm-radius-medium: 16px;
  --fm-radius-pill: 999px;
  --fm-shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.4),
                     0 8px 16px rgba(0, 0, 0, 0.2);
  --fm-shadow-hover: 0 32px 80px rgba(0, 0, 0, 0.5),
                      0 12px 24px rgba(0, 0, 0, 0.3);
  --fm-glow-purple: 0 0 40px rgba(123, 92, 255, 0.3);
  --fm-glow-yellow: 0 0 40px rgba(255, 214, 108, 0.2);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Inter', sans-serif;
  color: var(--fm-text-main);
  background: var(--fm-bg-gradient);
  min-height: 100vh;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

/* Wrapper */

.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Nav */

.fm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.fm-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fm-logo-image {
  height: 44px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.fm-logo-image:hover {
  transform: translateY(-2px);
}

.fm-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7b5cff 0%, #ffd66c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(123, 92, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-logo-mark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(123, 92, 255, 0.5);
}

.fm-logo-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #b79aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fm-nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.fm-nav-links a {
  color: var(--fm-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.fm-nav-links a:hover {
  color: var(--fm-text-main);
}

.fm-nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #7b5cff, #b79aff);
  box-shadow: 0 4px 16px rgba(123, 92, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 92, 255, 0.6);
}

/* Mobile menu toggle */
.fm-menu-checkbox {
  display: none;
}

.fm-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.fm-hamburger,
.fm-hamburger::before,
.fm-hamburger::after {
  width: 24px;
  height: 2px;
  background: var(--fm-text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
}

.fm-hamburger {
  left: 8px;
  top: 19px;
}

.fm-hamburger::before,
.fm-hamburger::after {
  content: '';
  left: 0;
}

.fm-hamburger::before {
  top: -8px;
}

.fm-hamburger::after {
  top: 8px;
}

.fm-menu-checkbox:checked + .fm-mobile-menu-toggle .fm-hamburger {
  background: transparent;
}

.fm-menu-checkbox:checked + .fm-mobile-menu-toggle .fm-hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.fm-menu-checkbox:checked + .fm-mobile-menu-toggle .fm-hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Layout */

.fm-main {
  display: flex;
  flex-direction: column;
  gap: 72px;
  flex: 1;
}

/* Hero */

.fm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.fm-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--fm-radius-pill);
  background: rgba(40, 26, 88, 0.9);
  border: 1px solid rgba(255, 214, 108, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fm-yellow);
}

.fm-hero h1 {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #b79aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fm-hero-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fm-text-muted);
  max-width: 540px;
  font-weight: 400;
}

.fm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--fm-radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out, border-color 0.12s ease-out;
}

.fm-btn-primary {
  background: linear-gradient(135deg, #7b5cff, #b79aff);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--fm-shadow-soft), var(--fm-glow-purple);
}

.fm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--fm-shadow-hover), var(--fm-glow-purple);
  background: linear-gradient(135deg, #6a4de6, #a889ff);
}

.fm-btn-ghost {
  background: var(--fm-glass-light);
  border-color: var(--fm-border-subtle);
  color: var(--fm-text-main);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.fm-btn-ghost:hover {
  background: var(--fm-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.fm-btn-large {
  padding: 14px 24px;
  font-size: 15px;
}

.fm-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--fm-text-muted);
}

/* Glass card / mockup */

.fm-hero-mockup {
  display: flex;
  justify-content: flex-end;
}

.fm-glass-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  border-radius: var(--fm-radius-large);
  border: 1px solid var(--fm-border-subtle);
  background: linear-gradient(135deg, 
              rgba(255, 255, 255, 0.1) 0%, 
              rgba(183, 154, 255, 0.08) 100%);
  backdrop-filter: blur(40px);
  box-shadow: var(--fm-shadow-soft), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fm-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fm-shadow-hover), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              var(--fm-glow-purple);
}

.fm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.fm-dots {
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 0,
    rgba(255, 255, 255, 0.4) 6px,
    transparent 6px,
    transparent 10px
  );
  opacity: 0.9;
}

.fm-card-title {
  font-size: 13px;
  color: var(--fm-text-muted);
}

.fm-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.fm-card-stage {
  margin: 0;
  font-weight: 600;
}

.fm-card-list {
  margin: 0;
  padding-left: 18px;
  color: var(--fm-text-muted);
}

.fm-card-list li + li {
  margin-top: 4px;
}

.fm-timer-pill {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: var(--fm-radius-pill);
  background: rgba(5, 3, 24, 0.9);
  border: 1px solid rgba(183, 154, 255, 0.7);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.fm-timer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fm-text-muted);
}

.fm-timer-value {
  font-family: 'SF Mono', ui-monospace, Menlo, Monaco, monospace;
  font-weight: 600;
  color: var(--fm-purple-soft);
}

/* Sections */

.fm-section {
  text-align: center;
}

.fm-section h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #b79aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fm-section-sub {
  margin: 0 auto;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fm-text-muted);
}

.fm-section-features {
  margin-top: 8px;
}

.fm-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.fm-feature-card {
  padding: 24px;
  text-align: left;
  border-radius: var(--fm-radius-medium);
  background: var(--fm-glass-light);
  border: 1px solid var(--fm-border-subtle);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.fm-feature-card:hover {
  background: var(--fm-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.fm-feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fm-text-main);
}

.fm-feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fm-text-muted);
}

/* Simple content pages (privacy, terms, etc.) */

.fm-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fm-text-muted);
}

.fm-content-hero {
  text-align: center;
  padding: 32px 0;
}

.fm-content-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--fm-text-main);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #b79aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fm-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fm-text-muted);
  max-width: 640px;
  margin: 0 auto 12px;
}

.fm-meta {
  font-size: 13px;
  color: var(--fm-text-muted);
  opacity: 0.7;
  margin: 8px 0 0;
}

.fm-content-section {
  padding: 0;
}

.fm-content-section h2 {
  font-size: 24px;
  color: var(--fm-text-main);
  margin: 0 0 16px;
  font-weight: 700;
}

.fm-content-section h3 {
  font-size: 18px;
  color: var(--fm-text-main);
  margin: 0 0 8px;
  font-weight: 600;
}

.fm-content-section p {
  margin: 0 0 16px;
}

.fm-content-section ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style: disc;
}

.fm-content-section li {
  margin: 8px 0;
  padding-left: 8px;
}

.fm-link {
  color: var(--fm-purple-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 154, 255, 0.3);
  transition: all 0.2s ease;
}

.fm-link:hover {
  color: var(--fm-yellow-bright);
  border-bottom-color: var(--fm-yellow);
}

/* Feature list for about page */
.fm-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.fm-feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--fm-radius-medium);
  background: var(--fm-glass-light);
  border: 1px solid var(--fm-border-subtle);
  transition: all 0.3s ease;
}

.fm-feature-item:hover {
  background: var(--fm-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.fm-feature-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.fm-feature-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--fm-text-main);
}

.fm-feature-item p {
  font-size: 14px;
  margin: 0;
  color: var(--fm-text-muted);
  line-height: 1.5;
}

/* Contact page grid */
.fm-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.fm-contact-card {
  padding: 32px 24px;
  border-radius: var(--fm-radius-large);
  background: var(--fm-glass-light);
  border: 1px solid var(--fm-border-subtle);
  text-align: center;
  transition: all 0.3s ease;
}

.fm-contact-card:hover {
  background: var(--fm-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.fm-contact-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.fm-contact-card h2 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--fm-text-main);
  font-weight: 700;
}

.fm-contact-card p {
  font-size: 14px;
  color: var(--fm-text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.fm-contact-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--fm-purple-soft);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--fm-radius-pill);
  background: rgba(123, 92, 255, 0.1);
  border: 1px solid rgba(183, 154, 255, 0.3);
  transition: all 0.2s ease;
}

.fm-contact-link:hover {
  background: rgba(123, 92, 255, 0.2);
  border-color: var(--fm-purple-soft);
  transform: translateY(-1px);
}

/* Download section */

.fm-section-download {
  margin-top: 8px;
}

.fm-download-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fm-download-hint {
  font-size: 12px;
  color: var(--fm-text-muted);
}

/* Footer */

.fm-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--fm-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Responsive */

@media (max-width: 800px) {
  .page {
    padding: 24px 16px 48px;
  }

  .fm-nav {
    flex-wrap: wrap;
    position: relative;
  }

  .fm-mobile-menu-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .fm-nav-cta {
    display: none;
  }

  .fm-nav-links {
    display: none;
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
    padding: 16px 0 0;
    border-top: 1px solid var(--fm-border-subtle);
  }

  .fm-nav-links.fm-nav-open {
    display: flex;
  }

  .fm-menu-checkbox:checked ~ .fm-nav-links {
    display: flex;
  }

  .fm-nav-links a {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .fm-nav-links a:last-child {
    border-bottom: none;
  }

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

  .fm-hero-mockup {
    justify-content: center;
    margin-top: 16px;
  }

  .fm-logo-text {
    font-size: 16px;
  }

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

  .fm-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
}