/* =====================================================================
   Mind Power Solutions — IT Consulting Website
   Design system mirrors the MPS Interns Management Portal 1:1
   (same Inter font, indigo primary 239 84% 67%, shadcn-style tokens).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ----------------------------- Tokens ------------------------------ */
:root {
  --background: 0 0% 100%;
  --foreground: 215 28% 17%;

  --card: 0 0% 100%;
  --card-foreground: 215 28% 17%;

  --primary: 239 84% 67%;
  --primary-foreground: 0 0% 100%;

  --secondary: 210 40% 96%;
  --secondary-foreground: 215 28% 17%;

  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;

  --accent: 210 40% 96%;
  --accent-foreground: 215 28% 17%;

  --destructive: 0 84% 60%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 239 84% 67%;

  --radius: 0.5rem;

  --surface-subtle: 210 40% 98%;
  --hero-gradient-start: 239 84% 67%;
  --hero-gradient-end: 262 83% 58%;

  --success: 142 71% 45%;

  /* convenience */
  --max-w: 1152px;          /* matches max-w-6xl used in portal navbar */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-card: 0 4px 10px rgb(0 0 0 / 0.04), 0 10px 30px rgb(0 0 0 / 0.06);
  --shadow-lift: 0 10px 24px rgb(0 0 0 / 0.08), 0 18px 48px rgb(0 0 0 / 0.10);
}

/* ----------------------------- Reset ------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* ---------------------------- Layout ------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-wide {
  max-width: 1280px;
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding-block: 6rem;
}

.section-tight {
  padding-block: 4rem;
}

.surface-subtle {
  background: hsl(var(--surface-subtle));
}

.text-center {
  text-align: center;
}

/* --------------------------- Typography ---------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.muted {
  color: hsl(var(--muted-foreground));
}

.gradient-text {
  background: linear-gradient(
    90deg,
    hsl(var(--hero-gradient-start)),
    hsl(var(--hero-gradient-end))
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-head .lead {
  margin-top: 1rem;
}

/* ---------------------------- Badge -------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.8125rem;
  font-weight: 500;
}

.badge-soft {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* --------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius);
  padding: 0 1.25rem;
  height: 2.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Primary dark button — matches portal's bg-foreground/text-background */
.btn-dark {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-radius: 9999px;
}
.btn-dark:hover {
  background: hsl(var(--foreground) / 0.9);
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.btn-outline {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-color: hsl(var(--input));
}
.btn-outline:hover {
  background: hsl(var(--accent));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}
.btn-ghost:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.85rem;
  font-size: 0.8125rem;
}

.btn-lg {
  height: 3rem;
  padding: 0 1.75rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-pill {
  border-radius: 9999px;
}

/* ---------------------------- Navbar ------------------------------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.navbar__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  height: 4rem;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  white-space: nowrap;
  flex-wrap: nowrap;
  justify-self: start;
}

.brand img {
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  justify-self: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: hsl(var(--foreground));
}

.nav-links a.active {
  color: hsl(var(--primary));
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem;
}

.nav-mobile {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 0;
}

.nav-mobile a:hover {
  color: hsl(var(--foreground));
}

/* page offset for fixed nav */
.page {
  padding-top: 4rem;
}

/* ----------------------------- Hero -------------------------------- */
.hero {
  position: relative;
  padding-block: 7rem 6rem;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 30rem at 15% -10%, hsl(var(--primary) / 0.10), transparent 60%),
    radial-gradient(36rem 28rem at 90% 0%, hsl(var(--hero-gradient-end) / 0.10), transparent 60%);
}

.hero__inner {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.hero .h1 {
  margin-block: 1.5rem;
}

.hero .lead {
  max-width: 620px;
  margin-inline: auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.hero__note {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
}

/* --------------------------- Trusted by ---------------------------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0.5;
}

.logos span {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ----------------------------- Stats ------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat__num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.stat__num .plus {
  color: hsl(var(--primary));
}

.stat__label {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ----------------------------- Cards ------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: hsl(var(--primary) / 0.35);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.card p {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

.card__link svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.2s ease;
}

.card__link:hover svg {
  transform: translateX(3px);
}

.card-featured {
  border: 2px solid hsl(var(--primary));
  position: relative;
}

.card-flag {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  font-weight: 500;
}

/* ------------------------- Pills / chips --------------------------- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill:hover {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
  transform: translateY(-2px);
}

.pill svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

/* -------------------------- Feature list --------------------------- */
.check-list {
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
}

.check-list svg {
  width: 1.05rem;
  height: 1.05rem;
  color: hsl(var(--success));
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --------------------------- Process ------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* ------------------------- Case studies ---------------------------- */
.case {
  display: grid;
  gap: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  overflow: hidden;
  background: hsl(var(--card));
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.case:hover {
  box-shadow: var(--shadow-card);
  border-color: hsl(var(--primary) / 0.35);
}

.case__band {
  padding: 2rem;
}

.case__metric {
  font-size: 2rem;
  font-weight: 800;
  color: hsl(var(--primary));
  letter-spacing: -0.02em;
}

.case__metric span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-top: 0.2rem;
}

/* ------------------------- Testimonials ---------------------------- */
.quote {
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  background: hsl(var(--card));
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.quote__stars {
  display: flex;
  gap: 0.15rem;
  color: hsl(38 92% 50%);
  margin-bottom: 1rem;
}

.quote__stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.quote p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: hsl(var(--foreground));
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.quote__author strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.quote__author span {
  display: block;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

/* ----------------------------- Team -------------------------------- */
.member {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  background: hsl(var(--card));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.member .avatar-lg {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
}

.member strong {
  display: block;
  font-size: 1.05rem;
}

.member .role {
  font-size: 0.85rem;
  color: hsl(var(--primary));
  font-weight: 500;
  margin-top: 0.2rem;
}

.member .bio {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* -------------- Leadership grid — center incomplete rows ------------ */
#leadership .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

#leadership .grid > .member {
  width: calc(25% - 1.125rem);
}

@media (max-width: 880px) {
  #leadership .grid > .member { width: calc(50% - 0.75rem); }
}

@media (max-width: 560px) {
  #leadership .grid > .member { width: 100%; }
}

/* ---------------------- Member card additions ----------------------- */
.member .bio {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--primary));
  transition: letter-spacing 0.2s ease;
}

.member:hover .member__cta {
  letter-spacing: 0.03em;
}

/* ----------------------------- Avatar XL (modal) -------------------- */
.avatar-xl {
  width: 7rem;
  height: 7rem;
  border-radius: 9999px;
  font-size: 2rem;
}

/* ----------------------------- Team Modal ------------------------------ */
.team-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: hsl(var(--foreground) / 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.team-modal {
  position: relative;
  background: hsl(var(--card));
  border-radius: 0.875rem;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lift);
  max-width: 780px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-modal-overlay.active .team-modal {
  transform: translateY(0) scale(1);
}

.team-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  font-size: 1.25rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.team-modal__close:hover {
  background: hsl(var(--destructive));
  color: #fff;
  border-color: transparent;
}

.team-modal__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2.5rem;
}

.team-modal__sidebar {
  text-align: center;
}

.team-modal__img-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.team-modal__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.3;
}

.team-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.team-modal__tag {
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.7rem;
  font-weight: 500;
}

.team-modal__content {
  min-width: 0;
}

.team-modal__section {
  margin-bottom: 1.75rem;
}

.team-modal__section:last-child {
  margin-bottom: 0;
}

.team-modal__section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid hsl(var(--border));
}

.team-modal__section p {
  font-size: 0.9rem;
  color: hsl(var(--foreground));
  line-height: 1.7;
}

.team-modal__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-modal__skill {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface-subtle));
  font-size: 0.78rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.team-modal__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.team-modal__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: hsl(var(--foreground));
  line-height: 1.55;
}

.team-modal__highlights li::before {
  content: '▸';
  color: hsl(var(--primary));
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Modal responsive */
@media (max-width: 880px) {
  .team-modal__inner { grid-template-columns: 1fr; }
  .team-modal__sidebar { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 560px) {
  .team-modal { margin: 1rem; max-height: 90vh; }
  .team-modal__inner { padding: 1.75rem; gap: 1.5rem; }
}


/* ------------------------------ CTA -------------------------------- */
.cta {
  border-radius: 1.25rem;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    hsl(var(--hero-gradient-start)),
    hsl(var(--hero-gradient-end))
  );
  color: #fff;
}

.cta .h2 {
  color: #fff;
}

.cta p {
  color: rgb(255 255 255 / 0.85);
  max-width: 560px;
  margin: 1rem auto 2rem;
  font-size: 1.05rem;
}

.cta .btn-light {
  background: #fff;
  color: hsl(var(--primary));
}
.cta .btn-light:hover {
  background: rgb(255 255 255 / 0.9);
}

.cta .btn-ghost-light {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  border-color: rgb(255 255 255 / 0.3);
}
.cta .btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.2);
}

/* ----------------------------- Forms ------------------------------- */
.form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: hsl(var(--foreground));
}

.input,
.textarea,
.select {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea {
  height: auto;
  padding: 0.7rem 0.9rem;
  min-height: 8rem;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.18);
}

.form-note {
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: hsl(var(--success) / 0.12);
  color: hsl(var(--success));
  display: none;
}

.form-note.show {
  display: block;
}

.form-note.error {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
}

/* honeypot — kept out of view for humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ------------------------- Contact info ---------------------------- */
.contact-card {
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  padding: 1.75rem;
  background: hsl(var(--card));
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

.contact-line svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* ----------------------------- Footer ------------------------------ */
.footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--surface-subtle));
  padding-block: 4rem 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

.footer__brand .brand {
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  max-width: 22rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.footer__social a:hover {
  color: hsl(var(--foreground));
}

.footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: hsl(var(--foreground));
}

.footer__bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

/* --------------------- Page hero (interior) ------------------------ */
.page-hero {
  padding-block: 5rem 3.5rem;
  text-align: center;
}

.page-hero .lead {
  max-width: 640px;
  margin: 1rem auto 0;
}

/* --------------------------- Split block --------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split ul {
  margin-top: 1.5rem;
}

/* --------------------------- Accordion ----------------------------- */
.accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: left;
  font-family: inherit;
}

.accordion-trigger svg {
  width: 1.1rem;
  height: 1.1rem;
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel p {
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ---------------------- Auth (client login) ----------------------- */
.auth {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.auth__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 30rem at 12% -10%, hsl(var(--primary) / 0.10), transparent 60%),
    radial-gradient(36rem 28rem at 95% 110%, hsl(var(--hero-gradient-end) / 0.10), transparent 60%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.auth-card .brand {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.auth-card .sub {
  text-align: center;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  margin: 0.4rem 0 1.75rem;
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.auth-meta a {
  color: hsl(var(--primary));
  font-weight: 500;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}

.auth-foot {
  text-align: center;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1.5rem;
}

.auth-foot a {
  color: hsl(var(--primary));
  font-weight: 500;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: hsl(var(--border));
}

/* ------------------------- Client portal --------------------------- */
.portal-topbar {
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.portal-topbar__inner {
  max-width: 1280px;
  margin-inline: auto;
  height: 4rem;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-welcome {
  padding: 2.5rem 0 1.5rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.portal-stat {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  padding: 1.5rem;
}

.portal-stat .label {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.portal-stat .value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}

.portal-panel {
  border: 1px solid hsl(var(--border));
  border-radius: 0.875rem;
  background: hsl(var(--card));
  padding: 1.75rem;
}

.portal-panel h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-row .meta {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.tag-green { background: hsl(var(--success) / 0.12); color: hsl(var(--success)); }
.tag-blue { background: hsl(var(--primary) / 0.12); color: hsl(var(--primary)); }
.tag-amber { background: hsl(38 92% 50% / 0.14); color: hsl(32 81% 40%); }

.progress-track {
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: hsl(var(--primary));
}

@media (max-width: 880px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portal-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem; }
}

/* --------------------------- Reveal anim --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------- Helpers ------------------------------ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* --------------------------- Responsive ---------------------------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding-block: 4rem; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
