/* FT4.1 FastType Experience — premium product shell branding */
:root, [data-theme="dark"] {
  --fx-bg: #05070f;
  --fx-bg2: #0b1220;
  --fx-card: rgba(255,255,255,0.06);
  --fx-border: rgba(255,255,255,0.10);
  --fx-text: #f4f7ff;
  --fx-muted: #94a3b8;
  --fx-accent: #6ea8ff;
  --fx-accent2: #5eead4;
  --fx-gold: #fbbf24;
  --fx-radius: 22px;
  --fx-shadow: 0 24px 80px rgba(0,0,0,.45);
  --fx-font: "Vazirmatn", "Segoe UI", system-ui, sans-serif;
}

[data-theme="light"] {
  --fx-bg: #f6f8fc;
  --fx-bg2: #eef2f9;
  --fx-card: rgba(255,255,255,.82);
  --fx-border: rgba(15,23,42,.08);
  --fx-text: #0f172a;
  --fx-muted: #64748b;
  --fx-shadow: 0 20px 50px rgba(15,23,42,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.fx-body {
  font-family: var(--fx-font);
  color: var(--fx-text);
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(110,168,255,.22), transparent 55%),
    radial-gradient(900px 480px at 90% 0%, rgba(94,234,212,.14), transparent 50%),
    linear-gradient(165deg, var(--fx-bg), var(--fx-bg2));
  background-attachment: fixed;
}

.fx-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem; position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5,7,15,.55);
  border-bottom: 1px solid var(--fx-border);
}
[data-theme="light"] .fx-top { background: rgba(255,255,255,.7); }
.fx-brand { display: flex; align-items: center; gap: .75rem; }
.fx-logo {
  width: 2.6rem; height: 2.6rem; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent2));
  box-shadow: var(--fx-shadow);
}
.fx-brand strong { display: block; letter-spacing: .02em; }
.fx-brand small { color: var(--fx-muted); font-size: .75rem; }
.fx-top-nav { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.fx-link {
  color: var(--fx-muted); text-decoration: none; font-size: .9rem;
  padding: .4rem .75rem; border-radius: 999px; border: 1px solid transparent;
}
.fx-link:hover { color: var(--fx-text); border-color: var(--fx-border); }
.fx-link.primary {
  color: #041018; background: linear-gradient(135deg, var(--fx-accent), var(--fx-accent2));
  font-weight: 700;
}

.fx-hero {
  max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center;
}
@media (max-width: 900px) {
  .fx-hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
}
.fx-kicker {
  display: inline-flex; gap: .4rem; align-items: center;
  color: var(--fx-accent2); font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.fx-hero h1 {
  margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.12; font-weight: 800;
  letter-spacing: -.02em;
}
.fx-hero p {
  margin: 0 0 1.5rem; color: var(--fx-muted); font-size: 1.05rem; line-height: 1.65; max-width: 36rem;
}
.fx-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 28rem; }
@media (max-width: 520px) { .fx-cta { grid-template-columns: 1fr; } }
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 16px; padding: .95rem 1.1rem; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.fx-btn:hover { transform: translateY(-2px); }
.fx-btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--fx-accent), #8b7cff);
  box-shadow: 0 12px 40px rgba(110,168,255,.35);
}
.fx-btn-secondary {
  color: var(--fx-text); background: var(--fx-card); border: 1px solid var(--fx-border);
}
.fx-btn-gold {
  color: #1a1200; background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.fx-btn-ghost {
  color: var(--fx-muted); background: transparent; border: 1px solid var(--fx-border);
}

.fx-stage {
  border-radius: 28px; border: 1px solid var(--fx-border);
  background: var(--fx-card); backdrop-filter: blur(18px);
  box-shadow: var(--fx-shadow); min-height: 320px;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.fx-lottie { width: min(100%, 360px); height: 280px; }
.fx-lottie-fallback {
  width: 140px; height: 140px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(110,168,255,.35), rgba(94,234,212,.25));
  display: grid; place-items: center; font-size: 3rem;
  animation: fx-float 2.8s ease-in-out infinite;
}
@keyframes fx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fx-stats {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 1.5rem;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem;
}
@media (max-width: 900px) { .fx-stats { grid-template-columns: repeat(2, 1fr); } }
.fx-stat {
  border-radius: 18px; border: 1px solid var(--fx-border); background: var(--fx-card);
  padding: 1rem 1.1rem; text-align: center;
}
.fx-stat strong { display: block; font-size: 1.45rem; margin-bottom: .2rem; }
.fx-stat span { color: var(--fx-muted); font-size: .8rem; }

.fx-section {
  max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem 2.5rem;
}
.fx-section h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.fx-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem;
}
@media (max-width: 900px) { .fx-grid { grid-template-columns: 1fr; } }
.fx-card {
  border-radius: var(--fx-radius); border: 1px solid var(--fx-border);
  background: var(--fx-card); padding: 1.15rem 1.2rem; box-shadow: var(--fx-shadow);
}
.fx-card h3 { margin: 0 0 .45rem; font-size: 1rem; }
.fx-card p { margin: 0; color: var(--fx-muted); font-size: .9rem; line-height: 1.55; }

.fx-shell-tabs {
  display: flex; gap: .4rem; flex-wrap: wrap; padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--fx-border);
}
.fx-shell-tabs a {
  text-decoration: none; color: var(--fx-muted); padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid transparent; font-size: .88rem;
}
.fx-shell-tabs a.active, .fx-shell-tabs a:hover {
  color: var(--fx-text); border-color: var(--fx-border); background: var(--fx-card);
}

.fx-cert {
  max-width: 820px; margin: 1.5rem auto; padding: 2rem;
  border-radius: 24px; border: 2px solid rgba(251,191,36,.35);
  background:
    linear-gradient(180deg, rgba(251,191,36,.08), transparent 40%),
    var(--fx-card);
  box-shadow: var(--fx-shadow); text-align: center;
}
.fx-cert h1 { margin: .5rem 0; font-size: 1.6rem; }
.fx-cert .meta { color: var(--fx-muted); font-size: .9rem; }
.fx-qr-placeholder {
  width: 120px; height: 120px; margin: 1rem auto;
  border: 2px dashed var(--fx-border); border-radius: 12px;
  display: grid; place-items: center; color: var(--fx-muted); font-size: .75rem;
}
.fx-verify-box {
  max-width: 520px; margin: 2rem auto; padding: 1.5rem;
}
.fx-verify-box input {
  width: 100%; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--fx-border);
  background: var(--fx-card); color: var(--fx-text); font: inherit; margin: .5rem 0 1rem;
}
.fx-exam-chrome {
  max-width: 900px; margin: 1rem auto; padding: 1rem 1.25rem;
}
.fx-exam-bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1rem; border-radius: 16px; border: 1px solid var(--fx-border);
  background: var(--fx-card); margin-bottom: 1rem;
}
.fx-exam-bar strong { font-size: 1.2rem; }
.fx-footer {
  text-align: center; color: var(--fx-muted); font-size: .8rem; padding: 2rem 1rem 3rem;
}

@media (prefers-reduced-motion: reduce) {
  .fx-lottie-fallback, .fx-btn { animation: none !important; transition: none !important; }
}
