/* =========================================================
   FutureX Academy — Design tokens (Light / Purple / Blue)
   ========================================================= */
:root{
  --bg: #FFFFFF;
  --bg-soft: #F7F7FC;
  --ink: #14152B;
  --surface: #FFFFFF;
  --surface-soft: #F5F5FB;
  --border: #E7E7F1;
  --border-hi: #D6D5EC;

  --violet: #6D3BF5;
  --violet-dark: #5327D6;
  --violet-tint: #F1EBFF;
  --azure: #2563EB;
  --azure-tint: #EAF1FF;

  --text: #14152B;
  --text-mute: #62637E;
  --text-faint: #9698B0;

  --grad-brand: linear-gradient(135deg, var(--violet) 0%, var(--azure) 100%);
  --grad-text: linear-gradient(90deg, var(--violet-dark) 0%, var(--violet) 45%, var(--azure) 100%);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-ui: "Plus Jakarta Sans", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;

  --ease: cubic-bezier(.16,.8,.24,1);
  --container: 1180px;

  --shadow-sm: 0 1px 2px rgba(20,21,43,0.04), 0 1px 1px rgba(20,21,43,0.03);
  --shadow-md: 0 8px 24px -8px rgba(20,21,43,0.12);
  --shadow-lg: 0 24px 60px -20px rgba(93,42,220,0.22);

  /* Logo glow: dark halo in light mode (keeps light logo details
     visible on white), flips to a white halo in dark mode (keeps
     the logo's dark-navy strokes visible on dark backgrounds). */
  --logo-glow: rgba(20,21,43,0.4);
}

/* =========================================================
   Dark mode — soft charcoal/navy palette
   Toggled by adding data-theme="dark" to <html> via JS.
   Resets to light on every new visit (no saved preference).
   ========================================================= */
html[data-theme="dark"]{
  --logo-glow: rgba(255,255,255,0.55);
  --bg: #14151F;
  --bg-soft: #191B27;
  --ink: #F2F2F7;
  --surface: #1B1D2A;
  --surface-soft: #20222F;
  --border: #2C2E3F;
  --border-hi: #3A3D54;

  --violet-tint: #6D3BF52a;
  --azure-tint: #2563EB22;

  --text: #F2F2F7;
  --text-mute: #A7A8C0;
  --text-faint: #74758F;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.28), 0 1px 1px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.6);
}
html[data-theme="dark"] body{ background: var(--bg); }
html[data-theme="dark"] .nav{ background: rgba(20,21,31,0.82); }
html[data-theme="dark"] .nav.is-scrolled{ background: rgba(20,21,31,0.94); }
html, body{ transition: background-color .35s ease, color .35s ease; }
html[data-theme="dark"] .card__art::after{ background: linear-gradient(180deg, rgba(109,59,245,0.10), rgba(0,0,0,0.6)); }
html[data-theme="dark"] .btn--outline{ color: var(--ink); border-color: var(--border-hi); }
html[data-theme="dark"] .brand-word__future{
  color: #EDEFFF;
  text-shadow: 0 0 14px rgba(255,255,255,0.55), 0 0 30px rgba(150,170,255,0.35);
}
html[data-theme="dark"] .brand-word__x{ filter: drop-shadow(0 0 14px rgba(120,200,255,0.5)); }

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4{ font-family: var(--font-display); margin:0; font-weight: 600; letter-spacing: -0.02em; }
p{ margin:0; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; }

::selection{ background: var(--violet); color:#fff; }
:focus-visible{ outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.skip-link{
  position:absolute; left:-999px; top:0; z-index:999;
  background:var(--violet); color:#fff; padding:10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left:0; }

.text-gradient{
  background: var(--grad-text);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.section{ max-width: var(--container); margin: 0 auto; padding: 104px 24px; }
.section--split{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center; }
.section__head{ max-width: 620px; margin: 0 auto 52px; text-align:center; }
.section__title{ font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; color: var(--ink); }
.section__sub{ color: var(--text-mute); font-size: 17px; margin-top: 14px; line-height:1.7; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-ui); font-size: 12px; font-weight:700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet);
}
.eyebrow--center{ display:flex; justify-content:center; }
.eyebrow--pill{
  border: 1px solid var(--border-hi); background: var(--violet-tint);
  padding: 7px 16px; border-radius: 999px; font-size: 11px;
}
.eyebrow__dot{ width:6px; height:6px; border-radius:50%; background: var(--grad-brand); }

.grid{ display:grid; gap: 20px; }
.grid--4{ grid-template-columns: repeat(4, 1fr); }
.grid--6{ grid-template-columns: repeat(3, 1fr); }

/* =========================================================
   Swipeable course carousel widget
   ========================================================= */
.carousel{ position:relative; }
.carousel__track{
  display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; padding:6px 4px 18px; margin:0 -4px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.carousel__track::-webkit-scrollbar{ display:none; }
.carousel__track{ cursor:grab; }
.carousel__track.is-dragging{ cursor:grabbing; scroll-snap-type:none; user-select:none; }
.carousel__track > .card{
  flex:0 0 calc((100% - 40px) / 3); scroll-snap-align:start; min-width:0;
}
.carousel__arrow{
  position:absolute; top:38%; transform:translateY(-50%); z-index:5;
  width:44px; height:44px; border-radius:50%; display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--border); color:var(--ink);
  box-shadow:var(--shadow-md); cursor:pointer; transition:transform .2s var(--ease), border-color .2s ease, opacity .2s ease;
}
.carousel__arrow:hover{ transform:translateY(-50%) scale(1.08); border-color:var(--border-hi); }
.carousel__arrow--prev{ left:-22px; }
.carousel__arrow--next{ right:-22px; }
.carousel__arrow[disabled]{ opacity:.35; cursor:default; pointer-events:none; }
.carousel__dots{ display:flex; justify-content:center; gap:8px; margin-top:4px; }
.carousel__dots button{
  width:8px; height:8px; border-radius:50%; border:none; padding:0;
  background:var(--border-hi); cursor:pointer; transition:transform .2s ease, background .2s ease;
}
.carousel__dots button.is-active{ background:var(--violet); transform:scale(1.3); }

.card__art--icon{ display:grid; place-items:center; color:var(--ic); background:var(--tint); }

@media (max-width: 980px){
  .carousel__track > .card{ flex:0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 560px){
  .carousel__track > .card{ flex:0 0 88%; }
  .carousel__arrow{ width:38px; height:38px; }
  .carousel__arrow--prev{ left:-10px; }
  .carousel__arrow--next{ right:-10px; }
}

.accent-bar{
  display:block; width:48px; height:3px; margin-top:14px; border-radius:99px;
  background: var(--grad-brand);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  --pad-y: 12px; --pad-x: 20px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-ui); font-weight:600; font-size: 14.5px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor:pointer;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
/* Diagonal light sweep on hover, active-state squash for tactile press feedback */
.btn::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 46%, rgba(255,255,255,.35) 54%, transparent 70%);
  transform: translateX(-130%); transition: transform .6s var(--ease);
}
.btn:hover::before{ transform: translateX(130%); }
.btn > *{ position: relative; z-index: 1; }
.btn:active{ transform: translateY(0) scale(.96); transition-duration: .1s; }
.btn--lg{ --pad-y:14px; --pad-x:24px; font-size:15px; }
.btn--block{ width:100%; }
.btn--primary{
  background: var(--grad-brand); color:#fff;
  box-shadow: 0 10px 24px -10px rgba(109,59,245,.55);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(109,59,245,.65); }
.btn--outline{ background: transparent; color: var(--ink); border-color: var(--border-hi); }
.btn--outline:hover{ border-color: var(--violet); background: var(--violet-tint); color: var(--violet-dark); transform: translateY(-2px); }
.btn--ghost{ color: var(--text-mute); }
.btn--ghost:hover{ color: var(--ink); background: var(--surface-soft); }
.btn--magnetic{ will-change: transform; }
.btn__arrow{ transition: transform .3s var(--ease); }
.btn:hover .btn__arrow{ transform: translate(3px,-3px); }

/* =========================================================
   Navbar
   ========================================================= */
.nav{
  position: sticky; top:0; z-index: 100;
  padding: 14px 24px; background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.is-scrolled{ border-bottom-color: var(--border); box-shadow: var(--shadow-sm); padding: 10px 24px; }
.nav__inner{ max-width: var(--container); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap: 24px; }
.nav__brand{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; font-size: 17px; color: var(--ink); }
.nav__brand span{ color: var(--violet); font-weight:500; }
.nav__mark{
  width:30px; height:30px; border-radius: 8px; display:grid; place-items:center;
  background: var(--grad-brand); color:#fff; font-family: var(--font-display); font-weight:700; font-size:15px; flex-shrink:0;
}
.nav__links{ display:flex; gap: 32px; font-family: var(--font-ui); font-size: 14.5px; font-weight:600; color: var(--text-mute); }
.nav__links a{ position:relative; transition: color .2s ease; }
.nav__links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin:left; transition: transform .3s var(--ease); border-radius: 2px;
}
.nav__links a:hover{ color: var(--ink); }
.nav__links a:hover::after{ transform: scaleX(1); }
.nav__actions{ display:flex; align-items:center; gap:10px; }
@media (max-width: 420px){
  .nav__actions{ gap:6px; }
  .theme-toggle, .social-btn{ width:34px; height:34px; }
  .nav__actions .btn--primary{ padding-left:14px; padding-right:14px; font-size:14px; }
}
.theme-toggle{
  display:grid; place-items:center; width:38px; height:38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  cursor:pointer; flex-shrink:0; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.theme-toggle:hover{ border-color: var(--border-hi); transform: translateY(-1px); }
.theme-toggle svg{ display:block; }
.social-btn{
  display:grid; place-items:center; width:38px; height:38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  cursor:pointer; flex-shrink:0; transition: border-color .2s ease, background .2s ease, transform .2s ease, color .2s ease;
}
.social-btn:hover{ border-color: var(--violet); color: var(--violet); transform: translateY(-1px); }
.social-btn svg{ display:block; }
.theme-toggle .icon-moon{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }
.nav__toggle{
  display:none; background:none; border:none; width:44px; height:44px; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
  border-radius: var(--radius-sm); -webkit-tap-highlight-color: transparent;
}
.nav__toggle:active{ background: var(--violet-tint); }
.nav__toggle span{
  width: 20px; height:2px; background: var(--ink); border-radius:2px;
  transition: transform .3s var(--ease), opacity .2s ease, width .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav__mobile{
  max-height:0; overflow:hidden; display:flex; flex-direction:column;
  transition: max-height .4s var(--ease), opacity .3s ease;
  font-family: var(--font-ui); font-weight:600; font-size:16px; opacity:0;
}
.nav__mobile a{
  padding: 16px 8px; color: var(--text); border-top: 1px solid var(--border);
  min-height: 48px; display:flex; align-items:center;
  transition: color .2s ease, background .2s ease, padding-left .2s ease;
}
.nav__mobile a:active{ background: var(--violet-tint); color: var(--violet-dark); padding-left: 14px; }
.nav__mobile.is-open{ max-height: 360px; margin-top: 14px; opacity:1; }

@media (max-width: 860px){
  .nav__links, .nav__actions .btn--ghost{ display:none; }
  .nav__toggle{ display:flex; }
}

/* =========================================================
   Navbar / footer logo (text-based, matches client's logo colors)
   ========================================================= */
.brand-word{ font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
.brand-word__future{ color: #172a63; }
.brand-word__x{
  background: linear-gradient(135deg, #1c3fae 0%, #2e8fe0 55%, #56cdf0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__brand .brand-word{ font-size: 22px; }
.footer__brand .brand-word{ font-size: 22px; }
.nav__brand-img{
  height: 46px; width:auto; display:block;
  filter:
    drop-shadow(0 0 1px var(--logo-glow))
    drop-shadow(0 0 4px var(--logo-glow))
    drop-shadow(0 0 10px var(--logo-glow))
    drop-shadow(0 0 18px var(--logo-glow));
  transition: filter .3s ease;
}
.footer__brand .nav__brand-img{ height: 42px; margin-bottom: 4px; }

/* =========================================================
   Full-page photo slideshow
   ========================================================= */
.fullpage-slideshow{
  position: relative; width: 100%; height: 72vh; min-height: 420px; max-height: 640px;
  overflow: hidden; background: #0B0C1A; /* fixed dark backdrop -- do not use var(--ink) here, it flips near-white in dark mode */
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.fullpage-slideshow__track{ position:absolute; inset:0; }
.fullpage-slideshow__video-wrap{
  position:absolute; inset:0; z-index:0; opacity:1; transition: opacity 1s ease;
}
.fullpage-slideshow__video-wrap.is-hidden{ opacity:0; pointer-events:none; }
/* Same blurred-cover + sharp-contain trick used for the photo slides,
   so the intro video is never cropped no matter its aspect ratio. */
.fullpage-slideshow__video-bg{
  position:absolute; inset:-40px; width:calc(100% + 80px); height:calc(100% + 80px);
  object-fit:cover; z-index:0;
  filter: blur(38px) saturate(1.35) brightness(.5);
}
.fullpage-slideshow__video-fg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:contain; z-index:1;
}
.fullpage-slideshow__slide{
  position:absolute; inset:0; width:100%; height:100%;
  overflow:hidden; opacity:0; transition: opacity 1.2s ease;
}
.fullpage-slideshow__slide.is-active{ opacity:1; }
/* Blurred, scaled-up copy of the same photo fills the space around the
   sharp foreground image, replacing flat black letterbox bars with a
   soft, on-brand backdrop instead. Real <img> tags (not CSS background
   tricks) for reliable loading and easy debugging via DevTools/Network. */
.fullpage-slideshow__bg{
  position:absolute; inset:-40px; width:calc(100% + 80px); height:calc(100% + 80px);
  object-fit:cover; z-index:0;
  filter: blur(38px) saturate(1.35) brightness(.5);
}
.fullpage-slideshow__fg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:contain; z-index:1;
}
.fullpage-slideshow__overlay{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background: linear-gradient(180deg, rgba(10,6,30,.45) 0%, rgba(10,6,30,.15) 40%, rgba(10,6,30,.55) 100%);
}
.fullpage-slideshow__dots{
  position:absolute; z-index:2; left:0; right:0; bottom:26px;
  display:flex; justify-content:center; gap:8px;
}
.fullpage-slideshow__dot{
  width:8px; height:8px; border-radius:50%; border:none; padding:0; cursor:pointer;
  background: rgba(255,255,255,.5); transition: background .3s ease, width .3s ease;
}
.fullpage-slideshow__dot.is-active{ background:#fff; width:26px; border-radius:999px; }
.fullpage-slideshow__scroll{
  position:absolute; z-index:2; left:50%; bottom:64px; transform:translateX(-50%);
  color:#fff; opacity:.8; animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce{ 0%,100%{ transform:translate(-50%,0);} 50%{ transform:translate(-50%,8px);} }
@media (prefers-reduced-motion: reduce){ .fullpage-slideshow__scroll{ animation:none; } .fullpage-slideshow__slide{ transition:none; } }
@media (max-width: 720px){ .fullpage-slideshow{ height: 52vh; min-height: 340px; } }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative; padding: 140px 24px 72px; overflow:hidden;
  display:flex; flex-direction: column; align-items:center; justify-content:center;
  min-height: 100vh; min-height: 100svh;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 60%);
}
.hero__canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:.65; }
.hero__glow{ position:absolute; border-radius:50%; filter: blur(100px); pointer-events:none; opacity:.28; animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--1{ width:520px; height:520px; background: var(--violet); top:-200px; left:-140px; }
.hero__glow--2{ width:460px; height:460px; background: var(--azure); bottom:-200px; right:-120px; animation-delay: -6s; }
@keyframes drift{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(30px,25px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce){ .hero__glow{ animation: none; } }

.hero__inner{ position:relative; z-index:2; max-width: 760px; text-align:center; }
.hero__inner .eyebrow{ justify-content:center; display:flex; }
.hero__title{ margin-top: 20px; }
.hero__brand{ display:block; font-size: clamp(48px, 8.5vw, 88px); line-height: 1; }
.hero__brand .brand-word{ font-size: inherit; }
.hero__tagline-main{
  display:block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3.6vw, 36px); line-height: 1.2; letter-spacing: -0.01em;
  margin-top: 12px; color: #1d5fd6;
}
.hero__tagline-main .tag-ai{ color: #e0222c; }
.hero__tagline-sub{
  display:block; font-family: var(--font-ui); font-weight: 700; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: #4fa8e8; margin-top: 16px;
}
@media (max-width: 560px){ .hero__tagline-sub{ letter-spacing: .12em; font-size: 11.5px; } }
.hero__sub{ color: var(--text-mute); font-size: 18px; line-height:1.7; max-width: 560px; margin: 20px auto 0; }
.hero__actions{ display:flex; gap:14px; justify-content:center; margin-top: 34px; flex-wrap:wrap; }


/* =========================================================
   Hero image slider
   ========================================================= */
.hero-slider{
  position: relative; z-index: 2; width: 100%; max-width: 1040px; margin: 52px auto 0;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.hero-slider__track{ position: relative; aspect-ratio: 16/8; background: var(--ink); }
.hero-slider__slide{
  position:absolute; inset:0; margin:0; opacity:0; transition: opacity .8s var(--ease);
}
.hero-slider__slide.is-active{ opacity:1; }
.hero-slider__slide img{ width:100%; height:100%; object-fit: cover; object-position: center 25%; }
.hero-slider__overlay{
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(20,10,50,0.78) 0%, rgba(20,10,50,0.15) 45%, rgba(20,10,50,0.05) 100%);
}
.hero-slider__slide figcaption{
  position:absolute; left:28px; right:28px; bottom:22px; color:#fff; text-align:left;
  font-family: var(--font-ui);
}
.hero-slider__slide figcaption span{
  display:block; font-size:11.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color: #C9B8FF; margin-bottom:6px;
}
.hero-slider__arrow{
  position:absolute; top:50%; transform: translateY(-50%); z-index:3;
  width:38px; height:38px; border-radius: var(--radius-sm); border:none; cursor:pointer;
  background: rgba(255,255,255,0.92); color: var(--ink); display:grid; place-items:center;
  box-shadow: var(--shadow-sm); transition: background .2s ease, transform .2s ease;
}
.hero-slider__arrow:hover{ background:#fff; transform: translateY(-50%) scale(1.06); }
.hero-slider__arrow--prev{ left:16px; }
.hero-slider__arrow--next{ right:16px; }
.hero-slider__dots{ position:absolute; z-index:3; left:0; right:0; bottom:14px; display:flex; justify-content:center; gap:7px; }
.hero-slider__dot{ width:7px; height:7px; border-radius:50%; border:none; padding:0; cursor:pointer; background: rgba(255,255,255,.5); transition: background .3s ease, width .3s ease; }
.hero-slider__dot.is-active{ background:#fff; width:22px; border-radius:999px; }

@media (max-width: 720px){
  .hero-slider__track{ aspect-ratio: 4/5; }
  .hero-slider__arrow{ width:32px; height:32px; }
}

/* =========================================================
   Cards / disciplines
   ========================================================= */
.card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover{ transform: translateY(-6px); border-color: var(--border-hi); box-shadow: var(--shadow-md); }
.card__art{ width:100%; aspect-ratio: 16/10; overflow:hidden; background: var(--surface-soft); position: relative; }
.card__art::after{ content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(109,59,245,0.04), rgba(20,10,50,0.55)); }
.card__art img{ width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__art img{ transform: scale(1.08); }
.card > *:not(.card__art){ padding-left:24px; padding-right:24px; }
.card:hover .card__icon{ transform: scale(1.1) rotate(-4deg); }
.card__icon{
  transition: transform .3s var(--ease);
  width:40px; height:40px; border-radius: var(--radius-sm); display:grid; place-items:center;
  background: var(--violet-tint); color: var(--violet); margin: -20px 24px 16px auto; position:relative; z-index:2;
  box-shadow: var(--shadow-sm); border: 1px solid #fff;
}
.card h3{ font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.card > p{ color: var(--text-mute); font-size: 14.5px; line-height:1.65; margin-bottom: 16px; }
.card__list{ display:flex; flex-direction:column; gap:8px; padding-bottom: 24px; }
.card__list li{ font-family: var(--font-ui); font-size: 13.5px; color: var(--text-mute); padding-left: 16px; position:relative; }
.card__list li::before{ content:""; position:absolute; left:0; top:8px; width:5px; height:5px; border-radius:50%; background: var(--violet); }

@media (max-width: 980px){ .grid--4{ grid-template-columns: repeat(2,1fr); } .grid--6{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid--4{ grid-template-columns: 1fr; } .grid--6{ grid-template-columns: 1fr; } }

/* =========================================================
   Split / mini cards (Why FutureX)
   ========================================================= */
.split__grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; display:flex; gap:14px; align-items:flex-start;
  transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.mini-card:hover{ border-color: var(--border-hi); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.mini-card:hover .mini-card__icon{ transform: scale(1.12) rotate(6deg); }
.mini-card__icon{
  transition: transform .3s var(--ease);
  width:44px; height:44px; border-radius: var(--radius-sm); overflow:hidden; flex-shrink:0;
  display:grid; place-items:center; background: var(--violet-tint); color: var(--violet);
}
.mini-card h4{ font-size:15px; margin-bottom:5px; color: var(--ink); }
.mini-card p{ font-size: 13.5px; color: var(--text-mute); line-height:1.6; }

@media (max-width: 900px){ .section--split{ grid-template-columns: 1fr; } }
@media (max-width: 560px){ .split__grid{ grid-template-columns: 1fr; } .mini-card{ flex-direction:column; } }

/* =========================================================
   Contact
   ========================================================= */
.contact__panel{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 52px; display:grid; grid-template-columns: 1fr 1fr; gap: 52px; box-shadow: var(--shadow-md);
}
.contact__list{ display:flex; flex-direction:column; gap: 18px; margin-top: 30px; }
.contact__list li{ display:flex; gap:14px; align-items:flex-start; font-size:14.5px; color: var(--text-mute); }
.contact__ic{
  width:34px; height:34px; border-radius: var(--radius-sm); flex-shrink:0;
  display:grid; place-items:center; background: var(--violet-tint); color: var(--violet);
}
.contact__list a:hover{ color: var(--violet); }

.contact__form{ display:flex; flex-direction:column; gap: 18px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-family: var(--font-ui); font-size: 12.5px; font-weight:700; color: var(--text-mute); }
.field input, .field select, .field textarea{
  width:100%; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size:14.5px; padding: 13px 15px;
  transition: border-color .2s ease, background .2s ease, box-shadow .25s ease, transform .2s ease;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--text-faint); }
.field textarea{ resize: vertical; min-height: 90px; }
.field select{ appearance:none; cursor:pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%2362637E' stroke-width='1.6'><path d='M4 6l4 4 4-4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:hover, .field select:hover, .field textarea:hover{ border-color: var(--border-hi); }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--violet); background: var(--surface);
  box-shadow: 0 0 0 4px var(--violet-tint); transform: translateY(-1px);
}
.field__err{ display:none; color:#D64545; font-size:12px; margin-top:-2px; font-family: var(--font-ui); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea{ border-color:#D64545; animation: field-shake .35s var(--ease); }
.field.is-invalid input:focus, .field.is-invalid select:focus, .field.is-invalid textarea:focus{ border-color: var(--violet); }
.field.is-invalid .field__err{ display:block; animation: field-err-in .25s ease; }
@keyframes field-shake{ 0%,100%{ transform:translateX(0);} 25%{ transform:translateX(-5px);} 75%{ transform:translateX(5px);} }
@keyframes field-err-in{ from{ opacity:0; transform:translateY(-4px);} to{ opacity:1; transform:translateY(0);} }

.btn__spinner{ display:none; animation: spin 0.8s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }
.is-loading .btn__label, .is-loading .btn__arrow{ display:none; }
.is-loading .btn__spinner{ display:inline-block; }

.form__status{ font-family: var(--font-ui); font-size: 13.5px; text-align:center; min-height: 18px; color: var(--text-mute); }
.form__status.is-success{ color: #1E9E5A; }

@media (max-width: 900px){ .contact__panel{ grid-template-columns: 1fr; padding: 28px; gap: 28px; } }

/* =========================================================
   Footer
   ========================================================= */
.footer{ border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-soft); }
.footer__inner{ max-width: var(--container); margin:0 auto; padding: 60px 24px 36px; display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand p{ color: var(--text-mute); font-size:14px; margin-top:14px; max-width: 280px; line-height:1.6; }
.footer__col h5{ font-family: var(--font-ui); font-size:12.5px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-faint); margin-bottom: 14px; }
.footer__col a, .footer__col p{ display:block; color: var(--text-mute); font-size:14px; margin-bottom:10px; line-height:1.6; }
.footer__col a:hover{ color: var(--violet); }
.footer__bottom{ max-width: var(--container); margin:0 auto; padding: 22px 24px 36px; border-top: 1px solid var(--border); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color: var(--text-faint); font-family: var(--font-ui); }
.footer__legal{ display:flex; gap:20px; }
.footer__legal a:hover{ color: var(--text-mute); }

@media (max-width: 720px){ .footer__inner{ grid-template-columns: 1fr; } }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal{ opacity:0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.is-visible{ opacity:1; transform: translateY(0); }
