/* NYUOLE Robotics Full Website
   Premium STEM education platform for Years 7-12
*/

:root {
  --bg: #03040b;
  --bg2: #07111f;
  --ink: #f9fbff;
  --muted: #a9b8cc;
  --line: rgba(255,255,255,0.14);
  --soft: rgba(255,255,255,0.064);
  --soft2: rgba(255,255,255,0.1);
  --yellow: #ffc400;
  --orange: #ff7a1a;
  --blue: #0877ff;
  --cyan: #14dcff;
  --green: #62ff26;
  --purple: #a855ff;
  --pink: #ff4fd8;
  --radius: 30px;
  --container: 1220px;
  --shadow: 0 28px 88px rgba(0,0,0,0.42);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(255,196,0,0.14), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(8,119,255,0.27), transparent 33%),
    radial-gradient(circle at 60% 58%, rgba(20,220,255,0.08), transparent 31%),
    linear-gradient(180deg, #03040b, #050b15 50%, #03040b);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3,4,11,0.75);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand img { width: 240px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: white;
  transform: translateY(-1px);
}

.nav-cta {
  color: #06101f !important;
  font-weight: 950;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), #fff06d);
  box-shadow: 0 12px 34px rgba(255,196,0,0.22);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: white;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 1.4rem;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 92px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 58px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  margin-bottom: 24px;
  border-radius: 999px;
  border: 1px solid rgba(20,220,255,0.34);
  background: rgba(20,220,255,0.08);
  color: #dcfaff;
  font-weight: 850;
}

.badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

h1, h2, h3 { line-height: 1.04; }

h1 {
  max-width: 930px;
  font-size: clamp(3rem, 7.4vw, 7.25rem);
  letter-spacing: -0.085em;
}

h2 {
  font-size: clamp(2.05rem, 4.4vw, 4.25rem);
  letter-spacing: -0.06em;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.lead, .large-text, .section-heading p {
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 740px;
  margin-top: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 23px;
  border-radius: 17px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover { transform: translateY(-2px); }

.primary {
  color: #06101f;
  background: linear-gradient(135deg, var(--yellow), #ffe970);
  box-shadow: 0 16px 44px rgba(255,196,0,0.26);
}

.secondary {
  color: white;
  border: 1px solid rgba(20,220,255,0.32);
  background: rgba(20,220,255,0.08);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 42px;
}

.hero-badges div {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}

.hero-badges strong {
  display: block;
  font-size: 1.22rem;
}

.hero-badges span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3px;
}

.hero-showcase {
  min-height: 650px;
  position: relative;
}

.media-card {
  position: absolute;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card.book {
  top: 0;
  right: 2%;
  width: 49%;
}

.media-card.panel {
  left: 0;
  bottom: 5%;
  width: 74%;
}

.media-card.software {
  right: 0;
  bottom: 0;
  width: 56%;
  transform: translateY(18%);
}

.caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 13px 15px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(3,4,11,0.74);
  backdrop-filter: blur(16px);
}

.caption strong, .caption span { display: block; }
.caption span { color: var(--muted); font-size: 0.88rem; }

.float-tag {
  position: absolute;
  z-index: 4;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(3,4,11,0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
  font-weight: 950;
}

.tag-1 { left: 2%; top: 12%; color: var(--yellow); }
.tag-2 { right: 0; top: 44%; color: var(--cyan); }
.tag-3 { left: 14%; bottom: 0; color: var(--green); }

.impact-strip {
  border-block: 1px solid var(--line);
  background: rgba(7,17,31,0.75);
}

.impact-grid {
  padding: 34px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.impact-grid article {
  min-height: 165px;
  padding: 21px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,196,0,0.08), rgba(20,220,255,0.04)),
    rgba(255,255,255,0.04);
}

.impact-grid span {
  display: inline-block;
  color: var(--yellow);
  font-weight: 1000;
  margin-bottom: 14px;
}

.impact-grid p, .card p, .path-card p, .company-card p, .standard-card p, .small-muted, footer p, .board-content p {
  color: var(--muted);
}

.section {
  padding: 94px 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

.kicker {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 1000;
  margin-bottom: 14px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--soft);
}

.card::after {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.22;
  background: var(--cyan);
}

.card.yellow::after { background: var(--yellow); }
.card.green::after { background: var(--green); }
.card.purple::after { background: var(--purple); }
.card.pink::after { background: var(--pink); }

.icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.075);
  font-size: 1.55rem;
}

.card h3 { margin-bottom: 12px; }

.dark-band {
  background:
    radial-gradient(circle at 90% 10%, rgba(8,119,255,0.16), transparent 32%),
    rgba(7,17,31,0.62);
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 1000;
}

.photo-frame {
  position: relative;
  padding: 12px;
  border-radius: 32px;
  border: 1px solid rgba(20,220,255,0.22);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  border-radius: 24px;
}

.label-chip {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(3,4,11,0.75);
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 1000;
  backdrop-filter: blur(14px);
}

.board-gallery {
  display: grid;
  gap: 22px;
}

.board-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: 0 16px 58px rgba(0,0,0,0.22);
}

.board-card:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.board-card:nth-child(even) img { order: 2; }

.board-card img {
  width: 100%;
  border-radius: 25px;
  background: #708c7c;
}

.board-content { padding: 18px; }

.mini-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #06101f !important;
  background: linear-gradient(135deg, var(--yellow), #fff16a);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.board-content h3 {
  font-size: clamp(1.65rem, 3.5vw, 3rem);
  margin-bottom: 13px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.path-card {
  min-height: 285px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--soft);
}

.year-bubble {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 28px;
  border-radius: 24px;
  color: #06101f;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  font-weight: 1000;
  font-size: 1.22rem;
  box-shadow: 0 16px 36px rgba(255,196,0,0.23);
}

.path-card h3 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.software-stack {
  position: relative;
  min-height: 620px;
}

.software-img {
  position: absolute;
  width: 88%;
  border-radius: 25px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.software-img.top { top: 0; right: 0; }
.software-img.bottom { bottom: 0; left: 0; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.pills span {
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(20,220,255,0.28);
  background: rgba(20,220,255,0.08);
  color: #e0fbff;
  font-weight: 850;
}

.page-hero {
  padding: 82px 0 44px;
}

.page-hero .lead { max-width: 850px; }

.company-page-title {
  max-width: 760px;
  font-size: clamp(2.35rem, 4.8vw, 4.9rem);
  letter-spacing: -0.055em;
}

.company-grid, .standards-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: start;
}

.company-card, .standard-card, .table-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--soft);
}

.company-card h3, .standard-card h3 { margin-bottom: 14px; }

.info-table, .module-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.info-table th, .info-table td, .module-table th, .module-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.info-table th {
  width: 32%;
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-table th { color: var(--cyan); }

.placeholder {
  color: var(--yellow);
  font-weight: 900;
}

.curriculum-map {
  display: grid;
  gap: 16px;
}

.standard-card {
  display: grid;
  gap: 10px;
}

.standard-card .status {
  display: inline-flex;
  width: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(135deg, var(--yellow), #fff16a);
  font-weight: 1000;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--yellow);
  border-radius: 16px;
  background: rgba(255,196,0,0.08);
  color: #fff4bd;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 34px;
  padding: 34px;
  border-radius: 36px;
  border: 1px solid rgba(255,196,0,0.34);
  background:
    radial-gradient(circle at 86% 4%, rgba(255,196,0,0.16), transparent 30%),
    radial-gradient(circle at 8% 90%, rgba(20,220,255,0.12), transparent 28%),
    var(--soft);
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-details div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.052);
}

.contact-details span {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-weight: 1000;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-details strong { word-break: break-word; }

.policy-text {
  display: grid;
  gap: 22px;
  color: var(--muted);
}

.policy-text h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: rgba(3,4,11,0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.footer-brand img {
  width: 220px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.footer-links a:hover { color: white; }
.copyright { color: var(--muted); text-align: right; }

@media (max-width: 1080px) {
  .brand img { width: 215px; }
  .nav-links { gap: 14px; font-size: 0.84rem; }

  .hero-grid, .split, .company-grid, .standards-grid, .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-showcase { min-height: 680px; }

  .grid-4, .impact-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
}

@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 28px)); }

  .nav { min-height: 76px; }

  .menu-button { display: block; }

  .brand img { width: 205px; }

  .nav-links {
    display: none;
    position: absolute;
    inset: 76px 14px auto 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(3,4,11,0.97);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px;
    border-radius: 14px;
  }

  .nav-links a:hover { background: rgba(255,255,255,0.06); }

  .hero { padding: 60px 0 50px; }

  .hero-badges, .impact-grid, .grid-4, .grid-3, .grid-2, .path-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .media-card, .media-card.book, .media-card.panel, .media-card.software {
    position: relative;
    width: 100%;
    inset: auto;
    transform: none;
  }

  .float-tag {
    position: static;
    width: fit-content;
    margin-top: 8px;
  }

  .section { padding: 66px 0; }

  .board-card, .board-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .board-card:nth-child(even) img { order: initial; }

  .software-stack {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .software-img, .software-img.top, .software-img.bottom {
    position: relative;
    width: 100%;
    inset: auto;
  }

  .company-card, .standard-card, .table-card, .contact-card {
    padding: 22px;
  }

  .module-table, .info-table { font-size: 0.92rem; }

  .info-table th, .info-table td, .module-table th, .module-table td {
    padding: 12px;
    display: block;
    width: 100%;
  }

  .info-table tr, .module-table tr {
    display: block;
    border-bottom: 1px solid var(--line);
  }
}

/* Homepage refinements */
.hero-main-title {
  max-width: 850px;
  font-size: clamp(2.65rem, 6.1vw, 6.15rem);
  letter-spacing: -0.075em;
}

.book-link {
  cursor: zoom-in;
}

.media-card.book img {
  object-fit: contain;
  background: #050813;
  padding: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 4, 11, 0.92);
  backdrop-filter: blur(18px);
}

.lightbox:target {
  display: flex;
}

.lightbox-inner {
  width: min(94vw, 920px);
  max-height: 92vh;
  display: grid;
  place-items: center;
  gap: 14px;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #050813;
  box-shadow: var(--shadow);
}

.lightbox-inner p {
  color: white;
  font-weight: 900;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.09);
  color: white;
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .hero-main-title {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}
