/* CodeKids imagination lab — playful, dimensional and made for young creators. */
body.premium-home {
  --bg: #fff9f0;
  --surface: #fffdfa;
  --surface-alt: #f1eafb;
  --text: #2c2648;
  --muted: #706783;
  --primary: #7954d1;
  --primary-dark: #5c3baa;
  --border: #e5dcef;
  --text-soft: #827492;
  --glass: rgba(255, 249, 240, .89);
  --mint: #8de0ce;
  --coral: #ffb2ac;
  --sunshine: #ffda7c;
  --display-font: "Baloo Bhaijaan 2", "Cairo", sans-serif;
  --shadow: 0 20px 60px rgba(40, 32, 68, .08);
  background: var(--bg);
  color: var(--text);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}
body.premium-home.dark {
  --bg: #14162e;
  --surface: #1e2140;
  --surface-alt: #2a2b50;
  --text: #faf5ff;
  --muted: #c2bddb;
  --primary: #c0a6ff;
  --primary-dark: #9c7bd9;
  --border: #383957;
  --text-soft: #aba1c9;
  --glass: rgba(20, 22, 46, .89);
  --shadow: 0 20px 60px rgba(0, 0, 0, .16);
}
[lang="en"] body.premium-home { --display-font: "Fredoka", "Cairo", sans-serif; }
[lang="en"] .premium-home :is(.hero-copy h1, .creative-copy h2, .section-heading h2, .section-heading h1) { font-weight: 600; }
.premium-home :is(.hero-copy h1, .creative-copy h2, .section-heading h2, .section-heading h1, .creative-steps strong) { font-family: var(--display-font); }
.premium-home .container { width: min(1280px, calc(100% - 80px)); }
.premium-home main, .premium-home .site-footer { position: relative; z-index: 2; }
.premium-home .section { padding: 110px 0; scroll-margin-top: 100px; }
.sculpture-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sculpture-backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-atmosphere {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 38%, rgba(137, 94, 216, .21), transparent 46%), radial-gradient(ellipse at 85% 80%, rgba(91, 198, 170, .08), transparent 38%), radial-gradient(ellipse at 78% 12%, rgba(255, 190, 120, .06), transparent 28%);
}
.scene-atmosphere::after { content: ''; position: absolute; inset: 0; opacity: .32; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='340' viewBox='0 0 420 340'%3E%3Ccircle cx='32' cy='38' r='1.2' fill='%23958aba'/%3E%3Ccircle cx='261' cy='112' r='1.1' fill='%23958aba'/%3E%3Ccircle cx='170' cy='285' r='1' fill='%23958aba'/%3E%3Cpath d='M352 264v6m-3-3h6' stroke='%23958aba' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sculpture-fallback { position: absolute; top: 15%; left: 7%; width: 44%; height: 70%; object-fit: contain; transition: opacity .5s; }
[dir="ltr"] .sculpture-fallback { left: auto; right: 7%; }
[data-scene-ready="true"] .sculpture-fallback { opacity: 0; }
.premium-home .site-header, .premium-home.dark .site-header {
  z-index: 40; padding: 16px 0 0; background: transparent; backdrop-filter: none;
  border: 0; box-shadow: none;
}
.premium-home .nav-wrap {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  position: relative; width: min(1376px, calc(100% - 48px)); min-height: 84px; gap: 22px;
  padding: 12px 20px; border: 1px solid var(--border); border-radius: 24px;
  background: var(--glass); backdrop-filter: blur(24px);
  box-shadow: 0 12px 35px rgba(12,10,34,.12), inset 0 1px 0 rgba(255,255,255,.06);
}
.premium-home .brand { direction: ltr; gap: 11px; white-space: nowrap; }
.premium-home .brand-logo { width: 56px; height: 56px; flex-basis: 56px; filter: none; transition: transform .25s; }
.premium-home .brand:hover .brand-logo { transform: rotate(-9deg) translateY(-2px); }
.premium-home .brand-name { display: grid; }
.premium-home .brand-name strong { font-family: "Fredoka", "Cairo", sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.premium-home .brand-name small { font-size: .52rem; letter-spacing: .32em; color: var(--muted); margin-top: 7px; }
.premium-home .main-nav { display: flex; justify-content: center; flex-wrap: nowrap; gap: 2px; overflow: visible; min-width: 0; width: auto; order: initial; }
.premium-home .main-nav[hidden] { display: none !important; }
.premium-home .main-nav > a { position: relative; padding: 10px 11px; border-radius: 13px; font-size: .82rem; white-space: nowrap; color: var(--muted); }
.premium-home .main-nav > a.active, .premium-home .main-nav > a:hover { background: var(--surface-alt); color: var(--primary); box-shadow: none; }
.premium-home .main-nav a.active::after { display: none; }
.premium-home .nav-actions { gap: 8px; margin: 0; flex-wrap: nowrap; white-space: nowrap; }
.premium-home .btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 16px 22px; border: 1px solid transparent; border-radius: 17px; background: var(--primary); color: #30214e; font-weight: 800; font-size: .9rem; box-shadow: 0 4px 0 rgba(99,64,159,.3); transition: background .2s, transform .2s, box-shadow .2s; }
.premium-home:not(.dark) .btn { color: #fff; }
.premium-home .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(144,111,221,.18); }
.premium-home .btn-outline { border-color: var(--border); background: transparent; color: var(--text); box-shadow: none; }
.premium-home:not(.dark) .btn-outline { color: var(--text); }
.premium-home .nav-tools, .premium-home .nav-auth { display: flex; align-items: center; gap: 5px; }
.premium-home .nav-auth { border-inline-start: 1px solid var(--border); padding-inline-start: 9px; gap: 8px; }
.premium-home .nav-actions .btn { min-height: 42px; padding: 9px 14px; font-size: .76rem; gap: 9px; border-radius: 13px; }
.premium-home .nav-actions .btn-outline { display: inline-flex; border: 0; padding-inline: 8px; }
.premium-home .nav-actions .btn-outline:hover { background: var(--surface-alt); transform: none; box-shadow: none; }
.premium-home .nav-start, .premium-home:not(.dark) .nav-start { background: var(--sunshine); color: #493519; border-color: #ffe8b1; box-shadow: 0 3px 0 #ba8e43; }
.premium-home .nav-start svg { width: 20px; height: 20px; }
.premium-home .theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--primary); background: var(--surface-alt); flex-shrink: 0; transition: background .2s; }
.premium-home .theme-toggle svg { display: block; width: 22px; height: 22px; }
.premium-home .theme-toggle:hover { background: var(--border); }
.premium-home .language-toggle { min-height: 40px; background: transparent; color: var(--text); padding: 0 9px; border: 0; border-radius: 13px; box-shadow: none; font-size: .74rem; gap: 7px; }
.premium-home .language-toggle-icon { display: block; background: none; color: var(--muted); width: 18px; height: 18px; }
.premium-home .language-toggle-label { display: inline; }
.premium-home .language-toggle:hover { background: var(--surface-alt); transform: none; box-shadow: none; }
.premium-home .menu-toggle { display: none; width: 44px; height: 44px; padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-alt); color: var(--text); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; margin: 4px auto; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.premium-home .mobile-nav-auth { display: none; }
.premium-home .hero { padding: 55px 0 0; overflow: visible; }
.premium-home .hero::before, .premium-home .hero::after { display: none; }
.premium-home .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; min-height: 635px; align-items: center; }
.premium-home .eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 24px; border: 0; border-radius: 0; background: none; font-size: .75rem; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.premium-home .eyebrow > i { width: 7px; height: 7px; border-radius: 50%; background: #c8baff; box-shadow: 0 0 15px rgba(185,165,250,.55); }
.premium-home .chapter-number { padding: 7px 9px; border-radius: 9px; background: var(--surface-alt); color: var(--primary); direction: ltr; font: 12px/1 Consolas, monospace; }
.premium-home .hero-copy h1 { margin: 0 0 24px; font-size: clamp(3.5rem, 5.7vw, 5.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
[lang="ar"] .premium-home .hero-copy h1 { letter-spacing: -.015em; }
.premium-home .hero-copy h1 .hero-title-first { display: block; color: var(--text); }
.premium-home .hero-copy h1 .hero-title-accent { display: block; background: linear-gradient(110deg, #ffb4c4, #ffd77e 85%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.premium-home:not(.dark) .hero-copy h1 .hero-title-accent { background-image: linear-gradient(110deg,#c2497c,#ac681c 85%); }
.premium-home .hero-kicker { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-alt); font-size: .73rem; letter-spacing: .02em; color: var(--primary); }
.play-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.premium-home .hero-copy > p { max-width: 470px; font-size: 1rem; line-height: 2; color: var(--muted); }
.premium-home .hero-actions { margin: 30px 0 24px; gap: 12px; }
.premium-home .button-arrow { font-size: 1.3rem; line-height: 1; }
.premium-home .hero-points { gap: 16px; font-size: .69rem; font-weight: 500; }
.premium-home .hero-points li::before { color: var(--primary); margin-inline: 0 7px; }
.hero-art { align-self: stretch; min-width: 0; min-height: 550px; position: relative; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero-art.is-dragging { cursor: grabbing; }
.art-corner { position: absolute; top: 12px; inset-inline: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; direction: inherit; font: 600 .67rem/1.5 "Cairo", sans-serif; color: var(--text-soft); }
.imagination-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-alt); color: var(--primary); transform: rotate(-4deg); }
.imagination-badge .play-icon { width: 30px; height: 30px; }
.art-sprinkles { position: absolute; inset: 0; pointer-events: none; }
.art-spark { position: absolute; display: block; width: 43px; height: 43px; }
.spark-sun { left: 1%; top: 23%; rotate: -12deg; }
.spark-mint { right: 1%; bottom: 23%; width: 31px; height: 31px; rotate: 12deg; }
.spark-code { position: absolute; right: 7%; top: 17%; font: 600 19px/1 "Fredoka",sans-serif; color: var(--coral); rotate: 12deg; }
.sculpture-controls { position: absolute; bottom: 34px; inset-inline: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.sculpture-controls[hidden] { display: none; }
.sculpture-hint { color: var(--text-soft); font-size: .7rem; font-weight: 600; }
.shape-switcher { display: flex; gap: 7px; direction: inherit; }
.shape-switcher button { min-width: 35px; height: 35px; padding-inline: 11px; border: 1px solid var(--border); border-radius: 11px; background: var(--glass); color: var(--muted); font: 600 .67rem/1 "Cairo",sans-serif; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.shape-switcher #sceneMotionToggle { width: 35px; padding: 0; border-radius: 50%; }
.shape-switcher button[aria-pressed="true"] { border-color: var(--primary); color: #30214e; background: var(--primary); }
.premium-home:not(.dark) .shape-switcher button[aria-pressed="true"] { color: #fff; }
.shape-switcher button:hover { border-color: var(--primary); }
.premium-home :is(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
.hero-baseline { min-height: 76px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--text-soft); font: 600 .74rem/1.5 "Cairo",sans-serif; }
.imagination-line { display: inline-flex; gap: 10px; align-items: center; }
.imagination-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 11px 0 var(--sunshine),22px 0 var(--coral); margin-inline-end: 24px; }
.hero-baseline a { display: flex; align-items: center; gap: 28px; font: 600 .7rem/1.5 "Cairo",sans-serif; letter-spacing: .04em; }
.hero-baseline a:hover { color: var(--primary); }
.premium-home .stats { padding: 32px 0 0; }
.premium-home .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.premium-home .stat-item, .premium-home.dark .stat-item { padding: 15px 24px; border: 0; background: transparent; border-radius: 0; box-shadow: none; direction: inherit; }
.premium-home .stat-item + .stat-item { border-inline-start: 1px solid var(--border); }
.premium-home .stat-item strong { font-size: 2.5rem; line-height: 1.4; font-weight: 600; letter-spacing: -.055em; color: var(--text); direction: ltr; unicode-bidi: isolate; }
.premium-home.dark .stat-item:nth-child(1) strong { color: var(--coral); }
.premium-home.dark .stat-item:nth-child(2) strong { color: var(--sunshine); }
.premium-home.dark .stat-item:nth-child(3) strong { color: var(--mint); }
.premium-home .stat-item span { font-size: .75rem; font-weight: 500; }
.creative-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.premium-home .creative-section { padding: 135px 0 95px; }
.creative-copy h2 { font-size: clamp(2.3rem, 3.4vw, 3.8rem); font-weight: 700; line-height: 1.5; margin: 0 0 24px; letter-spacing: -.025em; }
.text-accent { color: var(--primary); }
.creative-copy > p { font-size: .95rem; line-height: 2; color: var(--muted); max-width: 490px; }
.creative-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 40px; }
.creative-steps > div { border-top: 1px solid var(--border); padding-top: 18px; }
.creative-steps > div > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-alt); font: 11px/1 Consolas,monospace; color: var(--primary); margin-bottom: 12px; }
.creative-steps > div:nth-child(2) > span { background: #52452b; color: var(--sunshine); }
.creative-steps > div:nth-child(3) > span { background: #264a4b; color: var(--mint); }
.creative-steps strong { font-size: 1rem; font-weight: 700; }
.creative-steps p { font-size: .7rem; color: var(--muted); line-height: 1.9; }
.creative-art { position: relative; min-height: 500px; }
.art-caption { position: absolute; bottom: 0; inset-inline-end: 0; color: var(--text-soft); font: 600 .72rem/1.5 "Cairo",sans-serif; }
.premium-home #courses, .premium-home #pricing { background: linear-gradient(180deg,transparent,var(--bg) 12% 92%,transparent); }
.premium-home .section-heading { margin-bottom: 44px; }
.premium-home .section-heading .eyebrow { margin-bottom: 17px; }
.premium-home .section-heading h2 { font-size: clamp(2.2rem,3.4vw,3.35rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.5; margin: 0; }
.premium-home .section-heading > p { margin: 12px 0 0; font-size: .88rem; line-height: 1.9; color: var(--muted); max-width: 650px; }
.premium-home .courses-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; direction: inherit; }
.premium-home .course-card { --course-accent: #c0a6ff; position: relative; display: flex; flex-direction: column; padding: 29px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg,var(--surface) 45%,color-mix(in srgb,var(--course-accent) 8%,var(--surface))); box-shadow: none; direction: inherit; text-align: start; overflow: hidden; transition: border-color .3s, transform .3s; }
.premium-home .course-story { --course-accent: #ffb1a9; }
.premium-home .course-game { --course-accent: #c2a5fb; }
.premium-home .course-mobile { --course-accent: #83ddc7; }
.premium-home .course-python { --course-accent: #b3df9f; }
.premium-home .course-web { --course-accent: #91c9f5; }
.premium-home .course-magic { --course-accent: #ffd67f; }
.premium-home .course-card::before { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(350px circle at var(--card-x,50%) var(--card-y,0%),rgba(155,127,221,.12),transparent 70%); transition: opacity .3s; }
.premium-home .course-card:hover { border-color: var(--course-accent); transform: translateY(-5px); box-shadow: none; }
.premium-home .course-card:hover::before { opacity: 1; }
.course-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.course-symbol { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; transform: rotate(-6deg); transition: transform .3s; }
.course-symbol svg { width: 100%; height: 100%; display: block; }
.premium-home .course-card:hover .course-symbol { transform: rotate(3deg) translateY(-2px); }
.course-index { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb,var(--course-accent) 10%,var(--surface)); font: 600 .65rem/1.4 "Cairo",sans-serif; color: var(--muted); }
.premium-home .course-card h3 { font-family: "Fredoka", "Cairo",sans-serif; font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; margin: 0 0 12px; }
.premium-home .course-card > p { font-size: .83rem; line-height: 1.95; margin: 0 0 28px; flex: 1; }
.course-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--primary); font-size: .73rem; }
.course-link > span:last-child { font: 20px/1 "Segoe UI",sans-serif; }
.premium-home .pricing-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; direction: inherit; }
.premium-home .pricing-card { padding: 26px 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: none; text-align: start; direction: inherit; transform: none; }
.premium-home .pricing-card:hover { transform: translateY(-4px); box-shadow: none; border-color: #6a5c87; }
.premium-home .pricing-card.featured { border-color: #a18acb; background: linear-gradient(145deg,rgba(128,95,195,.21),var(--surface) 70%); }
.premium-home .plan-tier { align-self: flex-start; color: var(--primary); padding: 6px 11px; border: 0; border-radius: 10px; background: var(--surface-alt); box-shadow: none; font: 700 .7rem/1.5 "Cairo",sans-serif; margin: 0 0 24px; }
.premium-home .pricing-card h3 { font-size: 1.25rem; margin: 0 0 12px; }
.premium-home .plan-saving { display: block; min-height: 68px; padding: 0 0 20px; margin: 0 0 22px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; color: var(--muted); font-size: .75rem; line-height: 1.9; font-weight: 500; }
.premium-home .pricing-card ul { font-size: .75rem; line-height: 1.9; gap: 12px; margin-bottom: 28px; }
.premium-home .pricing-card li::before { color: var(--primary); content: '✓'; margin-inline: 0 8px; }
.premium-home .pricing-card .pricing-whatsapp { gap: 8px; padding: 10px 8px; border-radius: 10px; border-color: var(--border); background: transparent; color: var(--text); font-size: .7rem; box-shadow: none; }
.premium-home .pricing-card.featured .pricing-whatsapp { background: var(--primary); color: #211b34; border-color: transparent; }
.premium-home:not(.dark) .pricing-card.featured .pricing-whatsapp { color: #fff; }
.premium-home .pricing-card .pricing-whatsapp:hover { background: var(--surface-alt); color: var(--text); border-color: var(--primary); }
.premium-home .pricing-whatsapp-icon { width: 21px; height: 21px; flex-basis: 21px; color: currentColor; background: none; }
.premium-home .pricing-whatsapp:hover .pricing-whatsapp-icon { background: none; color: currentColor; }
.premium-home .feedback-section { background: linear-gradient(180deg,transparent,var(--bg) 18%); }
.premium-home .feedback-section > .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.premium-home .feedback-section .section-heading { margin: 0; text-align: start; }
.premium-home .feedback-section h2 { max-width: 400px; font-size: clamp(2.3rem,3.5vw,3.4rem); }
.premium-home .feedback-section .section-heading p { max-width: 350px; }
.premium-home .feedback-form { width: 100%; padding: 29px; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: none; }
.premium-home .feedback-form label, .premium-home .feedback-form label:nth-of-type(n+3) { grid-column: auto; font-size: .77rem; gap: 8px; font-weight: 600; }
.premium-home .feedback-form :is(input,select,textarea) { padding: 12px; border-radius: 10px; background: var(--bg); border-color: var(--border); font-size: .78rem; }
.premium-home .feedback-form textarea { min-height: 160px; max-height: 260px; }
.premium-home .feedback-form :is(input,textarea)::placeholder { color: var(--text-soft); opacity: 1; }
.premium-home .feedback-form > .btn { min-height: 50px; padding: 10px 20px; }
.premium-home .feedback-status { font-size: .8rem; line-height: 1.8; }
.premium-home .feedback-status:empty { display: none; }
.premium-home .site-footer { background: var(--bg); border: 0; padding: 24px 0; scroll-margin-top: 120px; }
.premium-home .site-footer::before, .premium-home .site-footer::after { display: none; }
.premium-home .footer-shell { --footer-line: rgba(220,205,255,.16); padding: 0; border: 1px solid #4a3e69; border-radius: 36px; background: radial-gradient(ellipse at 80% 0%,#463462,transparent 60%),#24213e; color: #faf5ff; overflow: hidden; }
.footer-launch { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px; padding: 42px 48px 36px; border-bottom: 1px solid var(--footer-line); }
.footer-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; color: #d7c4f7; }
.footer-kicker .play-icon { width: 26px; height: 26px; }
.footer-launch h2 { display: flex; flex-wrap: wrap; gap: 0 .16em; font: 700 clamp(2.4rem,3.4vw,3.5rem)/1.4 var(--display-font); margin: 15px 0 12px; color: #faf5ff; }
[lang="en"] .footer-launch h2 { font-weight: 600; letter-spacing: -.02em; }
.footer-launch h2 > span { display: inline-block; }
.footer-launch h2 > span:last-child { color: var(--sunshine); }
.premium-home .footer-launch p { max-width: 510px; margin: 0 0 24px; font-size: .88rem; line-height: 1.9; color: #d0c8e3; }
.premium-home .footer-explore, .premium-home:not(.dark) .footer-explore { padding: 13px 21px; gap: 30px; background: #ffda7c; color: #493519; border: 1px solid #ffebbb; border-radius: 14px; font-size: .83rem; box-shadow: 0 4px 0 #b78e49; }
.footer-explore > span:last-child { font-size: 1.25rem; }
.footer-playground { justify-self: center; width: min(100%,420px); transform: rotate(-3deg); transition: transform .4s; }
.footer-playground img { display: block; width: 100%; height: auto; }
.footer-launch:hover .footer-playground { transform: translateY(-5px) rotate(0deg); }
.premium-home .footer-grid { grid-template-columns: 1fr .65fr 1.2fr; gap: 50px; padding: 38px 48px 34px; }
.premium-home .footer-grid > div:first-child { max-width: none; }
.premium-home .footer-brand { margin-bottom: 13px; color: #faf5ff; }
.premium-home .footer-brand .brand-logo { width: 61px; height: 61px; flex-basis: 61px; }
.premium-home .footer-brand .brand-name strong { font-size: 1.7rem; }
.premium-home .footer-brand .brand-name small { color: #c4b8dc; }
.premium-home .footer-identity p { max-width: 295px; margin: 0 0 17px; color: #c9bfdc; font-size: .85rem; line-height: 1.95; }
.footer-made { display: inline-flex; align-items: center; gap: 8px; color: #c5bbd8; font-size: .67rem; }
.footer-made i { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; }
.premium-home .site-footer h4 { font: 600 1.18rem/1.5 var(--display-font); color: #faf5ff; margin: 7px 0 20px; }
.premium-home .footer-links ul { gap: 10px; }
.premium-home .footer-links a { display: inline-flex; align-items: center; min-height: 30px; color: #d0c8e3; font-size: .86rem; }
.premium-home .site-footer a:hover { color: #ffda7c; padding-inline-start: 0; }
.premium-home .footer-contact-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 9px; border: 1px solid var(--footer-line); border-radius: 15px; background: rgba(255,255,255,.035); color: #eee5fc; transition: background .2s; }
.premium-home .footer-contact-link:hover { padding-inline-start: 12px; background: rgba(255,255,255,.07); }
.footer-contact-icon { display: grid; place-items: center; width: 37px; height: 37px; flex-shrink: 0; border-radius: 11px; background: rgba(190,162,255,.12); color: #d2b8ff; }
.footer-contact-icon svg { display: block; width: 20px; height: 20px; }
.footer-contact-link > span:last-child { display: grid; gap: 3px; min-width: 0; }
.footer-contact-link small { color: #bdb1d1; font-size: .65rem; }
.footer-contact-link bdi { direction: ltr; unicode-bidi: isolate; font: 500 clamp(.73rem,1vw,.82rem)/1.7 "Cairo",sans-serif; overflow-wrap: anywhere; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 48px; padding: 20px 0; border-top: 1px solid var(--footer-line); }
.premium-home .copyright { margin: 0; padding: 0; border: 0; color: #bcb0d0; font-size: .67rem; line-height: 1.7; text-align: start; }
.premium-home .back-to-top { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #e1d4f7; font-size: .71rem; }
.back-to-top > span:last-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: rgba(190,162,255,.13); font-size: 1.1rem; }
.premium-home .modal { z-index: 100; }
.premium-home .modal .btn { width: auto; }
.premium-home.secondary-page .muted-section { background: radial-gradient(ellipse at 25% 20%,rgba(137,109,201,.09),transparent 55%); min-height: calc(100vh - 92px); }
.secondary-page .section-heading h1 { font-size: clamp(2.3rem,4vw,4rem); line-height: 1.5; font-weight: 700; margin: 0; letter-spacing: -.025em; }
.premium-home .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; direction: inherit; }
.premium-home .feature-card { padding: 30px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: none; direction: inherit; text-align: start; }
.premium-home .feature-card:hover { transform: translateY(-4px); box-shadow: none; }
.premium-home .feature-icon { border: 0; width: 58px; height: 58px; background: none; transform: rotate(-4deg); }
.premium-home .feature-icon svg { display: block; width: 100%; height: 100%; }
.premium-home .feature-card h2 { font-family: var(--display-font); font-size: 1.45rem; font-weight: 700; }
.premium-home .feature-card p { font-size: .85rem; line-height: 2; }
@media (max-width: 1240px) {
  .premium-home .nav-wrap { grid-template-columns: auto auto; justify-content: space-between; gap: 16px; min-height: 78px; padding: 10px 18px; }
  .premium-home .nav-enhanced .menu-toggle { display: block; }
  .premium-home .main-nav { position: absolute; top: calc(100% + 10px); inset-inline: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: stretch; width: auto; gap: 7px; padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); max-height: calc(100dvh - 125px); overflow-y: auto; }
  .premium-home .main-nav > a { padding: 13px 16px; font-size: .88rem; background: var(--bg); }
  .premium-home .mobile-nav-auth { grid-column: 1/-1; display: flex; gap: 10px; padding-top: 15px; margin-top: 7px; border-top: 1px solid var(--border); }
  .premium-home .mobile-nav-auth .btn { flex: 1; padding: 12px; font-size: .8rem; }
  .premium-home .nav-actions .nav-auth { display: none; }
}
@media (max-width: 1120px) {
  .premium-home .container { width: calc(100% - 48px); }
  .premium-home .hero-grid { gap: 25px; min-height: 590px; }
  .premium-home .hero-copy h1 { font-size: clamp(3rem,5.7vw,4.4rem); }
  .premium-home .hero-points { gap: 8px; font-size: .62rem; }
  .creative-grid { gap: 45px; }
  .creative-steps { gap: 15px; }
  .premium-home .pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .premium-home .feedback-section > .container { gap: 40px; }
  .premium-home .footer-grid { gap: 28px; padding-inline: 32px; grid-template-columns: 1fr .65fr 1.2fr; }
  .footer-launch { padding-inline: 32px; }
  .footer-bottom { margin-inline: 32px; }
}
@media (max-width: 760px) {
  .premium-home .container { width: calc(100% - 36px); }
  .premium-home .section { padding: 70px 0; }
  .premium-home .site-header { padding-top: 10px; }
  .premium-home .nav-wrap { width: calc(100% - 24px); min-height: 70px; padding: 9px 12px; border-radius: 20px; gap: 8px; }
  .premium-home .brand { gap: 6px; }
  .premium-home .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .premium-home .brand-name strong { font-size: 1.17rem; }
  .premium-home .brand-name small { font-size: .4rem; margin-top: 5px; }
  .premium-home .nav-actions { gap: 6px; }
  .premium-home .nav-tools { gap: 2px; }
  .premium-home .language-toggle { font-size: .7rem; padding-inline: 7px; }
  .premium-home .language-toggle-icon { display: none; }
  .premium-home .theme-toggle { width: 40px; height: 40px; }
  .premium-home .hero { padding-top: 46px; }
  .premium-home .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .premium-home .hero-copy h1 { font-size: clamp(2.8rem,10vw,4.5rem); }
  .premium-home .hero-copy > p { font-size: .89rem; max-width: 520px; }
  .premium-home .hero-actions { flex-direction: row; align-items: center; margin-block: 24px 20px; }
  .premium-home .hero-actions .btn { flex: 1; padding: 13px 15px; font-size: .76rem; gap: 10px; }
  .premium-home .hero-points { gap: 12px; font-size: .62rem; }
  .premium-home .hero .eyebrow { font-size: .67rem; margin-bottom: 20px; }
  .hero-art { min-height: 390px; margin-top: 24px; }
  .art-corner { top: 10px; font-size: .58rem; }
  .imagination-badge { padding: 4px 8px; gap: 5px; }
  .imagination-badge .play-icon { width: 25px; height: 25px; }
  .art-spark { width: 31px; height: 31px; }
  .spark-mint { width: 23px; height: 23px; }
  .spark-code { font-size: 16px; }
  .sculpture-controls { bottom: 15px; }
  .hero-baseline { min-height: 62px; font-size: .6rem; }
  .hero-baseline a { gap: 12px; font-size: .63rem; }
  .premium-home .stats { padding: 22px 0; }
  .premium-home .stat-item, .premium-home.dark .stat-item { padding: 10px 8px; }
  .premium-home .stat-item strong { font-size: 1.8rem; }
  .premium-home .stat-item span { font-size: .61rem; }
  .premium-home .creative-section { padding: 70px 0 35px; }
  .creative-grid { grid-template-columns: 1fr; gap: 0; }
  .creative-copy h2 { font-size: 2.2rem; }
  .creative-copy > p { font-size: .85rem; }
  .creative-steps { gap: 16px; margin-top: 30px; }
  .creative-steps strong { font-size: .85rem; }
  .creative-steps p { font-size: .63rem; }
  .creative-art { min-height: 330px; }
  .premium-home .section-heading h2 { font-size: 2rem; }
  .premium-home .section-heading > p { font-size: .8rem; }
  .premium-home .courses-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .premium-home .course-card { padding: 23px 20px; }
  .premium-home .course-card > p { font-size: .77rem; }
  .premium-home .course-card h3 { font-size: 1.3rem; }
  .course-index { font-size: .57rem; }
  .premium-home .feedback-section > .container { grid-template-columns: 1fr; gap: 28px; }
  .premium-home .feedback-section h2 { max-width: none; font-size: 2.2rem; }
  .premium-home .feedback-section .section-heading p { max-width: none; }
  .premium-home .feedback-form { padding: 22px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .premium-home .site-footer { padding-block: 10px 18px; }
  .premium-home .footer-shell { width: calc(100% - 24px); border-radius: 26px; }
  .footer-launch { grid-template-columns: 1fr; gap: 0; padding: 28px 24px 24px; }
  .footer-launch h2 { font-size: 2.5rem; }
  .premium-home .footer-launch p { font-size: .81rem; }
  .footer-playground { width: 260px; margin: 10px auto -8px; }
  .premium-home .footer-grid { grid-template-columns: .8fr 1.2fr; gap: 26px 20px; padding: 27px 24px; }
  .premium-home .footer-grid > div:first-child { grid-column: 1/-1; }
  .premium-home .footer-identity p { max-width: 400px; }
  .premium-home .site-footer h4 { font-size: 1.07rem; margin-bottom: 15px; }
  .footer-bottom { margin-inline: 24px; gap: 12px; }
  .premium-home .copyright { font-size: .6rem; }
  .premium-home .back-to-top { font-size: .63rem; gap: 7px; }
}
@media (max-width: 480px) {
  .premium-home .courses-grid, .premium-home .pricing-grid, .premium-home .features-grid { grid-template-columns: 1fr; }
  .premium-home .course-card { padding: 26px; }
  .premium-home .course-card > p { margin-bottom: 23px; }
  .course-topline { margin-bottom: 25px; }
  .premium-home .feedback-form { grid-template-columns: 1fr; padding: 20px; }
  .premium-home .feedback-form label, .premium-home .feedback-form label:nth-of-type(n+3), .premium-home .feedback-form > button, .premium-home .feedback-form > .feedback-status { grid-column: 1; }
  .premium-home .feedback-form textarea { min-height: 110px; }
  .premium-home .brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .premium-home .brand-name strong { font-size: 1.06rem; }
  .premium-home .nav-wrap { gap: 4px; padding-inline: 9px; }
  .premium-home .language-toggle { padding-inline: 5px; font-size: .65rem; }
  .premium-home .nav-actions { gap: 4px; }
  .premium-home .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .premium-home .footer-grid > div:first-child { grid-column: auto; }
  .premium-home .footer-links ul { grid-template-columns: 1fr 1fr; gap: 5px 16px; }
  .footer-launch h2 { font-size: 2.2rem; }
  .footer-playground { width: min(100%,250px); }
  .footer-bottom { flex-wrap: wrap; gap: 13px; padding-block: 18px; }
  .premium-home .back-to-top { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-home *, .premium-home *::before, .premium-home *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Small-screen polish: keep the header, hero art and cards inside the viewport. */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .premium-home .site-header { padding-top: 8px; }
  .premium-home .nav-wrap {
    width: calc(100% - 20px);
    min-height: 62px;
    padding: 8px 10px;
    gap: 6px;
  }
  .premium-home .brand { min-width: 0; }
  .premium-home .brand-name { min-width: 0; }
  .premium-home .brand-name strong { font-size: clamp(.92rem, 4.5vw, 1.15rem); }
  .premium-home .brand-name small { display: none; }
  .premium-home .nav-actions { min-width: 0; margin-inline-start: auto; }
  .premium-home .nav-tools { gap: 2px; }
  .premium-home .language-toggle-label { display: none; }
  .premium-home .language-toggle { width: 36px; padding: 0; justify-content: center; }
  .premium-home .theme-toggle,
  .premium-home .menu-toggle { width: 38px; height: 38px; }
  .premium-home .main-nav {
    top: calc(100% + 7px);
    width: 100%;
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 18px;
  }
  .premium-home .main-nav > a { padding: 11px 13px; }
  .premium-home .mobile-nav-auth { flex-direction: column; }
  .premium-home .hero { padding-top: 35px; }
  .premium-home .hero-copy h1 { font-size: clamp(2.25rem, 12vw, 3.25rem); line-height: 1.25; }
  .premium-home .hero-copy > p { font-size: .84rem; line-height: 1.9; }
  .premium-home .hero-actions { flex-direction: column; align-items: stretch; }
  .premium-home .hero-actions .btn { width: 100%; }
  .premium-home .hero-points { display: grid; gap: 8px; font-size: .63rem; }
  .premium-home .hero-art { min-height: 315px; margin-inline: -4px; }
  .premium-home .art-corner { font-size: .52rem; }
  .premium-home .imagination-badge { padding: 5px 7px; }
  .premium-home .sculpture-controls { gap: 8px; bottom: 10px; }
  .premium-home .sculpture-hint { font-size: .58rem; }
  .premium-home .shape-switcher { gap: 4px; }
  .premium-home .shape-switcher button { min-width: 31px; height: 31px; padding-inline: 7px; font-size: .58rem; }
  .premium-home .hero-baseline { min-height: 58px; gap: 10px; font-size: .57rem; }
  .premium-home .hero-baseline a { gap: 6px; font-size: .55rem; text-align: end; }
  .premium-home .section { padding: 58px 0; }
  .premium-home .section-heading { margin-bottom: 28px; }
  .premium-home .section-heading h2,
  .premium-home .creative-copy h2,
  .premium-home .feedback-section h2 { font-size: clamp(1.8rem, 9vw, 2.35rem); line-height: 1.4; }
  .premium-home .course-card { padding: 22px 18px; border-radius: 18px; }
  .premium-home .footer-launch h2 { font-size: clamp(1.9rem, 10vw, 2.5rem); }
}

@media (max-width: 360px) {
  .premium-home .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
  .premium-home .brand-name strong { font-size: .9rem; }
  .premium-home .nav-tools .language-toggle { display: none; }
  .premium-home .hero-copy h1 { font-size: 2.1rem; }
  .premium-home .hero-baseline .imagination-line { display: none; }
  .premium-home .hero-baseline { justify-content: flex-end; }
}

/* Bring the learning page into the same visual system as the home page. */
.premium-home.language-page-body .language-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.premium-home.language-page-body .language-topbar {
  width: min(1376px, calc(100% - 48px));
  min-height: 84px;
  gap: 22px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  box-shadow: 0 12px 35px rgba(12,10,34,.12);
}
.premium-home.language-page-body .language-nav { justify-content: center; flex: 1; }
.premium-home.language-page-body .language-nav a { background: transparent; color: var(--muted); }
.premium-home.language-page-body .language-nav a:hover { background: var(--surface-alt); color: var(--primary); }
.premium-home.language-page-body .language-main { padding-top: 54px; }
.premium-home.language-page-body .language-hero,
.premium-home.language-page-body .language-section { box-shadow: none; }
.language-site-footer { margin-top: 0; }
@media (max-width: 720px) {
  .premium-home.language-page-body .language-header { padding-top: 8px; }
  .premium-home.language-page-body .language-topbar { width: calc(100% - 20px); min-height: 62px; padding: 8px 10px; gap: 6px; }
  .premium-home.language-page-body .language-topbar .brand-name { display: none; }
  .premium-home.language-page-body .language-nav { order: 3; width: 100%; flex: none; justify-content: flex-start; }
  .premium-home.language-page-body .language-main { padding-top: 28px; }
}
