/* ==========================================================================
   Quran Azeem Online Academy: design system
   Bright modern layout, deep navy sections, blue primary, orange accent,
   with real-time depth (3D hero scene, tilt cards, rotating cube).
   Plus Jakarta Sans (display) + Inter (UI), both self-hosted.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/jakarta-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/jakarta-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/amiri-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/amiri-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
  --ink-950: #050d22;
  --ink-900: #0a1a3a;
  --ink-800: #102650;
  --ink-700: #183670;

  --blue-700: #1741b8;
  --blue-600: #1d4ed8;
  --blue-500: #3b7bff;
  --sky-300: #7db4ff;
  --sky-200: #bcd7ff;
  --sky-100: #e6efff;

  --amber-400: #ffb04a;
  --amber-500: #f59a1f;
  --amber-600: #d97706;
  --amber-700: #a65300;
  --amber-200: #ffd59b;

  --paper: #f3f6fc;
  --paper-2: #e8eefa;
  --white: #ffffff;

  --text: #0a1a3a;
  --muted: #4a5a78;
  --muted-dark: rgba(230, 239, 255, 0.78);
  --line: rgba(10, 26, 58, 0.12);
  --line-dark: rgba(230, 239, 255, 0.14);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --header-h: 76px;
  --gutter: clamp(1.25rem, 4.5vw, 3.25rem);
  --maxw: 1240px;
  --radius: 22px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.2, .9, .3, 1.25);
  --shadow-lg: 0 40px 80px -30px rgba(10, 26, 58, .35), 0 12px 28px -12px rgba(10, 26, 58, .18);
  --shadow-md: 0 24px 48px -24px rgba(10, 26, 58, .3), 0 6px 16px -8px rgba(10, 26, 58, .14);
  --focus: #1d4ed8;
}
.on-dark { color: var(--sky-100); --focus: #ffb04a; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--ink-900); color: #fff; padding: .75rem 1.1rem; border-radius: 10px; transition: top .2s; }
.skip:focus { top: .75rem; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .85rem; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-400); }
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--blue-600); }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: var(--ink-900); text-wrap: balance; }
.display--hero { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.02; margin-top: 1.25rem; }
.display--section { font-size: clamp(2rem, 3.8vw, 3.2rem); margin-top: 1rem; }
.display em { font-style: normal; background: linear-gradient(95deg, var(--blue-600), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.on-dark .display, .hero .display { color: #fff; }
.on-dark .display em { background-image: linear-gradient(95deg, var(--amber-200), var(--amber-500)); }
.hero .display { color: var(--ink-900); }
.lede { font-size: 1.125rem; line-height: 1.75; color: var(--muted); max-width: 58ch; }
.display + .lede, .eyebrow + .display + .lede { margin-top: 1.25rem; }
.lede--hero { font-size: 1.2rem; margin-top: 1.5rem; max-width: 52ch; }
.on-dark .lede { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: 0 1.6rem; border-radius: 14px; border: 1.5px solid transparent; font-family: var(--font-sans); font-weight: 600; font-size: .98rem; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 3.5rem; padding: 0 1.9rem; font-size: 1.02rem; }
.btn--primary { color: #fff; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); box-shadow: 0 14px 28px -10px rgba(29, 78, 216, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--primary:hover { box-shadow: 0 20px 34px -10px rgba(29, 78, 216, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--accent { color: var(--ink-950); background: linear-gradient(180deg, var(--amber-400), var(--amber-500)); box-shadow: 0 14px 28px -10px rgba(245, 154, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--accent:hover { box-shadow: 0 20px 34px -10px rgba(245, 154, 31, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { color: var(--ink-900); background: rgba(255, 255, 255, .8); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-900); background: #fff; }
.on-dark .btn--ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); }
.on-dark .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--outline { color: var(--ink-900); background: #fff; border-color: rgba(10, 26, 58, .25); }
.btn--outline:hover { border-color: var(--ink-900); }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0; background: none; border: 0; font-weight: 700; font-size: .95rem; color: var(--blue-600); }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow--light { color: var(--amber-400); }

/* ---------- Progress + header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue-500), var(--amber-500)); }

.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .3s; }
.header.is-hidden { transform: translateY(-100%); }
.header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(10, 26, 58, .25); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 48px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink-900); }
.brand__text small { margin-top: .2rem; font-size: .6rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--amber-700); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: 0 .85rem; border: 0; background: none; border-radius: 10px; font-family: var(--font-sans); font-weight: 600; font-size: .95rem; color: var(--ink-900); transition: background-color .2s, color .2s; }
.nav__link:hover, .has-menu.is-open > .nav__link { background: var(--paper); color: var(--blue-600); }
.nav__link .ico { width: .95em; height: .95em; transition: transform .25s var(--ease); }
.has-menu.is-open .nav__link .ico { transform: rotate(180deg); }
.nav__cta { min-height: 2.9rem; padding: 0 1.3rem; }
.has-menu { position: relative; }
.mega { position: absolute; left: 50%; top: calc(100% + 14px); width: min(36rem, 92vw); transform: translate(-50%, 8px); opacity: 0; visibility: hidden; padding: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
.mega__grid a { display: flex; flex-direction: column; gap: .1rem; padding: .8rem 1rem; border-radius: 12px; transition: background-color .2s; }
.mega__grid a:hover { background: var(--paper); }
.mega__grid span { font-family: var(--font-arabic); font-size: 1.25rem; line-height: 1.4; color: var(--blue-600); text-align: left; }
.mega__grid b { font-size: .9rem; font-weight: 700; color: var(--ink-900); }
.mega__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; padding: .85rem 1rem; border-radius: 12px; background: var(--paper); font-size: .9rem; font-weight: 700; color: var(--blue-600); }

.burger { display: none; width: 2.9rem; height: 2.9rem; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 1.2rem; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .25s var(--ease), background-color .2s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(900px 560px at 8% 0%, #fff 0%, transparent 70%), linear-gradient(115deg, #f7faff 0%, #eaf2fe 55%, #d9e9fb 100%); }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 16% 50%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36%); mask-image: linear-gradient(to right, transparent 0, #000 36%); transform: scale(1.06); will-change: transform; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; min-height: 41rem; padding-block: 4.5rem 7rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.hero__rail { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__facts li { display: flex; flex-direction: column; padding: 1.2rem 1.25rem 1.2rem 0; border-left: 1px solid var(--line); padding-left: 1.5rem; }
.hero__facts li:first-child { border-left: 0; padding-left: 0; }
.hero__facts b { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink-900); }
.hero__facts span { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* 3D scene */
.scene { --rx: 0deg; --ry: 0deg; --sy: 0px; position: relative; justify-self: end; width: min(100%, 34rem); aspect-ratio: 1 / 1.02; perspective: 1400px; }
.scene__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(var(--sy)) rotateX(calc(var(--rx) + 5deg)) rotateY(calc(var(--ry) - 12deg)); animation: bob 9s ease-in-out infinite; }
.plate { position: absolute; padding: 1.1rem 1.2rem; color: var(--ink-900); background: linear-gradient(155deg, rgba(255, 255, 255, .95), rgba(240, 247, 255, .78)); border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 40px 70px -28px rgba(10, 26, 58, .55), inset 0 1px 0 #fff; transform-style: preserve-3d; }
.plate__kicker { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); }
.plate--lesson { left: -4%; top: 60%; width: 42%; padding: .9rem 1rem; transform: translateZ(70px); }
.letters { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; margin-top: .6rem; }
.letters li { display: grid; place-items: center; aspect-ratio: 1.15; border-radius: 12px; font-family: var(--font-arabic); font-size: 1.35rem; line-height: 1; color: var(--ink-900); background: var(--sky-100); position: relative; animation: lit .6s var(--ease) both; animation-delay: calc(var(--i) * .28s + 1.2s); }
.letters li::after { content: ""; position: absolute; right: 5px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.300l2.600 2.600L12 5.500' fill='none' stroke='%230a1a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; opacity: 0; animation: pop-in .4s var(--ease-spring) both; animation-delay: calc(var(--i) * .28s + 1.4s); }
.plate__bar { height: 6px; margin-top: .9rem; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.plate__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-500), var(--amber-500)); animation: fill-bar 2s var(--ease) 1.2s forwards; }
.plate__foot { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .68rem; color: var(--muted); }
.plate__foot b { color: var(--ink-900); }
.plate--time { right: -2%; bottom: 2%; width: 38%; padding: .9rem 1rem; transform: translateZ(120px); }
.plate__clocks { display: grid; gap: .1rem; margin-top: .6rem; }
.plate__clocks li { display: flex; justify-content: space-between; align-items: baseline; padding: .4rem 0; border-bottom: 1px dashed rgba(10, 26, 58, .15); font-size: .78rem; color: var(--muted); }
.plate__clocks li:last-child { border-bottom: 0; }
.plate__clocks li:nth-child(4) { display: none; }
.plate__clocks b { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.medal { position: absolute; right: 6%; top: 1%; width: 28%; aspect-ratio: 1; transform: translateZ(160px); filter: drop-shadow(0 26px 24px rgba(10, 26, 58, .4)); animation: spin-y 14s linear infinite; transform-style: preserve-3d; }
.orb { position: absolute; display: inline-flex; align-items: center; padding: .5rem .95rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: linear-gradient(180deg, var(--blue-500), var(--blue-700)); box-shadow: 0 18px 30px -10px rgba(29, 78, 216, .7), inset 0 1px 0 rgba(255, 255, 255, .4); animation: float 6s ease-in-out infinite; }
.orb--a { left: 46%; top: 2%; transform: translateZ(140px) rotate(-6deg); }
.orb--b { right: 2%; top: 36%; background: linear-gradient(180deg, var(--amber-400), var(--amber-600)); color: var(--ink-950); box-shadow: 0 18px 30px -10px rgba(245, 154, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .5); transform: translateZ(180px) rotate(5deg); animation-delay: -2s; }
.orb--c { left: 8%; top: 46%; transform: translateZ(100px) rotate(-3deg); animation-delay: -4s; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; background: var(--ink-900); color: #fff; border-block: 1px solid rgba(255, 255, 255, .08); }
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker ul { display: flex; flex: none; }
.ticker li { display: inline-flex; align-items: center; gap: .9rem; padding: 1.05rem 2.4rem; border-right: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.ticker b { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.ticker span { font-family: var(--font-arabic); font-size: 1.2rem; color: var(--amber-400); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--light { background: #fff; }
.section--paper { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.section--dark { background: radial-gradient(900px 500px at 85% 0%, rgba(59, 123, 255, .22), transparent 70%), var(--ink-900); }
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 4rem; }
.head--split > div { flex: 1 1 28rem; }
.head--split .lede { flex: 0 1 26rem; }
.head--center { text-align: center; }
.head--center .lede { margin-inline: auto; margin-top: 1.25rem; }

/* Reveal: animation with backwards fill so tilt transforms still work afterwards */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible { animation: reveal-in .9s var(--ease) var(--d, 0ms) backwards; }
.js [data-rise] { animation: rise .9s var(--ease) calc(var(--i, 0) * 110ms + 120ms) backwards; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.course { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s var(--ease); }
.course.is-tilting { transition: transform .08s linear, box-shadow .4s var(--ease); box-shadow: var(--shadow-lg); }
.course::after, .plan::after, .cert::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 255, 255, .5), transparent 55%); transition: opacity .3s; mix-blend-mode: soft-light; }
.course.is-tilting::after, .plan.is-tilting::after, .cert.is-tilting::after { opacity: 1; }
.course__art { position: relative; height: 9.5rem; display: flex; align-items: flex-end; justify-content: space-between; padding: 1.1rem 1.3rem; overflow: hidden; color: #fff; }
.course[data-accent="a"] .course__art { background: linear-gradient(135deg, #f59a1f, #d97706); }
.course[data-accent="b"] .course__art { background: linear-gradient(135deg, #3b7bff, #1741b8); }
.course[data-accent="c"] .course__art { background: linear-gradient(135deg, #183670, #0a1a3a); }
.course[data-accent="d"] .course__art { background: linear-gradient(135deg, #7db4ff, #3b7bff); }
.course[data-accent="e"] .course__art { background: linear-gradient(135deg, #ffb04a, #e8770a); }
.course[data-accent="f"] .course__art { background: linear-gradient(135deg, #1d4ed8, #0a1a3a); }
.course__art::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .45), transparent 45%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.22'%3E%3Cpath d='M32 0l32 32-32 32L0 32z'/%3E%3Ccircle cx='32' cy='32' r='14'/%3E%3C/g%3E%3C/svg%3E"); }
.course__ar { position: absolute; right: 1rem; top: -.2rem; font-family: var(--font-arabic); font-weight: 700; font-size: 5.2rem; line-height: 1.3; color: rgba(255, 255, 255, .28); user-select: none; }
.course__ico { position: relative; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); font-size: 1.5rem; }
.course__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.35rem; }
.course h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.025em; color: var(--ink-900); }
.course p { margin-top: .6rem; font-size: .98rem; line-height: 1.65; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.1rem; }
.tags li { padding: .28rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--ink-700); background: var(--paper); border: 1px solid var(--line); }
.course .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.why__media { position: relative; padding-bottom: 3rem; }
.ph { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.ph img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 30% 50%; }
.why__quote { position: absolute; left: 1.5rem; right: -1.5rem; bottom: 0; padding: 1.25rem 1.5rem; color: #fff; background: var(--ink-900); border-radius: 16px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--amber-500); }
.why__quote p { font-family: var(--font-arabic); font-size: 1.6rem; line-height: 1.7; color: var(--amber-200); }
.why__quote footer { margin-top: .25rem; font-size: .9rem; color: var(--muted-dark); }
.why__grid { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.feature { display: flex; gap: 1.1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.feature__icon { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; color: var(--blue-600); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 18px -10px rgba(10, 26, 58, .4); font-size: 1.35rem; }
.feature h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.015em; color: var(--ink-900); }
.feature p { margin-top: .25rem; font-size: .97rem; color: var(--muted); }

/* ---------- Cube ---------- */
.cubes { position: relative; overflow: hidden; background: var(--ink-950); }
.cubes__bg { position: absolute; inset: 0; opacity: .3; }
.cubes__bg img { width: 100%; height: 100%; object-fit: cover; }
.cubes__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-950) 10%, rgba(5, 13, 34, .55) 60%, rgba(5, 13, 34, .85)); }
.cubes__layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.cubes__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1.25rem; }
.cubes__tab { min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; font-weight: 700; font-size: .92rem; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); transition: background-color .2s, color .2s, border-color .2s; }
.cubes__tab:hover { border-color: #fff; }
.cubes__tab.is-active { color: var(--ink-950); background: var(--amber-400); border-color: var(--amber-400); }
.cubes__text { min-height: 1.75rem; margin-bottom: .75rem; color: var(--muted-dark); }
.cubes__stage { --s: clamp(14rem, 28vw, 22rem); position: relative; display: grid; place-items: center; height: calc(var(--s) * 1.4); perspective: 1500px; }
.cube { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; cursor: grab; touch-action: pan-y; }
.cube.is-drag { cursor: grabbing; }
.cube__face { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .3); background: var(--ink-800); transform: rotateY(calc(var(--i) * 90deg)) translateZ(calc(var(--s) / 2)); box-shadow: inset 0 0 60px rgba(5, 13, 34, .5); backface-visibility: hidden; }
.cube__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cube__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 13, 34, .05) 30%, rgba(5, 13, 34, .85)); }
.cube__code, .cube__name { position: absolute; left: 1.1rem; z-index: 1; }
.cube__code { top: 1rem; padding: .3rem .7rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-950); background: var(--amber-400); }
.cube__code b { font-weight: 800; }
.cube__name { bottom: 1.1rem; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: #fff; }
.cubes__floor { position: absolute; bottom: 6%; left: 50%; width: calc(var(--s) * 1.1); height: calc(var(--s) * .25); transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(10px); pointer-events: none; }

/* ---------- Timeline ---------- */
.process__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.process__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.process__head .btn { margin-top: 2rem; }
.timeline { position: relative; display: grid; gap: 1.5rem; padding-left: 4.5rem; }
.timeline__rail { position: absolute; left: 1.55rem; top: 1.5rem; bottom: 1.5rem; width: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; }
.timeline__fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, var(--amber-400), var(--blue-500)); border-radius: 2px; box-shadow: 0 0 18px rgba(245, 154, 31, .6); }
.timeline__step { position: relative; }
.timeline__node { position: absolute; left: -4.5rem; top: 1rem; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: rgba(255, 255, 255, .6); background: var(--ink-800); border: 2px solid rgba(255, 255, 255, .18); transition: color .3s, background-color .3s, border-color .3s, transform .4s var(--ease-spring); }
.timeline__step.is-lit .timeline__node { color: var(--ink-950); background: var(--amber-400); border-color: var(--amber-400); transform: scale(1.08); box-shadow: 0 0 0 6px rgba(245, 154, 31, .18); }
.timeline__card { padding: 1.6rem 1.75rem; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); transition: background-color .3s, border-color .3s; }
.timeline__step.is-lit .timeline__card { background: rgba(255, 255, 255, .1); border-color: rgba(255, 176, 74, .4); }
.tag { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-200); background: rgba(245, 154, 31, .16); }
.timeline__card h3 { margin-top: .85rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: #fff; }
.timeline__card p { margin-top: .5rem; color: var(--muted-dark); font-size: .98rem; }

/* ---------- Finder ---------- */
.finder__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.finder__card { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); }
.q { margin: 0; padding: 0; border: 0; min-width: 0; }
.q legend { display: flex; align-items: center; gap: .75rem; padding: 0; margin-bottom: .85rem; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink-900); }
.q legend span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; font-size: .8rem; color: #fff; background: var(--blue-600); }
.q__opts { display: flex; flex-wrap: wrap; gap: .55rem; }
.q__opts label { position: relative; }
.q__opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.q__opts span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 12px; font-size: .94rem; font-weight: 600; color: var(--ink-800); background: var(--paper); border: 1.5px solid transparent; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.q__opts label:hover span { border-color: var(--sky-300); }
.q__opts input:checked + span { color: #fff; background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(29, 78, 216, .8); }
.q__opts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.result { padding: 1.5rem; border-radius: 18px; background: linear-gradient(135deg, var(--ink-900), var(--ink-700)); color: #fff; min-height: 9rem; display: grid; align-items: center; }
.result__idle { color: var(--muted-dark); text-align: center; }
.result__kicker { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-400); }
.result__title { margin-top: .4rem; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -.03em; color: #fff; }
.result__why { margin-top: .5rem; color: var(--muted-dark); }
.result__next { margin-top: .5rem; font-size: .92rem; font-weight: 600; color: var(--amber-200); }
.result__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.result.is-ready .result__body { animation: reveal-in .6s var(--ease) backwards; }
.result .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.result .btn--outline:hover { border-color: #fff; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 2rem 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__figure { display: flex; align-items: baseline; gap: .3rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 4.5vw, 3.75rem); line-height: 1; letter-spacing: -.04em; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.stat__figure small { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; color: var(--amber-700); }
.stat__label { display: block; margin-top: .75rem; font-size: .92rem; color: var(--muted); max-width: 22ch; }

/* ---------- Time zones ---------- */
.zones__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: stretch; }
.zone { display: flex; flex-direction: column; gap: .5rem; padding: 2rem; border-radius: 24px; background: linear-gradient(145deg, rgba(59, 123, 255, .35), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.zone__label { display: flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-400); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: #4ade80; animation: pulse-green 2s infinite; }
.zone__time { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.zone__name { font-weight: 600; color: var(--sky-200); }
.zone__hint { flex: 1; color: var(--muted-dark); font-size: .95rem; min-height: 3rem; }
.zone .btn { align-self: flex-start; margin-top: .75rem; }
.zone__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.zone-city { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .15rem .5rem; align-content: center; padding: 1.1rem 1.25rem; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.zone-city:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.zone-city.is-prime { border-color: rgba(255, 176, 74, .55); }
.zone-city__name { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--sky-200); }
.zone-city__time { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.zone-city__day { grid-row: 1; grid-column: 2; display: inline-flex; align-items: center; gap: .4rem; color: var(--amber-400); }
.zone-city__day i { display: none; }
.zone-city__tag { grid-column: 1 / -1; font-size: .76rem; font-weight: 600; color: #9fb7e0; }
.zone-city.is-prime .zone-city__tag { color: var(--amber-200); }
.zone-city.is-night .zone-city__day { color: var(--sky-300); }
.regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: 3rem; }
.region { border-top: 1px solid var(--line-dark); }
.region summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.015em; list-style: none; cursor: pointer; }
.region summary::-webkit-details-marker { display: none; }
.region summary::after { content: "+"; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); font-weight: 500; }
.region[open] summary::after { content: "\2212"; background: var(--amber-400); border-color: var(--amber-400); color: var(--ink-950); }
.region p { padding: 0 2.5rem 1.4rem 0; color: var(--muted-dark); font-size: .95rem; line-height: 1.8; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.plan { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; display: flex; flex-direction: column; gap: 1.4rem; padding: 2.25rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-md); transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s; }
.plan.is-tilting { transition: transform .08s linear, box-shadow .4s; box-shadow: var(--shadow-lg); }
.plan__name { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-600); }
.plan__price { display: flex; align-items: baseline; gap: .6rem; }
.plan__price b { font-family: var(--font-display); font-weight: 800; font-size: 4.2rem; line-height: 1; letter-spacing: -.05em; color: var(--ink-900); }
.plan__price span { color: var(--muted); font-size: .95rem; }
.plan__list { display: grid; gap: .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); flex: 1; }
.plan__list li { position: relative; padding-left: 1.8rem; font-size: .97rem; color: var(--muted); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .28rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.300l2.600 2.600L12 5.500' fill='none' stroke='%230a1a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .75rem no-repeat; }
.plan--featured { color: #fff; background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--featured .plan__name { color: var(--amber-400); }
.plan--featured .plan__price b { color: #fff; }
.plan--featured .plan__price span, .plan--featured .plan__list li { color: var(--muted-dark); }
.plan--featured .plan__list { border-color: var(--line-dark); }
.plan__badge { position: absolute; top: -.8rem; left: 2rem; padding: .35rem .8rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-950); background: var(--amber-400); }

/* ---------- Certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.cert { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; display: block; width: 100%; padding: .65rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); cursor: zoom-in; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s; }
.cert.is-tilting { transition: transform .08s linear, box-shadow .4s; box-shadow: var(--shadow-lg); }
.cert img { width: 100%; border-radius: 10px; }
.lightbox { width: min(94vw, 1200px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 13, 34, .9); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lightbox__close { position: absolute; top: -3.4rem; right: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; }
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-layout__head .link-arrow { margin-top: 1.25rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item h3 { margin: 0; }
.faq__item button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 3.5rem; padding: 1.4rem 0; text-align: left; background: none; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink-900); }
.faq__item button .ico { width: 1.4rem; height: 1.4rem; transition: transform .3s var(--ease); color: var(--blue-600); }
.faq__item.is-open button .ico { transform: rotate(180deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p { padding: 0 3rem 1.5rem 0; color: var(--muted); }

/* ---------- Trial form ---------- */
.trial__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact { display: grid; gap: 1.1rem; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.contact li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ico { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; color: var(--amber-400); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 1.25rem; }
.contact small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-400); }
.contact a { display: block; font-weight: 600; color: #fff; padding: .1rem 0; }
.contact a:hover { color: var(--amber-400); }
.form { display: grid; gap: 1.15rem; padding: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--text); background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); }
.form__title { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; color: var(--ink-900); }
.form__note { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; font-weight: 600; color: var(--blue-700); background: var(--sky-100); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-900); }
.field input, .field select { width: 100%; min-height: 3.2rem; padding: 0 1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); border: 1.5px solid transparent; border-radius: 12px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field input::placeholder { color: #8493ae; }
.field input:hover, .field select:hover { border-color: #c5d3ea; }
.field input:focus, .field select:focus { outline: none; background: #fff; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29, 78, 216, .14); }
.field.is-invalid input, .field.is-invalid select { border-color: #c0332f; background: #fff7f6; }
.field__error { font-size: .82rem; font-weight: 600; color: #b02a26; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; }
.form__status { font-size: .95rem; font-weight: 600; line-height: 1.55; color: var(--muted); }
.form__status.is-success { color: #14753f; }
.form__status.is-error { color: #b02a26; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.post a { display: flex; flex-direction: column; gap: 1.1rem; height: 100%; }
.post figure { overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-md); }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.post a:hover img { transform: scale(1.05); }
.post h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; color: var(--ink-900); }
.post .link-arrow { margin-top: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem 4rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem; }
.footer__logo { display: inline-flex; padding: .5rem .9rem; background: #fff; border-radius: 14px; }
.footer__logo img { height: 3.2rem; width: auto; }
.footer__about p { margin-top: 1.25rem; max-width: 36ch; color: var(--muted-dark); }
.social { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin-top: 1rem; }
.footer h3 { margin-bottom: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.footer a { display: inline-block; padding: .3rem 0; color: var(--muted-dark); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .88rem; color: rgba(230, 239, 255, .6); }

/* ---------- Keyframes ---------- */
@keyframes reveal-in { from { opacity: 0; transform: perspective(1000px) translateY(36px) rotateX(8deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin-y { from { transform: translateZ(160px) rotateY(0deg); } to { transform: translateZ(160px) rotateY(360deg); } }
@keyframes lit { from { opacity: .35; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes fill-bar { to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-33.3333%); } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .course-grid, .plans, .certs, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans > :last-child, .posts > :last-child, .certs > :last-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: .75rem var(--gutter) 1.75rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -20px rgba(10, 26, 58, .3); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; min-height: 3.2rem; padding: 0 .5rem; justify-content: space-between; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega { position: static; width: 100%; transform: none; opacity: 1; visibility: visible; display: none; padding: .5rem 0; border: 0; box-shadow: none; }
  .has-menu.is-open .mega { display: block; transform: none; }
  .mega__grid { grid-template-columns: 1fr; }
  .nav__cta { width: 100%; }

  .hero__media { position: relative; order: 2; width: 100%; height: 22rem; }
  .hero__media img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); object-position: 20% 40%; }
  .hero__inner { order: 1; grid-template-columns: 1fr; min-height: 0; padding-block: 3rem 1rem; }
  .scene { display: none; }
  .hero__rail { position: relative; order: 3; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__facts li { border-top: 1px solid var(--line); }
  .hero__facts li:nth-child(-n+2) { border-top: 0; }

  .why, .cubes__layout, .process__layout, .finder__layout, .zones__layout, .faq-layout, .trial__layout { grid-template-columns: minmax(0, 1fr); }
  .zone__grid > *, .zones__layout > * { min-width: 0; }
  .why__media { max-width: 34rem; }
  .process__head { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .regions { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .brand__text small { display: none; }
  .btn { width: 100%; }
  .nav__cta, .burger { width: auto; }
  .hero__actions { flex-direction: column; }
  .course-grid, .plans, .certs, .posts, .form__row { grid-template-columns: 1fr; }
  .plans > :last-child, .posts > :last-child, .certs > :last-child { grid-column: auto; }
  .zone__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .zone-city { padding: .9rem; }
  .zone-city__time { font-size: 1.45rem; }
  .zone__time { font-size: 2.6rem; }
  .why__quote { position: relative; left: auto; right: auto; margin: -2rem 1rem 0; }
  .why__media { padding-bottom: 0; }
  .timeline { padding-left: 3.6rem; }
  .timeline__node { left: -3.6rem; width: 2.7rem; height: 2.7rem; }
  .timeline__rail { left: 1.3rem; }
  .faq__panel p { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .stat__label { max-width: none; }
}

/* ---------- Reduced motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal]:not(.is-visible) { opacity: 1; }
  .letters li::after, .plate__bar i { opacity: 1; transform: none; }
  .plate__bar i { transform: scaleX(1); }
}
@media print {
  .header, .progress, .ticker, .scene, .hero__media, .cubes, .lightbox { display: none !important; }
  body { color: #000; }
}
