/* style.css */
/* =========================
   Magic Math Master - Clean style.css
   (Pill topbar + Screenshot hero)
   ========================= */

:root{
  --bg: #f7f9fc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, .10);

  --brand: #0b5ed7;
  --brand2:#0a3d91;
  --accent:#f59e0b;
  --success:#16a34a;

  --radius: 16px;
  --shadow: 0 18px 40px rgba(2, 6, 23, .10);
  --shadow2: 0 10px 24px rgba(2, 6, 23, .08);

  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; overflow-x:hidden; }
img{ max-width:100%; height:auto; display:block; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(11,94,215,.12), transparent 55%),
    radial-gradient(1000px 700px at 85% 10%, rgba(245,158,11,.10), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height:1.6;
}

a{ color:inherit; }
.container{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

/* =========================
   TOP BAR (pill nav)
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247,249,252,.78);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
}

.brand-logo{
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(15,23,42,.14);
  padding: 8px;
}

.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand-title b{
  font-size: 22px;
  font-weight: 1000;
  color: var(--brand2);
}
.brand-title span{
  font-size: 14px;
  font-weight: 800;
  color: rgba(15,23,42,.70);
}

/* Nav pills (top links) */
.nav{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav a{
  text-decoration:none;
  font-weight: 1000;
  font-size: 18px;
  color:#0f172a;

  padding: 14px 26px;
  border-radius: 999px;

  background: rgba(255,255,255,.92);
  border: 2px solid rgba(15,23,42,.14);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.nav a:hover{
  background: rgba(11,94,215,.08);
  border-color: rgba(11,94,215,.18);
  transform: translateY(-1px);
}
.nav a.active,
.nav a[aria-current="page"]{
  background: rgba(11,94,215,.18);
  border-color: rgba(11,94,215,.35);
  box-shadow: 0 10px 18px rgba(11,94,215,.12);
}

/* optional: make language pill consistent */
.nav a.nav-lang{
  border-color: rgba(11,94,215,.22);
}

/* Mobile: stack */
@media (max-width: 880px){
  .topbar-inner{ flex-direction: column; align-items:flex-start; }
  .nav{ justify-content:flex-start; }
  .nav a{ font-size: 16px; padding: 12px 20px; }
  .brand-title b{ font-size: 18px; }
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
  font-weight: 900;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid transparent;
  cursor:pointer;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  box-shadow: 0 14px 28px rgba(11,94,215,.18);
}
.btn-primary:hover{ filter: brightness(1.03); }
.btn-outline{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(11,94,215,.28);
  color: var(--brand2);
}
.btn-outline:hover{ background: rgba(11,94,215,.06); }
.btn-success{ background: var(--success); color:#fff; }
.btn-amber{ background: var(--accent); color:#111827; }

/* =========================
   HERO (screenshot style)
   ========================= */
.hero{ padding: 18px 0 24px; }

.hero-snap{
  background: #fff;
  border: 2px solid rgba(11,94,215,.18);
  border-radius: 34px;
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
  padding: 34px 30px;
}

.hero-snap-grid{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px){
  .hero-snap-grid{ grid-template-columns: 1fr; }
}

.hero-snap-title{
  margin: 0;
  text-align:center;
  font-weight: 1000;
  letter-spacing: 2px;
  color: var(--brand2);
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1.02;
}

.hero-snap-tagline{
  margin: 10px 0 0;
  text-align:center;
  font-weight: 900;
  color: rgba(15,23,42,.72);
  font-size: clamp(18px, 2.2vw, 34px);
}

.hero-snap-desc{
  margin: 24px auto 0;
  max-width: 1200px;
  text-align:center;
  color: rgba(15,23,42,.72);
  font-weight: 650;
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.65;
}
.hero-snap-desc b{ color: rgba(15,23,42,.92); font-weight: 900; }

.hero-snap-checks{
  margin: 22px 0 0;
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--brand);
  font-weight: 1000;
  font-size: clamp(14px, 1.2vw, 24px);
}

.hero-snap-pills{
  margin: 18px 0 0;
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-snap-pill{
  background: rgba(245,158,11,.10);
  border: 4px solid rgba(245,158,11,.45);
  border-radius: 999px;
  padding: 16px 26px;
  font-weight: 1000;
  color: rgba(122,74,0,.95);
  font-size: clamp(14px, 1.15vw, 22px);
}

.hero-snap-cta{
  margin: 20px 0 0;
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right logo box */
.hero-snap-logoBox{
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(11,94,215,.14);
  border-radius: 28px;
  padding: 18px;
  display:grid;
  place-items:center;
}
.hero-snap-logoBox img{
  width: 240px;
  max-width: 100%;
  height: auto;
}

/* =========================
   SECTIONS / CARDS
   (keep your existing patterns)
   ========================= */
.section{ padding: 26px 0; }
.section-title{
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.4px;
}
.section-sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 650;
  max-width: 860px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: rgba(255,255,255,.80);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.card h3{
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.2px;
}
.card p{ margin:0; color: var(--muted); font-weight: 650; }

.icon{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(245,158,11,.14);
  border: 1px solid rgba(245,158,11,.22);
  font-size: 20px;
  margin-bottom: 10px;
}

/* Forms */
.form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 860px){
  .form{ grid-template-columns: 1fr; }
}
.field{ display:flex; flex-direction:column; gap: 6px; }
label{ font-weight: 900; font-size: 13px; }

input, select, textarea{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  background: rgba(255,255,255,.88);
}
textarea{ min-height: 120px; resize: vertical; }
.helper{ color: var(--muted); font-weight: 650; font-size: 13px; margin-top: 10px; }

/* Footer */
.footer{
  margin-top: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer a{ color: var(--brand2); text-decoration:none; font-weight: 900; }
.footer a:hover{ text-decoration: underline; }

.sep{ height: 1px; background: var(--line); margin: 18px 0; }
/* ===== Remove the square frame around the HERO logo ===== */
.hero-snap-logoBox{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Optional: ensure the hero logo image itself has no padding/border */
.hero-snap-logoBox img{
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;  /* use 18px if you want rounded logo */
}
/* ===== Remove square box around top-left logo ===== */
.brand-logo{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;

  /* choose ONE look: */
  border-radius: 999px !important;  /* circle logo */
  /* border-radius: 0 !important; */ /* or no rounding */
}