/* --- FixMath Design Sync (Identical to web/style.css) --- */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap");

:root {
  --primary: #4d7c0f;
  --primary-light: #a3e635;
  --accent: #b45309;
  --bg-main: #bef264;
  --bg-inner: #d9f99d;
  --text-main: #1e293b;
  --text-muted: #4d7c0f;
  --glass: rgba(255, 255, 255, 0.4);
  --card-shadow: 0 6px 0 0 #b45309;
}

body.fixmath-body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif !important;
  background-color: var(--bg-main) !important;
  color: var(--text-main) !important;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* --- Precise Background System --- */
.bg-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg-inner);
  overflow: hidden;
}

.bg-pattern-dots {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(#84cc16 2px, transparent 2px);
  background-size: 24px 24px;
}

.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.blur-1 {
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background-color: #bef264;
}
.blur-2 {
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background-color: #a3e635;
}

/* --- Precise Animations --- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

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

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}
.animate-float-rev {
  animation: float-reverse 5s ease-in-out infinite;
}
.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

/* --- Floating Elements --- */
.floating-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.symbol {
  position: absolute;
  font-family: "Fredoka", sans-serif;
  font-weight: 900;
}

.gear-icon {
  position: absolute;
  font-family: "Material Symbols Outlined";
  font-size: 80px;
  color: white;
  opacity: 0.4;
}

/* --- Language Selector Overlay (Fix Click Issue) --- */
.top-utility-bar {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 100;
  pointer-events: auto;
}

/* --- Typography & UI --- */
.fixmath-container h1,
.fixmath-container h2,
.fixmath-container h3,
.logo-fix,
.logo-math,
.subtitle-badge,
.btn-premium,
.fixmath-nav a {
  font-family: "Fredoka", sans-serif !important;
}

.fixmath-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
  z-index: 10;
}

header {
  text-align: center;
  margin-bottom: 50px;
}

.logo-container {
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 20px;
}

.logo-fix {
  font-size: 4.5rem;
  color: #3f6212;
  font-weight: 700;
}

.logo-math {
  font-size: 4.5rem;
  color: #b45309;
  font-weight: 700;
  display: inline-block;
  transform: translateY(6px) rotate(3deg);
  text-shadow:
    3px 3px 0px #fcd34d,
    5px 5px 0px #92400e;
}

.subtitle-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  padding: 8px 24px;
  border-radius: 999px;
  color: #4d7c0f;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.05);
}

.content-card-premium {
  background: white;
  border: 2px solid #84cc16;
  border-radius: 40px;
  padding: 50px;
  box-shadow: 0 10px 0 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
}

.fixmath-container h2 {
  font-size: 2rem;
  color: #3f6212;
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.fixmath-container h2::before {
  content: "";
  display: block;
  width: 10px;
  height: 38px;
  background: #84cc16;
  border-radius: 5px;
}

.fixmath-container p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #334155;
  font-family: "Inter", sans-serif !important;
}

.fixmath-container ul {
  margin-bottom: 24px;
  list-style: none;
}

.fixmath-container li {
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
  font-size: 1.05rem;
  color: #334155;
  font-family: "Inter", sans-serif !important;
}

.fixmath-container li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #84cc16;
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 1;
}

.footer {
  text-align: center;
  padding: 60px 0;
  color: #4d7c0f;
  font-weight: 600;
  font-size: 1rem;
}

.btn-premium {
  display: inline-block;
  background: linear-gradient(to bottom, #fde68a, #fbbf24);
  color: #78350f;
  padding: 18px 45px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  border-top: 4px solid #fffbeb;
  box-shadow: 0 8px 0 0 #92400e;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
  text-transform: uppercase;
}

.btn-premium:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 0 #92400e;
}

.fixmath-nav {
  margin-bottom: 40px;
  text-align: center;
}

.fixmath-nav a {
  color: #4d7c0f;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.2s;
  opacity: 0.6;
}

.fixmath-nav a:hover,
.fixmath-nav a.active {
  opacity: 1;
  color: #3f6212;
}

.text-important {
  color: #b45309 !important;
  font-weight: 700 !important;
}
