/* ==========================================================================
   PORTAL PAGE SHARED LAYOUT (used by it.html and marketing.html)
   Each page sets --accent-1 / --accent-2 / --accent-tint on <body>
   to pick up the right gradient without duplicating this file.
   ========================================================================== */

body.portal {
  background:
    radial-gradient(ellipse 1000px 560px at 50% -8%, var(--accent-tint), transparent 65%),
    var(--ink);
}

.portal-back {
  padding: 1.6rem 0 0;
}

.portal-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate);
  transition: color 0.25s ease;
}

.portal-back a:hover {
  color: var(--paper);
}

/* ---- Hero ---- */
.portal-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.portal-hero .eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.portal-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.3rem);
  max-width: 20ch;
  margin: 0 auto 1.4rem;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--slate);
  max-width: 54ch;
  margin: 0 auto 2.3rem;
}

.portal-hero .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-hero .btn-accent {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px -8px var(--accent-shadow);
}

/* ---- Stats bar ---- */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.2rem 0;
}

@media (max-width: 700px) {
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat .num {
  display: block;
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .label {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 0.3rem;
}

/* ---- Expertise grid ---- */
.expertise {
  text-align: center;
}

.expertise > .container > .eyebrow,
.expertise > .container > h2 {
  text-align: center;
}

.expertise h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  max-width: 22ch;
  margin: 0.6rem auto 3rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

.expertise-card {
  padding: 1.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-1) 45%, var(--line));
}

.expertise-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
}

.expertise-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.expertise-card p {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

.expertise-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expertise-card li {
  font-size: 0.83rem;
  color: var(--slate);
  padding-left: 1.1rem;
  position: relative;
}

.expertise-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
}

/* ---- CTA band ---- */
.portal-cta {
  border-top: 1px solid var(--line);
  text-align: center;
}

.portal-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.portal-cta p {
  color: var(--slate);
  max-width: 46ch;
  margin: 0 auto 1.8rem;
}
