/* EduAdverts landing page: colour, motion and layout.
   All motion is CSS (or small JS in landing.js) and switches off for people who prefer reduced motion. */
:root {
  --bg: #fff8f1; --card: #ffffff; --ink: #1d1a22; --muted: #6a6473; --line: #f0e3d6; --alt: #fff0e2;
  --orange: #ff8a2b; --pink: #e5238f; --purple: #7c3aed; --cyan: #19c3e6;
  --grad: linear-gradient(135deg, #ff9a3c 0%, #e5238f 100%);
  --grad-wide: linear-gradient(120deg, #ff9a3c, #e5238f, #7c3aed, #e5238f, #ff9a3c);
  --shadow: 0 18px 50px rgba(120, 40, 90, .14);
  --font: "Plus Jakarta Sans", system-ui, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14111a; --card: #1f1b27; --ink: #f7f2ee; --muted: #aaa3b5; --line: #342d3f; --alt: #1a1622; --shadow: 0 18px 50px rgba(0, 0, 0, .45); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.muted { color: var(--muted); } .center { text-align: center; } .fine { font-size: 13px; color: var(--muted); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, calc((100vw - 1140px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .06); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -.02em; }
.logo img { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover img { transform: rotate(-12deg) scale(1.1); }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav nav > a:not(.btn) { position: relative; padding: 8px 12px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--muted); border-radius: 999px; transition: color .2s; }
.nav nav > a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s; }
.nav nav > a:not(.btn):hover { color: var(--ink); }
.nav nav > a:not(.btn):hover::after { transform: scaleX(1); }
@media (max-width: 720px) { .nav nav > a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-block; font: 800 15px var(--font); padding: 11px 20px; border-radius: 14px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); transition: transform .15s, box-shadow .2s, border-color .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.solid { background: var(--grad-wide); background-size: 250% 100%; color: #fff; border: 0; box-shadow: 0 10px 26px rgba(229, 35, 143, .35); animation: gradMove 6s linear infinite; }
.btn.solid::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
.btn.ghost { background: transparent; }
.btn.big { padding: 16px 28px; font-size: 17px; border-radius: 16px; }
.btn.pulse { animation: gradMove 6s linear infinite, pulse 2.4s ease-in-out infinite; }

/* ---------- hero ---------- */
.hero-wrap { position: relative; isolation: isolate; overflow: hidden; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob.b1 { width: 460px; height: 460px; background: #ff9a3c; top: -120px; left: -100px; animation: floatA 14s ease-in-out infinite; }
.blob.b2 { width: 520px; height: 520px; background: #e5238f; top: 60px; right: -160px; animation: floatB 17s ease-in-out infinite; opacity: .42; }
.blob.b3 { width: 380px; height: 380px; background: #7c3aed; bottom: -140px; left: 35%; animation: floatA 19s ease-in-out infinite reverse; opacity: .35; }
.dots { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1.2px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 75%); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1140px; margin: 0 auto; padding: 64px 16px 56px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 36px; } }
.pill { display: inline-block; position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; animation: rise .7s both; }
.pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 138, 43, .25), transparent 70%); transform: translateX(-100%); animation: shine2 5s ease-in-out infinite; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); margin: 18px 0 16px; animation: rise .8s .1s both; }
.hero h1 em { font-style: normal; background: var(--grad-wide); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradMove 5s linear infinite; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 560px; animation: rise .8s .25s both; }
.lead strong { color: var(--ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; animation: rise .8s .4s both; }
.hero .fine { animation: rise .8s .5s both; }
.hero-art { position: relative; height: 540px; perspective: 900px; }
.hero-art canvas { position: absolute; border-radius: 22px; box-shadow: var(--shadow); background: #eee; transition: transform .25s ease-out; will-change: transform; }
#hero1 { width: 300px; left: 4%; top: 46px; z-index: 2; --r: -5deg; animation: bob 7s ease-in-out infinite, rise .9s .3s both; }
#hero2 { width: 190px; right: 4%; top: 0; z-index: 1; --r: 6deg; animation: bob 8s -2s ease-in-out infinite, rise .9s .5s both; }
#hero3 { width: 190px; right: 12%; bottom: 0; z-index: 3; --r: -2deg; animation: bob 9s -4s ease-in-out infinite, rise .9s .7s both; }
.float-badge { position: absolute; z-index: 4; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: 26px; animation: bob 6s ease-in-out infinite; }
.fb1 { left: -2%; bottom: 30px; animation-delay: -1s; } .fb2 { right: 0; top: 36%; animation-delay: -3s; } .fb3 { left: 38%; top: -6px; animation-delay: -2s; } .fb4 { right: 38%; bottom: -8px; animation-delay: -4s; }
@media (max-width: 520px) { .hero-art { height: 450px; } #hero1 { width: 230px; left: 0; } #hero2 { width: 150px; } #hero3 { width: 150px; right: 6%; } .float-badge { width: 44px; height: 44px; font-size: 22px; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1140px; margin: 0 auto; padding: 44px 16px 8px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 18px 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(34px, 5vw, 50px); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-weight: 700; font-size: 15px; }

/* ---------- sections ---------- */
.block { max-width: 1140px; margin: 0 auto; padding: 76px 16px; }
.block.alt { max-width: none; background: var(--alt); padding-inline: max(16px, calc((100vw - 1140px) / 2)); }
.block h2, .final h2 { font-size: clamp(28px, 4vw, 44px); text-align: center; margin-bottom: 14px; }
.kicker { display: block; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }

.steps, .features, .plans { display: grid; gap: 18px; }
.steps { grid-template-columns: repeat(3, 1fr); position: relative; margin-top: 34px; }
.features { grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
@media (max-width: 860px) { .steps, .features, .plans { grid-template-columns: 1fr; } }
.step, .features > div, .plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.step:hover, .features > div:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); }
.step b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-size: 19px; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(229, 35, 143, .3); }
.step h3, .features h3 { font-size: 20px; margin-bottom: 8px; }
.step p, .features p { margin: 0; color: var(--muted); font-size: 16px; }
.features span { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 28px; margin-bottom: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 22%, var(--card)), color-mix(in srgb, var(--pink) 18%, var(--card))); transition: transform .4s cubic-bezier(.3, 1.8, .5, 1); }
.features > div:hover span { transform: scale(1.18) rotate(-8deg); }

/* ---------- gallery ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { font: 800 14px var(--font); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: all .2s; }
.tabs button:hover { transform: translateY(-2px); }
.tabs button.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(229, 35, 143, .3); }
.gallery { display: flex; gap: 18px; justify-content: center; align-items: flex-start; flex-wrap: wrap; min-height: 300px; }
.gallery canvas { border-radius: 18px; box-shadow: var(--shadow); background: #eee; max-width: 100%; height: auto; animation: pop .55s both; transition: transform .3s; }
.gallery canvas:hover { transform: translateY(-8px) rotate(-1.5deg) scale(1.03); }
.gallery canvas:nth-child(2) { animation-delay: .08s; } .gallery canvas:nth-child(3) { animation-delay: .16s; } .gallery canvas:nth-child(4) { animation-delay: .24s; }

/* ---------- pricing ---------- */
.plans { grid-template-columns: repeat(3, 1fr); margin-top: 28px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; gap: 4px; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.hot { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-wide) border-box; background-size: 100% 100%, 300% 100%; animation: gradMove 7s linear infinite; box-shadow: 0 20px 50px rgba(229, 35, 143, .22); }
.plan h3 { font-size: 20px; } .plan p { margin: 0; }
.price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 9px; flex: 1; }
.plan li::before { content: "✓ "; color: var(--pink); font-weight: 800; }
.badge { position: absolute; top: -14px; left: 24px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 13px; border-radius: 999px; box-shadow: 0 6px 14px rgba(229, 35, 143, .35); }

/* ---------- faq + final + footer ---------- */
.faq { max-width: 760px; margin: 24px auto 0; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; transition: border-color .2s, box-shadow .2s; }
details[open] { border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); box-shadow: 0 10px 28px rgba(229, 35, 143, .1); }
summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--pink); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--muted); animation: rise .35s both; }
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 84px 16px 96px; background: var(--grad-wide); background-size: 300% 100%; animation: gradMove 12s linear infinite; color: #fff; }
.final h2 { color: #fff; margin-bottom: 22px; }
.final .btn.solid { background: #fff; color: #c01877; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); animation: pulse 2.4s ease-in-out infinite; }
.final .btn.solid::after { display: none; }
.spark { position: absolute; z-index: -1; font-size: 28px; opacity: .65; animation: twinkle 3s ease-in-out infinite; }
.spark:nth-of-type(1) { left: 8%; top: 22%; } .spark:nth-of-type(2) { right: 10%; top: 30%; animation-delay: -1s; font-size: 40px; } .spark:nth-of-type(3) { left: 22%; bottom: 18%; animation-delay: -2s; } .spark:nth-of-type(4) { right: 24%; bottom: 14%; animation-delay: -.5s; }
footer { max-width: 1140px; margin: 0 auto; padding: 36px 16px 48px; display: grid; gap: 14px; justify-items: center; text-align: center; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-weight: 700; color: var(--muted); }
footer .links a { text-decoration: none; transition: color .2s; }
footer .links a:hover { color: var(--pink); }

/* ---------- brand lockup + article pages ---------- */
.logo span { display: grid; line-height: 1.1; }
.logo small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.product-of { margin: 0; color: var(--muted); font-weight: 600; }
.product-of a { color: var(--ink); font-weight: 800; }

/* ---------- scroll reveal (only active when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 1.5deg)); } }
@keyframes floatA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-70px, 50px) scale(.92); } }
@keyframes gradMove { to { background-position: 250% 0; } }
@keyframes shine { 0%, 55% { left: -80%; } 100% { left: 140%; } }
@keyframes shine2 { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 26px rgba(229, 35, 143, .35), 0 0 0 0 rgba(229, 35, 143, .45); } 50% { box-shadow: 0 10px 26px rgba(229, 35, 143, .35), 0 0 0 14px rgba(229, 35, 143, 0); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes twinkle { 0%, 100% { transform: scale(.8) rotate(0); opacity: .35; } 50% { transform: scale(1.25) rotate(20deg); opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
