/* =========================================================
   Software Holdings — Static Site Stylesheet
   Colours drawn from logo gradient: #0667B7 → #0290EE → #01DDFF
   ========================================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0667B7;
  --blue-mid:    #0290EE;
  --cyan:        #01DDFF;
  --gradient:    linear-gradient(120deg, #0667B7 0%, #0290EE 45%, #01DDFF 100%);
  --gradient-r:  linear-gradient(120deg, #01DDFF 0%, #0290EE 55%, #0667B7 100%);
  --white:       #ffffff;
  --off-white:   #f5f8fc;
  --light-grey:  #e8eef5;
  --mid-grey:    #8a9ab0;
  --dark:        #1a2332;
  --body-text:   #2d3d52;
  --font:        'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius:      8px;
  --shadow:      0 2px 16px rgba(6, 103, 183, 0.10);
  --shadow-md:   0 4px 32px rgba(6, 103, 183, 0.15);
  --max-w:       1100px;
  --nav-h:       72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { color: var(--blue-dark); }

img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography ------------------------------------------ */
h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--body-text);
  line-height: 1.7;
}

/* --- Layout Utilities ------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--light { background: var(--off-white); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p  { color: rgba(255,255,255,0.85); }
.section--gradient {
  background: var(--gradient);
  color: var(--white);
}
.section--gradient h1,
.section--gradient h2,
.section--gradient h3 { color: var(--white); }
.section--gradient p  { color: rgba(255,255,255,0.9); }

.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 12px;
}
.section-label--white { color: rgba(255,255,255,0.75); }
.section-title { margin-bottom: 16px; }
.section-intro { max-width: 640px; margin: 0 auto 48px; }

.divider {
  width: 48px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* --- Navigation ------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light-grey);
  height: var(--nav-h);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--body-text);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--blue-mid);
}

/* Hamburger — mobile only */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.25s;
}

/* --- Hero ------------------------------------------------ */
.hero {
  background: var(--gradient);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero.hero--light { background: var(--off-white); }
.hero.hero--light::after { background: var(--white); }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.35);
}

.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero .lead { color: rgba(255,255,255,0.9); max-width: 580px; }

.hero--page {
  padding: 72px 0 100px;
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--white);
  color: var(--blue-dark);
}
.btn--primary:hover {
  background: var(--off-white);
  color: var(--blue-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn--blue {
  background: var(--gradient);
  color: var(--white);
}
.btn--blue:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* --- Stats Bar ------------------------------------------- */
.stats {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--light-grey);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stats__item strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stats__item span {
  font-size: 0.9rem;
  color: var(--mid-grey);
  font-weight: 500;
}

/* --- About / Intro --------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__graphic {
  display: flex;
  justify-content: center;
}

.about__graphic img {
  max-width: 400px;
  width: 100%;
}

/* --- Portfolio Grid -------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
}

.portfolio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.2s;
  min-height: 90px;
}

.portfolio-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.portfolio-card img,
.portfolio-card svg {
  max-height: 40px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}

.portfolio-card:hover img,
.portfolio-card:hover svg {
  filter: grayscale(0%);
}

/* Portfolio sections */
.portfolio-section { margin-bottom: 64px; }
.portfolio-section h3 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-grey);
  display: flex;
  align-items: center;
  gap: 12px;
}
.portfolio-section h3::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

/* Exit cards */
.exits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.exit-card {
  padding: 24px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  background: var(--white);
}

.exit-card h4 {
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.exit-card p {
  font-size: 0.9rem;
  color: var(--mid-grey);
  margin: 0;
}

.exit-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--off-white);
  color: var(--blue-mid);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  border: 1px solid var(--light-grey);
}

/* --- Team ------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 48px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  background: var(--gradient);
}

.team-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.team-card__creds {
  font-size: 0.82rem;
  color: var(--mid-grey);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.4;
}

.team-card__bio p {
  font-size: 0.95rem;
  color: var(--body-text);
  margin-bottom: 12px;
}

/* --- Advisory -------------------------------------------- */
.advisory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.advisory-card {
  padding: 32px 28px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.2s;
}

.advisory-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.advisory-card__icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 10px;
}

.advisory-card__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.advisory-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.advisory-card p {
  font-size: 0.9rem;
  color: var(--body-text);
  margin: 0;
}

/* --- Pledge / Responsibility block ----------------------- */
.pledge {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 32px;
}

.pledge__number {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  flex-shrink: 0;
}

.pledge__text h3 { color: var(--white); margin-bottom: 8px; }
.pledge__text p  { color: rgba(255,255,255,0.85); margin: 0; }

/* --- Expectations block ---------------------------------- */
.expectations {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.expectations__text h2 { margin-bottom: 16px; }

/* --- Community / Movements ------------------------------- */
.movements {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.movement-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--blue-mid);
  color: var(--blue-mid);
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Footer --------------------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.footer__logo { margin-bottom: 16px; }
.footer__logo img { height: 32px; opacity: 0.9; }

.footer__tagline {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer__nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--cyan); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 900px) {
  .about__grid       { grid-template-columns: 1fr; gap: 40px; }
  .about__graphic    { order: -1; }
  .about__graphic img { max-width: 280px; }
  .expectations      { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  /* Nav mobile */
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--light-grey);
    box-shadow: var(--shadow-md);
  }

  .nav__links.open { display: flex; }

  .nav { position: relative; }

  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }

  .pledge {
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
    text-align: center;
  }
  .pledge__number { font-size: 3.5rem; }

  .expectations { padding: 32px 24px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__nav { align-items: flex-start; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 72px 0 64px; }
  .stats__grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .hero__ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .advisory-grid { grid-template-columns: 1fr; }
  .exits-grid { grid-template-columns: 1fr; }
}
