/* ============================================================
   IMUS Info Systems — "Midnight Academia"
   Dark editorial luxury · Instrument Serif + Instrument Sans
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-2: #0e0e15;
  --card: rgba(255, 255, 255, 0.028);
  --card-hover: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ivory: #edeae2;
  --muted: #a09dae;
  --faint: #6d6a7b;
  --amber: #e8b14c;
  --amber-2: #f4d58d;
  --amber-deep: #c98f2d;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.2rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
.italic-accent { font-style: italic; color: var(--amber); }

a { text-decoration: none; color: inherit; }
::selection { background: var(--amber); color: #0a0a0f; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a36; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a48; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(780px, 92%); }

/* ---------- Atmosphere: grain + glows ---------- */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}
.glow { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: -1; }
.glow-a { width: 620px; height: 620px; top: -220px; right: -140px; background: radial-gradient(circle, rgba(232, 177, 76, 0.13), transparent 65%); }
.glow-b { width: 700px; height: 700px; bottom: -280px; left: -220px; background: radial-gradient(circle, rgba(120, 100, 200, 0.09), transparent 65%); }

/* ---------- Kicker / chips ---------- */
.kicker {
  display: inline-block;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.42rem 1rem; font-size: 0.82rem; color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; font-family: 'Instrument Sans', sans-serif;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber-2), var(--amber) 55%, var(--amber-deep));
  color: #14100a;
  box-shadow: 0 8px 28px rgba(232, 177, 76, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(232, 177, 76, 0.32); }
.btn-ghost { border-color: var(--line-strong); color: var(--ivory); background: rgba(255, 255, 255, 0.015); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--amber); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 0.65rem; }
.logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(140deg, var(--amber-2), var(--amber-deep));
  color: #14100a;
  font-family: 'Instrument Serif', serif; font-size: 1.35rem; font-style: italic;
}
.logo-text { font-family: 'Instrument Serif', serif; font-size: 1.35rem; letter-spacing: 0.01em; }
.logo-text em { font-style: normal; font-size: 0.72rem; font-family: 'Instrument Sans', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav > a:not(.btn) { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav > a:not(.btn):hover { color: var(--amber); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ivory); margin: 6px 0; transition: 0.25s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 6.5rem 0 6rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 4rem; align-items: center; }
.hero-copy .chip { margin-bottom: 1.6rem; }
.hero-copy h1 { margin-bottom: 1.4rem; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 34rem; }
.hero .lead { margin-bottom: 2.1rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.hero-meta { display: flex; align-items: center; gap: 1.4rem; }
.meta-item strong { font-family: 'Instrument Serif', serif; font-size: 1.45rem; color: var(--ivory); display: block; }
.meta-item span { font-size: 0.78rem; color: var(--faint); letter-spacing: 0.04em; }
.meta-sep { width: 1px; height: 34px; background: var(--line); }

/* Glass lead card */
.hero-card-wrap { position: relative; max-width: 100%; }
.hero-card-wrap::before {
  content: ''; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(160deg, rgba(232, 177, 76, 0.5), rgba(255, 255, 255, 0.06) 30%, rgba(120, 100, 200, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; pointer-events: none;
}
.hero-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.card-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 0.9rem;
}
.hero-card-head h3 { font-size: 1.9rem; margin-bottom: 0.55rem; }
.hero-card-head p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.mini-form, .contact-form { display: grid; gap: 0.85rem; }
.mini-form select, .mini-form input,
.contact-form select, .contact-form input, .contact-form textarea {
  width: 100%; padding: 0.9rem 1.05rem;
  background: rgba(10, 10, 15, 0.55);
  border: 1px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 0.92rem; color: var(--ivory);
  transition: border-color 0.2s, background 0.2s;
}
.mini-form select:focus, .mini-form input:focus,
.contact-form select:focus, .contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--amber); background: rgba(10, 10, 15, 0.85);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a09dae' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
select option { background: #14141d; color: var(--ivory); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; }
.form-note { font-size: 0.76rem; color: var(--faint); text-align: center; }
.form-success {
  background: rgba(232, 177, 76, 0.09);
  border: 1px solid rgba(232, 177, 76, 0.35);
  color: var(--amber-2); border-radius: 12px;
  padding: 0.8rem 1rem; font-size: 0.88rem;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.15rem 0; background: rgba(255, 255, 255, 0.012);
}
.marquee-track { display: flex; align-items: center; gap: 2.6rem; width: max-content; animation: scroll 36s linear infinite; }
.marquee-track span {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.marquee-track i { color: var(--amber); font-style: normal; font-size: 0.8rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 7rem 0; position: relative; }
.section-tint {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.016) 18%, rgba(255, 255, 255, 0.016) 82%, transparent);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head { max-width: 560px; margin: 0 auto 4rem; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Programs ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.program-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.program-card:hover {
  transform: translateY(-6px);
  background: var(--card-hover);
  border-color: rgba(232, 177, 76, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 177, 76, 0.08);
}
.program-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.7rem; }
.program-index {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 2.1rem; color: var(--faint); transition: color 0.3s;
}
.program-card:hover .program-index { color: var(--amber); }
.pill {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.3rem 0.8rem; color: var(--muted);
}
.pill-hot { background: rgba(232, 177, 76, 0.12); border-color: rgba(232, 177, 76, 0.4); color: var(--amber); }
.program-card h3 { font-size: 1.75rem; margin-bottom: 0.4rem; }
.program-sub { color: var(--faint); font-size: 0.82rem; margin-bottom: 1.5rem; }
.program-list { list-style: none; display: grid; gap: 0.65rem; flex: 1; margin-bottom: 1.9rem; }
.program-list li { padding-left: 1.35rem; position: relative; font-size: 0.92rem; color: var(--muted); }
.program-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 9px; height: 1px; background: var(--amber); }
.program-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.mode { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.feature:hover { transform: translateY(-4px); background: var(--card-hover); border-color: rgba(232, 177, 76, 0.35); }
.feature-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(232, 177, 76, 0.4); color: var(--amber);
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.15rem;
  margin-bottom: 1.3rem;
}
.feature h3 { font-size: 1.28rem; margin-bottom: 0.55rem; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 0; max-width: 680px; margin: 0 auto; }
.step {
  display: flex; gap: 1.7rem; padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.35rem;
  color: var(--amber);
  background: radial-gradient(circle at 30% 30%, rgba(232, 177, 76, 0.12), transparent 70%);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step:hover .step-num { border-color: var(--amber); box-shadow: 0 0 24px rgba(232, 177, 76, 0.18); }
.step h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.step p { color: var(--muted); font-size: 0.94rem; max-width: 32rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; }
.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.3rem 1.6rem;
  transition: border-color 0.25s, background 0.25s;
}
.faq:hover { border-color: var(--line-strong); }
.faq[open] { border-color: rgba(232, 177, 76, 0.4); background: var(--card-hover); }
.faq summary {
  font-weight: 600; font-size: 1.02rem; cursor: pointer;
  list-style: none; position: relative; padding-right: 2.4rem; color: var(--ivory);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0.2em; top: 50%;
  transform: translateY(-50%); font-family: 'Instrument Serif', serif;
  font-size: 1.5rem; color: var(--amber); transition: transform 0.25s var(--ease);
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin-top: 0.8rem; color: var(--muted); font-size: 0.93rem; max-width: 40rem; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 6rem 0; position: relative; }
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px 300px at 50% 55%, rgba(232, 177, 76, 0.09), transparent 70%);
  pointer-events: none;
}
.cta-inner { text-align: center; max-width: 640px; }
.cta-inner h2 { margin-bottom: 1.1rem; }
.cta-inner p { color: var(--muted); margin-bottom: 2.2rem; font-size: 1.04rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; max-width: 26rem; }
.contact-lines { list-style: none; display: grid; gap: 1.1rem; }
.contact-lines li { display: flex; align-items: baseline; gap: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; color: var(--ivory); }
.contact-lines span { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); min-width: 4.2rem; }
.contact-lines a { transition: color 0.2s; }
.contact-lines a:hover { color: var(--amber); }
.contact-form {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.8rem; }
.footer-about { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); max-width: 320px; }
.footer h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
.footer-grid a { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--faint); }
.footer-disclaimer { margin-top: 0.6rem; max-width: 60rem; }

/* ---------- Motion ---------- */
body.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
body.js .reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  body.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-card-wrap { max-width: 460px; }
  .program-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start;
    padding: 1.6rem 5% 2rem; gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform 0.3s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-meta { gap: 1rem; }
  .section { padding: 4.5rem 0; }
  .feature-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .contact-form { padding: 1.6rem; }
  .hero-card { padding: 1.7rem; }
}
