/* Unibotics — static site styles */
:root {
  --bg: #ffffff;
  --fg: #0f1626;
  --muted: #5b6577;
  --border: #e6e8ef;
  --secondary: #f4f6fb;
  --primary: #1d4ed8;
  --primary-glow: #3b82f6;
  --primary-fg: #ffffff;
  --accent: #e11d74;
  --shadow-card: 0 8px 30px -10px rgba(15, 22, 38, 0.12);
  --shadow-elegant: 0 20px 50px -20px rgba(29, 78, 216, 0.35);
  --gradient-primary: linear-gradient(135deg, #1d4ed8, #3b82f6);
  --gradient-hero: linear-gradient(
    135deg,
    rgba(15, 22, 38, 0.85),
    rgba(15, 22, 38, 0.55)
  );
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-primary {
  color: var(--primary);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}

/* Announcement */
.announce {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 16px;
}
.announce a {
  text-decoration: underline;
  font-weight: 800;
  margin-left: 4px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  color: var(--fg);
}
.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 6px;
  display: block;
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
}
@media (max-width: 520px) {
  .brand-name {
    display: none;
  }
}

/* About gallery & section image */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.gallery img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s;
}
.gallery img:hover {
  transform: scale(1.02);
}
.section-img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  margin-top: 24px;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.nav {
  display: none;
  gap: 3px;
  align-items: center;
}
.nav a {
  padding: 8px 11px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4a5365;
  border-radius: 8px;
  transition: color 0.15s;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--gradient-primary);
  color: #fff;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  border: 0;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.menu-btn {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  display: inline-flex;
}
.menu-btn svg {
  width: 22px;
  height: 22px;
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 980px) {
  .nav {
    display: flex;
  }
  .header .btn {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
}
@media (max-width: 979px) {
  .header .btn-cta {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-bg.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-hero);
}
.hero-inner {
  padding: 90px 20px 110px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}
.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  margin: 18px auto 14px;
  max-width: 920px;
}
.hero h1 .accent {
  color: #9bb6ff;
}
.hero p {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: #dde3f1;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-dots {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.hero-dots button.active {
  width: 28px;
  background: #fff;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  padding: 72px 0 88px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  max-width: 880px;
  line-height: 1.05;
}

/* Sections */
section.block {
  padding: 80px 0;
}
.block h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 760px;
  line-height: 1.1;
}
.lead {
  margin-top: 14px;
  color: var(--muted);
  max-width: 680px;
  font-size: 1.05rem;
}
.alt {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Grid + cards */
.grid {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}
.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-4px);
}
.card img {
  border-radius: 12px;
  margin-bottom: 16px;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.icon-chip svg {
  width: 24px;
  height: 24px;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat .num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--primary);
  line-height: 1;
}
.stat .lbl {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* Contact form */
.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  max-width: 640px;
}
.form .row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 620px) {
  .form .row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 700;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  color: inherit;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: border-color 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f1626;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-elegant);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Contact details list */
.cdetails {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.cdetails li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cdetails svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  background: #f8fafe;
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 56px 0;
}
.footer-grid h4 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  font-weight: 800;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid a:hover {
  color: var(--primary);
}
.footer-brand {
  grid-column: span 2;
}
@media (max-width: 600px) {
  .footer-brand {
    grid-column: span 1;
  }
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
  max-width: 380px;
}
.copyright {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Merchandise — Coming Soon */
.coming-soon {
  padding: 120px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f4f6fb, #eaf0ff);
  border-radius: 24px;
  border: 1px solid var(--border);
  margin-top: 40px;
}
.coming-soon .pulse {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}
.coming-soon h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.coming-soon p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* Auth */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f4f6fb, #eef2ff);
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 480px;
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--secondary);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 9px;
  color: var(--muted);
  transition: 0.2s;
  border: 0;
  background: transparent;
}
.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 22, 38, 0.06);
}
.toggle-pill {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--secondary);
  border-radius: 999px;
  margin-bottom: 18px;
}
.toggle-pill button {
  flex: 1;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}
.toggle-pill button.active {
  background: var(--gradient-primary);
  color: #fff;
}
.auth-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-foot a {
  color: var(--primary);
  font-weight: 700;
}
.hidden {
  display: none !important;
}

.module-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:18px;box-shadow:var(--shadow-card)}
.module-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}
.lesson-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:10px;background:var(--secondary);margin-bottom:8px}
.lesson-add-form{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.lesson-add-form input,.lesson-add-form textarea{font:inherit;padding:9px 12px;border-radius:8px;border:1.5px solid var(--border)}
.lesson-add-form .lname{flex:1;min-width:140px}
.lesson-content-edit textarea{width:100%;min-height:100px;font:inherit;padding:9px 12px;border-radius:8px;border:1.5px solid var(--border);resize:vertical}

/* Password toggle eye */
.pw-wrap { position:relative; }
.pw-wrap input { padding-right:42px; width:100%; }
.pw-toggle {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:none; border:0; cursor:pointer; color:var(--muted);
  font-size:1rem; display:none; padding:4px;
}
.pw-wrap input:not(:placeholder-shown) ~ .pw-toggle { display:block; }

.header-inner {
  flex-wrap: nowrap;
}
.nav {
  flex-shrink: 1;
  min-width: 0;
}
[data-dash-link] {
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-cta {
  white-space: nowrap;
  flex-shrink: 0;
}