
/* =========================================
   AISTEMiQ — Main Stylesheet
   ========================================= */

:root {
  --bg: #070b18;
  --bg-soft: #0b1122;
  --panel: #10182b;
  --panel-light: #141e34;
  --text: #f4f7ff;
  --muted: #a0aec6;
  --cyan: #59e8ff;
  --blue: #6487ff;
  --purple: #b18aff;
  --border: rgba(168, 190, 255, 0.15);
  --font-main: "DM Sans", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
  --container: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background:
    radial-gradient(ellipse at 80% 5%, rgba(52, 79, 180, 0.11), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section-pad {
  padding-block: 105px;
}

.gradient-text {
  color: var(--cyan);
  background: linear-gradient(100deg, var(--cyan), #8fa0ff 55%, var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.status-dot,
.mini-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px rgba(89, 232, 255, 0.8);
}

.mini-dot.purple {
  background: var(--purple);
  box-shadow: 0 0 13px rgba(177, 138, 255, 0.8);
}

/* Announcement */

.announcement {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 28, 54, 0.85);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.announcement a {
  margin-left: 7px;
  color: var(--cyan);
  font-weight: 700;
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 24, 0.88);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(89, 232, 255, 0.55);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(89, 232, 255, 0.15), rgba(177, 138, 255, 0.12));
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(89, 232, 255, 0.07);
}

.brand-mark span {
  color: var(--cyan);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.53rem;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links > a:not(.nav-cta) {
  color: #c0cbe0;
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

.nav-links > a:not(.nav-cta):hover {
  color: var(--cyan);
}

.nav-cta {
  padding: 11px 17px;
  border: 1px solid rgba(89, 232, 255, 0.45);
  border-radius: 9px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: rgba(89, 232, 255, 0.09);
  transform: translateY(-2px);
}

.nav-cta span {
  margin-left: 5px;
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--text);
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(110deg, #56dff6, #9ba0ff);
  color: #07101e;
  box-shadow: 0 8px 28px rgba(89, 232, 255, 0.13);
}

.button-primary:hover {
  box-shadow: 0 10px 35px rgba(89, 232, 255, 0.23);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(89, 232, 255, 0.4);
}

/* Hero */

.hero {
  position: relative;
  min-height: 680px;
  padding-top: 90px;
  padding-bottom: 42px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: -140px;
  left: -190px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(65, 78, 200, 0.09);
  filter: blur(100px);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 35px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1,
.section-heading h2,
.school-copy h2,
.about-grid h2,
.contact-copy h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(3rem, 5.5vw, 5.15rem);
}

.hero-description {
  max-width: 550px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 39px;
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cyan);
}

.hero-proof p {
  font-size: 0.84rem;
  line-height: 1.5;
}

.hero-proof p span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* CSS-built robot scene */

.hero-visual {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  z-index: -2;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 101, 255, 0.22), transparent 70%);
  content: "";
}

.orbit {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(110, 145, 255, 0.17);
  border-radius: 50%;
  transform: rotateX(65deg) rotate(-20deg);
}

.orbit-two {
  width: 300px;
  height: 440px;
  border-color: rgba(89, 232, 255, 0.15);
  transform: rotate(43deg);
}

.orbit-three {
  width: 435px;
  height: 290px;
  border-style: dashed;
  border-color: rgba(177, 138, 255, 0.17);
  transform: rotate(-28deg);
}

.robot-scene {
  position: relative;
  z-index: 1;
  display: flex;
  width: 240px;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 20px 35px rgba(52, 103, 255, 0.17));
  animation: robot-float 5s ease-in-out infinite;
}

.robot-halo {
  position: absolute;
  top: 35px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(89, 232, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 55px rgba(89, 232, 255, 0.1), inset 0 0 45px rgba(89, 232, 255, 0.07);
}

.robot-head {
  position: relative;
  width: 180px;
  height: 142px;
  margin-top: 55px;
  border: 2px solid #8aaaff;
  border-radius: 45px 45px 36px 36px;
  background: linear-gradient(145deg, #273e72, #111b39 60%, #10182f);
  box-shadow: inset 0 0 25px rgba(89, 232, 255, 0.16), 0 0 30px rgba(89, 232, 255, 0.1);
}

.robot-face {
  position: absolute;
  inset: 21px 16px 18px;
  border: 1px solid rgba(89, 232, 255, 0.45);
  border-radius: 30px;
  background: linear-gradient(140deg, #07111f, #0b1d37);
}

.robot-ear {
  position: absolute;
  top: 47px;
  width: 13px;
  height: 42px;
  border: 2px solid var(--cyan);
  border-radius: 5px;
  background: #1c3660;
}

.ear-left {
  left: -10px;
}

.ear-right {
  right: -10px;
}

.robot-antenna {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 3px;
  height: 28px;
  background: var(--cyan);
  transform: translateX(-50%);
}

.robot-antenna span {
  position: absolute;
  top: -8px;
  left: -5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.robot-eye {
  position: absolute;
  top: 31px;
  width: 22px;
  height: 12px;
  border-radius: 10px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(89, 232, 255, 0.8);
}

.eye-left {
  left: 19px;
}

.eye-right {
  right: 19px;
}

.robot-mouth {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 30px;
  height: 5px;
  border-radius: 5px;
  background: #9ca8ff;
  transform: translateX(-50%);
}

.robot-neck {
  z-index: -1;
  width: 54px;
  height: 24px;
  border-right: 2px solid #8aaaff;
  border-left: 2px solid #8aaaff;
  background: #172648;
}

.robot-body {
  position: relative;
  display: grid;
  width: 190px;
  height: 130px;
  place-items: center;
  border: 2px solid #758fff;
  border-radius: 32px 32px 24px 24px;
  background: linear-gradient(145deg, #1d3260, #0d1731 70%);
  box-shadow: inset 0 0 30px rgba(89, 232, 255, 0.1);
}

.robot-core {
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: rgba(89, 232, 255, 0.1);
  box-shadow: 0 0 28px rgba(89, 232, 255, 0.17), inset 0 0 20px rgba(89, 232, 255, 0.1);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.robot-panel {
  position: absolute;
  top: 46px;
  width: 10px;
  height: 35px;
  border-radius: 5px;
  background: #59e8ff;
  opacity: 0.8;
  box-shadow: 0 0 12px rgba(89, 232, 255, 0.5);
}

.panel-left {
  left: 16px;
}

.panel-right {
  right: 16px;
}

.robot-base {
  width: 110px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: #334d87;
  box-shadow: 0 10px 25px rgba(89, 232, 255, 0.14);
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid rgba(145, 171, 255, 0.22);
  border-radius: 12px;
  background: rgba(12, 21, 42, 0.9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  font-size: 0.67rem;
  letter-spacing: 0.07em;
}

.floating-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
}

.card-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  background: rgba(89, 232, 255, 0.1);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-weight: 700;
}

.card-code {
  top: 75px;
  left: 0;
}

.card-robotics {
  top: 205px;
  right: -5px;
}

.card-science {
  bottom: 60px;
  left: 10px;
}

.visual-label {
  position: absolute;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.visual-label .mini-dot {
  margin-right: 6px;
}

.label-top {
  top: 25px;
  right: 12px;
}

.label-bottom {
  right: 5px;
  bottom: 19px;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  color: #6f7e9a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-bottom a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1rem;
}

.hero-bottom-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* Section headings */

.ecosystem-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(14, 21, 41, 0.7), rgba(7, 11, 24, 0.1));
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 43px;
}

.section-heading h2,
.school-copy h2,
.about-grid h2,
.contact-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.45rem);
}

.section-intro {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.95rem;
}

.heading-link {
  flex-shrink: 0;
  margin-bottom: 5px;
}

/* Ecosystem cards */

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ecosystem-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 29, 54, 0.92), rgba(11, 17, 33, 0.95));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 232, 255, 0.4);
}

.tile-visual {
  position: relative;
  display: grid;
  height: 150px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgba(78, 107, 255, 0.19), transparent 60%), #0c152b;
}

.tile-visual::before,
.tile-visual::after {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(89, 232, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.tile-visual::after {
  width: 190px;
  height: 190px;
  border-style: dashed;
  border-color: rgba(177, 138, 255, 0.17);
}

.tile-visual > span {
  position: absolute;
  top: 13px;
  left: 15px;
  color: #7c8dab;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.tile-visual b {
  z-index: 1;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 2.6rem;
  text-shadow: 0 0 28px rgba(89, 232, 255, 0.24);
}

.tile-curriculum b {
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.tile-robotics b {
  color: var(--purple);
  font-size: 4rem;
}

.tile-coding b {
  font-size: 3.4rem;
}

.tile-labs b {
  color: #85a4ff;
  font-size: 4.3rem;
}

.tile-teachers b {
  color: #f5b9ff;
}

.tile-partners b {
  color: #9da7ff;
  font-size: 4rem;
}

.card-content {
  padding: 22px;
}

.card-kicker {
  color: var(--cyan);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.card-content h3 {
  margin-top: 7px;
  font-family: var(--font-heading);
  font-size: 1.16rem;
}

.card-content p {
  min-height: 72px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--cyan);
  font-size: 0.83rem;
  font-weight: 700;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

/* Programs */

.programs-section {
  background: var(--bg);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(145deg, #101a31, #0a1020);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(177, 138, 255, 0.4);
}

.program-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.program-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.symbol-blue {
  color: #80a2ff;
}

.symbol-purple {
  color: var(--purple);
}

.symbol-cyan {
  color: var(--cyan);
}

.program-tag {
  color: #8796b2;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.program-card h3 {
  margin-top: 24px;
  font-family: var(--font-heading);
  font-size: 1.24rem;
}

.program-card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.8;
}

.program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.72rem;
}

.program-footer span {
  color: #8392ad;
}

.program-footer a {
  color: var(--cyan);
  font-weight: 700;
}

/* School lab panel */

.school-section {
  padding-top: 50px;
}

.school-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 55px;
  align-items: center;
  padding: 60px;
  border: 1px solid rgba(121, 151, 255, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(78, 94, 225, 0.15), transparent 45%),
    linear-gradient(140deg, #111a31, #0b1122);
}

.school-copy h2 {
  max-width: 600px;
}

.school-copy > p:not(.eyebrow) {
  max-width: 550px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.9;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-block: 25px 30px;
  list-style: none;
  color: #d5dcef;
  font-size: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list li span {
  color: var(--cyan);
  font-weight: 700;
}

.school-visual {
  min-width: 0;
}

.lab-window {
  overflow: hidden;
  border: 1px solid rgba(89, 232, 255, 0.28);
  border-radius: 17px;
  background: rgba(5, 12, 27, 0.75);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 0 45px rgba(89, 232, 255, 0.05);
  transform: perspective(900px) rotateY(-4deg);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.window-top > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #536482;
}

.window-top > span:first-child {
  background: #e9a1ad;
}

.window-top > span:nth-child(2) {
  background: #f0d08b;
}

.window-top > span:nth-child(3) {
  background: #8de5c2;
}

.window-top small {
  margin-left: auto;
  color: #8e9db9;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.lab-grid {
  position: relative;
  display: grid;
  min-height: 300px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  justify-items: center;
  gap: 10px;
  padding: 35px 15px;
  background-image:
    linear-gradient(rgba(89, 232, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 232, 255, 0.05) 1px, transparent 1px);
  background-size: 25px 25px;
}

.lab-orb {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(89, 232, 255, 0.16);
  border-radius: 50%;
  transform: translateX(-50%);
}

.orb-two {
  width: 130px;
  height: 210px;
  border-color: rgba(177, 138, 255, 0.2);
  transform: translateX(-50%) rotate(40deg);
}

.lab-chip {
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 100px;
  min-height: 110px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(89, 232, 255, 0.25);
  border-radius: 12px;
  background: rgba(18, 39, 68, 0.88);
  box-shadow: 0 0 22px rgba(89, 232, 255, 0.06);
}

.lab-chip span {
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.lab-chip small {
  color: #9eacc6;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.lab-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border-top: 1px solid var(--border);
  color: #94a5c3;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.visual-footnote {
  margin-top: 14px;
  color: #7686a4;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  text-align: right;
}

/* About */

.about-section {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 16, 32, 0.5);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: 70px;
}

.about-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.95;
}

.about-copy .text-link {
  margin-top: 2px;
}

/* Contact */

.contact-section {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(73, 89, 204, 0.1), transparent 45%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 75px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 450px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.contact-note {
  display: flex;
  gap: 13px;
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.note-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cyan);
}

.contact-note strong {
  font-size: 0.86rem;
}

.contact-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.79rem;
}

.contact-form {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18, 29, 54, 0.9), rgba(10, 16, 31, 0.97));
}

.form-heading {
  margin-bottom: 25px;
}

.form-step {
  color: var(--cyan);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.form-heading h3 {
  margin-top: 7px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.form-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}

.form-field label {
  color: #dce5f6;
  font-size: 0.78rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(163, 185, 236, 0.19);
  border-radius: 9px;
  outline: none;
  background: #0a1122;
  color: var(--text);
  font-size: 0.83rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6e7c97;
}

.form-field select {
  color-scheme: dark;
}

.form-field textarea {
  min-height: 95px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(89, 232, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(89, 232, 255, 0.07);
}

.form-submit {
  width: 100%;
  border: none;
}

.form-disclaimer {
  margin-top: 14px;
  color: #7f8ca5;
  font-size: 0.7rem;
  line-height: 1.7;
}

.form-status {
  min-height: 0;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 0.8rem;
}

.form-status:empty {
  display: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: #050916;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 55px;
}

.footer-brand > p {
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h4 {
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 0.87rem;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.79rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  color: #7f8ba2;
  font-size: 0.72rem;
}

.footer-heart {
  color: var(--cyan);
}

/* Toast */

.toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100% - 44px));
  padding: 14px 18px;
  border: 1px solid rgba(89, 232, 255, 0.4);
  border-radius: 11px;
  background: #111c32;
  color: var(--text);
  font-size: 0.85rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Motion */

@keyframes robot-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive layout */

@media (max-width: 1050px) {
  .nav-links {
    gap: 17px;
  }

  .nav-links > a:not(.nav-cta) {
    font-size: 0.8rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 15px;
  }

  .hero h1 {
    font-size: clamp(3rem, 6vw, 4.3rem);
  }

  .hero-visual {
    transform: scale(0.9);
  }

  .school-panel {
    padding: 40px;
    gap: 30px;
  }

  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 820px) {
  .section-pad {
    padding-block: 75px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .nav-links {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    padding: 90px 35px 40px;
    background: rgba(7, 11, 24, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > a:not(.nav-cta) {
    font-size: 1.15rem;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu-toggle span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .hero {
    padding-top: 65px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero-visual {
    min-height: 450px;
    margin-top: 15px;
    transform: none;
  }

  .hero-bottom {
    margin-top: 10px;
  }

  .ecosystem-grid,
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-intro {
    max-width: 600px;
  }

  .school-panel {
    grid-template-columns: 1fr;
    padding: 35px;
  }

  .school-visual {
    max-width: 570px;
    width: 100%;
    margin-inline: auto;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-copy > p:not(.eyebrow) {
    max-width: 650px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 34px);
  }

  .announcement {
    font-size: 0.67rem;
  }

  .announcement a {
    display: inline-block;
  }

  .navbar {
    min-height: 72px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .brand-copy small {
    font-size: 0.48rem;
  }

  .hero {
    padding-top: 55px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12vw, 3.8rem);
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 370px;
    margin-inline: -14px;
    transform: scale(0.91);
  }

  .orbit {
    width: 300px;
    height: 300px;
  }

  .orbit-two {
    width: 260px;
    height: 350px;
  }

  .orbit-three {
    width: 340px;
    height: 240px;
  }

  .robot-scene {
    transform: scale(0.9);
  }

  .card-code {
    top: 44px;
    left: 0;
  }

  .card-robotics {
    top: 170px;
    right: 0;
  }

  .card-science {
    bottom: 42px;
    left: 0;
  }

  .floating-card {
    gap: 7px;
    padding: 9px;
  }

  .floating-card small {
    font-size: 0.57rem;
  }

  .card-icon {
    width: 29px;
    height: 29px;
  }

  .label-top {
    top: 10px;
    right: 0;
    font-size: 0.5rem;
  }

  .label-bottom {
    right: 0;
    bottom: 5px;
    font-size: 0.49rem;
  }

  .hero-bottom {
    font-size: 0.54rem;
    letter-spacing: 0.1em;
  }

  .ecosystem-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .tile-visual {
    height: 135px;
  }

  .card-content p {
    min-height: auto;
  }

  .section-heading h2,
  .school-copy h2,
  .about-grid h2,
  .contact-copy h2 {
    font-size: 2.35rem;
  }

  .school-panel {
    padding: 25px 19px;
    border-radius: 18px;
  }

  .lab-grid {
    min-height: 250px;
    padding: 25px 8px;
  }

  .lab-chip {
    min-height: 90px;
  }

  .window-top small {
    font-size: 0.43rem;
  }

  .contact-form {
    padding: 22px 17px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-main {
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* Highlighted Curriculum Navigation Link */

.nav-links .nav-highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(89, 232, 255, 0.48);
  border-radius: 9px;
  background: linear-gradient(
    110deg,
    rgba(89, 232, 255, 0.13),
    rgba(139, 120, 255, 0.14)
  );
  color: #e8faff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow:
    0 0 9px rgba(89, 232, 255, 0.14),
    inset 0 0 12px rgba(89, 232, 255, 0.05);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.curriculum-icon {
  color: #59e8ff;
  font-size: 1rem;
  text-shadow: 0 0 9px rgba(89, 232, 255, 0.9);
}

.nav-new {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(177, 138, 255, 0.17);
  color: #c7adff;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.nav-links .nav-highlight:hover,
.nav-links .nav-highlight:focus-visible {
  border-color: #59e8ff;
  background: linear-gradient(
    110deg,
    rgba(89, 232, 255, 0.22),
    rgba(139, 120, 255, 0.23)
  );
  color: #ffffff;
  box-shadow:
    0 0 8px rgba(89, 232, 255, 0.4),
    0 0 22px rgba(89, 232, 255, 0.22),
    0 0 35px rgba(139, 120, 255, 0.12),
    inset 0 0 13px rgba(89, 232, 255, 0.08);
}

/* Keep the highlighted link readable on mobile */
@media (max-width: 820px) {
  .nav-links .nav-highlight {
    align-self: flex-start;
    font-size: 1.05rem;
    padding: 11px 14px;
  }

  .nav-new {
    font-size: 0.53rem;
  }
}

/* AISTEMiQ logo image — navbar and footer */
.brand-image {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 205px;
  min-width: 0;
  text-decoration: none;
}

.brand-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 680px) {
  .brand-image {
    width: 145px;
  }

  .brand-image img {
    max-height: 44px;
  }
}

/* AISTEMiQ STEM Store — highlighted navbar link */

.nav-store {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(89, 232, 255, 0.62);
  border-radius: 10px;
  background: linear-gradient(
    110deg,
    rgba(24, 210, 255, 0.13),
    rgba(145, 89, 255, 0.16)
  );
  color: #dffbff;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 0 10px rgba(0, 220, 255, 0.15),
    inset 0 0 12px rgba(89, 232, 255, 0.04);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  animation: stemStoreGlow 3s ease-in-out infinite;
}

.nav-store:hover {
  transform: translateY(-2px);
  border-color: #70f1ff;
  color: #ffffff;
  box-shadow:
    0 0 10px rgba(89, 232, 255, 0.35),
    0 0 25px rgba(89, 232, 255, 0.18),
    0 0 35px rgba(160, 100, 255, 0.12);
}

.store-nav-icon {
  color: #64f1ff;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(89, 232, 255, 0.85);
}

.store-nav-arrow {
  color: #bba0ff;
  font-size: 0.9rem;
}

@keyframes stemStoreGlow {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(0, 220, 255, 0.13),
      inset 0 0 12px rgba(89, 232, 255, 0.04);
  }
  50% {
    box-shadow:
      0 0 14px rgba(0, 220, 255, 0.25),
      0 0 22px rgba(145, 89, 255, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-store {
    animation: none;
  }
}


/* Mobile navigation fix — append only */
@media (max-width: 768px) {
  .main-nav .nav-links.mobile-menu-open,
  .main-nav nav.mobile-menu-open .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 16px;
    margin: 0;
    background: #0b1020;
    border: 1px solid rgba(101, 237, 255, 0.18);
    border-radius: 14px;
  }

  .main-nav nav.mobile-menu-open {
    display: block !important;
    width: 100%;
  }

  .main-nav .nav-links.mobile-menu-open a,
  .main-nav nav.mobile-menu-open .nav-links a {
    display: block;
    padding: 12px 14px;
  }
}

/* AISTEMiQ mobile menu — append-only fix */
@media (max-width: 768px) {
  #navLinks.mobile-menu-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 18px;
    background: #0b1020;
    border: 1px solid rgba(101, 237, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    z-index: 9999;
  }

  #navLinks.mobile-menu-open a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
  }

  .site-header,
  .site-header .navbar {
    position: relative;
  }

  #menuToggle {
    cursor: pointer;
    touch-action: manipulation;
  }
}


/* AISTEMiQ — Frosted glass mobile navigation */
@media (max-width: 768px) {
  #navLinks.mobile-menu-open {
    background: rgba(10, 16, 36, 0.72) !important;
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    backdrop-filter: blur(24px) saturate(165%);

    border: 1px solid rgba(126, 220, 255, 0.25);
    border-radius: 20px;

    box-shadow:
      0 20px 55px rgba(0, 0, 0, 0.42),
      0 0 25px rgba(76, 190, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.10);

    overflow: hidden;
    isolation: isolate;
  }

  /* Subtle neon glass reflection */
  #navLinks.mobile-menu-open::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        135deg,
        rgba(101, 237, 255, 0.09),
        transparent 42%,
        rgba(167, 123, 255, 0.10)
      );
    pointer-events: none;
    z-index: -1;
  }

  /* Keep menu items readable above the glass */
  #navLinks.mobile-menu-open a {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    transition: background 180ms ease, color 180ms ease;
  }

  #navLinks.mobile-menu-open a:hover,
  #navLinks.mobile-menu-open a:focus-visible {
    background: rgba(101, 237, 255, 0.10);
    color: #75efff;
    outline: none;
  }

  /* Slight glass highlight around the hamburger */
  #menuToggle {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

