/* ==========================================================================
   Extreme Networks — MSP Partner Landing Page
   Brand tokens follow the Extreme Networks Brand Guidelines (2025):
   - Base colors: Black / White for all background fills and text
   - Primary purples used within the Network Graphic and as accents only
     (no "purple wash" floods)
   - DM Sans for all type
   ========================================================================== */

/* DM Sans (variable, self-hosted; SIL Open Font License) */
@font-face {
  font-family: "DM Sans";
  src: url("dm-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Base */
  --black: #000000;
  --white: #ffffff;
  /* Primary (Extreme Networks Purples) */
  --indigo: #20004c;
  --purple: #5b059c;
  --violet: #7519f9;
  --steel: #7d76f2;
  /* Neutrals */
  --gray-050: #f5f5f7;
  --gray-100: #eeeeef;
  --gray-300: #c9c9cf;
  --gray-600: #5d5d66;
  --gray-800: #2a2a30;
  /* Brand accent gradient (rules / dividers only) */
  --accent-gradient: linear-gradient(90deg, #b62bd4 0%, #e0409f 50%, #ff5a36 100%);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --section-y: clamp(72px, 9vw, 128px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.3; }
p { margin: 0 0 1em; }

.overline {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.muted { color: var(--gray-600); }

.rule {
  width: 120px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: var(--accent-gradient);
  margin: 28px 0;
}

.section-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--purple); }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--indigo); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--white);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent-gradient);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }   /* > 100px wide min size per guidelines */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: .88;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; font-size: 15px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 75px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--black);
    padding: 8px var(--gutter) 24px;
    display: none;
    border-bottom: 1px solid var(--gray-800);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--gray-800); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin-top: 18px; border: 0; display: inline-flex; padding: 12px 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: clamp(80px, 10vw, 150px) 0 clamp(80px, 9vw, 130px);
}
.hero-graphic {
  position: absolute;
  inset: 0;
  background: url("hero-network.webp") right center / cover no-repeat;
  opacity: .95;
}
.hero-graphic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,.6) 55%, rgba(0,0,0,0) 80%);
}
.hero .container { position: relative; }
.hero-copy { max-width: 720px; }
.hero h1 .thin { font-weight: 400; display: block; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-strip {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-strip div { padding: 22px 24px 0 0; }
.hero-strip strong { display: block; font-size: clamp(22px, 2.2vw, 30px); white-space: nowrap; line-height: 1.1; }
.hero-strip span { font-size: 14px; color: rgba(255,255,255,.72); }
@media (max-width: 760px) {
  .hero-graphic { background-position: 70% center; opacity: .55; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}

/* ---------- Generic section ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .muted, .section-dark .lead { color: rgba(255,255,255,.78); }
.section-light { background: var(--gray-050); }

/* ---------- Market Opportunity ---------- */
.opp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.editable-copy p { font-size: 18px; }
.editable-copy p:last-child { margin-bottom: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--gray-050);
  border: 1px solid var(--gray-100);
}
.stat .num {
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--purple);
  display: block;
  margin-bottom: 10px;
}
.stat .label { font-weight: 700; display: block; margin-bottom: 4px; }
.stat .detail { font-size: 14px; color: var(--gray-600); }
.stat.stat-lg {
  grid-column: span 2;
  background: var(--black);
  color: var(--white);
  border: 0;
  position: relative;
  overflow: hidden;
}
.stat.stat-lg::before {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--violet), var(--purple) 45%, transparent 70%);
  opacity: .75;
}
.stat.stat-lg > * { position: relative; }
.stat.stat-lg .num { color: var(--white); }
.stat.stat-lg .detail { color: rgba(255,255,255,.75); }

.drivers {
  margin-top: clamp(56px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.driver { border-top: 4px solid transparent; border-image: var(--accent-gradient) 1; padding-top: 20px; }
.driver h4 { margin-bottom: 8px; }
.driver p { font-size: 15px; color: var(--gray-600); margin: 0; }
.sources { margin-top: 40px; font-size: 12.5px; color: var(--gray-600); max-width: 980px; }
@media (max-width: 960px) {
  .opp-grid { grid-template-columns: 1fr; }
  .drivers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .drivers, .stat-grid { grid-template-columns: 1fr; }
  .stat.stat-lg { grid-column: auto; }
}

/* ---------- Why Extreme ---------- */
.why { overflow: hidden; }
.why-graphic {
  position: absolute;
  right: -22%;
  top: -18%;
  width: 62%;
  height: 80%;
  background: url("graphic-ring.webp") center / contain no-repeat;
  opacity: .35;
  pointer-events: none;
}
.why .container { position: relative; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  background: var(--white);
  border: 1px solid var(--gray-100);
}
.card h3 { margin: 18px 0 10px; }
.card p { margin: 0; font-size: 15.5px; color: var(--gray-600); }
.section-dark .card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.section-dark .card p { color: rgba(255,255,255,.76); }
.card .pain {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 18px;
}
.icon {
  width: 44px; height: 44px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.section-dark .icon { color: var(--steel); }
.section:not(.section-dark) .icon { color: var(--purple); }

.icp {
  margin-top: clamp(56px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.icp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.icp-photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.icp-photos img { width: 100%; height: 100%; object-fit: cover; }
.icp-photos figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px;
  font-size: 14px; font-weight: 700;
  background: linear-gradient(0deg, rgba(0,0,0,.8), transparent);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
}
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .icp { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .icp-photos { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .icp-photos figcaption { font-size: 12px; padding: 30px 8px 8px; }
}

/* ---------- AMP UP! ---------- */
.amp-title .bang { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: phase;
}
.phase {
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phase-head {
  background: var(--black);
  color: var(--white);
  padding: 24px 26px 22px;
  position: relative;
}
.phase:nth-child(1) .phase-head { background: var(--indigo); }
.phase:nth-child(2) .phase-head { background: var(--purple); }
.phase:nth-child(3) .phase-head { background: var(--violet); }
.phase-head .when { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.phase-head h3 { font-size: 30px; margin-top: 6px; }
.phase-body { padding: 24px 26px 28px; flex: 1; }
.phase-body h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); margin: 0 0 10px; }
.phase-body ul { list-style: none; margin: 0 0 22px; padding: 0; }
.phase-body li { padding: 8px 0 8px 26px; position: relative; font-size: 15.5px; border-bottom: 1px solid var(--gray-100); }
.phase-body li:last-child { border-bottom: 0; }
.phase-body li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 12px; height: 2px;
  background: var(--accent-gradient);
}
.workshop-tag {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gray-050);
  margin-bottom: 8px;
}

.featured-workshop {
  margin-top: clamp(48px, 5vw, 72px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  overflow: hidden;
}
.fw-visual {
  background: url("platform-one.webp") center / cover no-repeat;
  min-height: 320px;
}
.fw-body { padding: clamp(28px, 4vw, 52px); }
.fw-body .lead { color: rgba(255,255,255,.8); }
.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; margin-top: 28px; }
.fw-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.fw-grid ul { margin: 0; padding-left: 18px; font-size: 15px; color: rgba(255,255,255,.85); }
.fw-grid li { margin-bottom: 4px; }

.journey {
  margin-top: clamp(56px, 6vw, 88px);
}
.journey ol {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  counter-reset: step;
}
.journey li {
  counter-increment: step;
  position: relative;
  padding-top: 52px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}
.journey li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  background: var(--black);
}
.journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px; left: 46px; right: -4px;
  height: 2px;
  background: var(--accent-gradient);
  opacity: .6;
}
.journey li.amp::before { background: var(--violet); }
@media (max-width: 1020px) {
  .phases { grid-template-columns: 1fr; }
  .featured-workshop { grid-template-columns: 1fr; }
  .fw-visual { min-height: 200px; }
  .journey ol { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .journey li:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
  .fw-grid { grid-template-columns: 1fr; }
}

/* ---------- Enablement split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split.reverse { grid-template-columns: 1.25fr 1fr; }
.split.reverse > :first-child { order: 2; }
.split-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  background: var(--black);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.feature .icon { width: 32px; height: 32px; margin-top: 2px; }
.feature h4 { margin-bottom: 4px; }
.feature p { margin: 0; font-size: 15px; color: var(--gray-600); }
.section-dark .feature p { color: rgba(255,255,255,.74); }
@media (max-width: 960px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Go-to-Market ---------- */
.gtm { overflow: hidden; }
.gtm-bg {
  position: absolute; inset: 0;
  background: url("dark-cables.webp") right center / cover no-repeat;
  opacity: .55;
}
.gtm-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #000 0%, #000 35%, rgba(0,0,0,.4) 100%);
}
.gtm .container { position: relative; }
.gtm-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gtm-step { padding: 28px 24px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.55); }
.gtm-step .n { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--steel); }
.gtm-step h3 { margin: 10px 0 10px; font-size: 21px; }
.gtm-step p { font-size: 15px; color: rgba(255,255,255,.76); margin: 0; }
@media (max-width: 960px) { .gtm-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gtm-steps { grid-template-columns: 1fr; } }

/* ---------- Readiness / CTA ---------- */
.ready-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { border-bottom: 1px solid var(--gray-100); }
.checklist label {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 16px;
}
.checklist input {
  appearance: none;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.checklist input:checked { background: var(--violet); border-color: var(--violet); }
.checklist input:checked::after {
  content: "";
  width: 6px; height: 11px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.checklist input:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }
.score {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--gray-050);
  font-size: 15.5px;
}
.score strong { font-size: 20px; }
.score .bar { height: 6px; border-radius: 6px; background: var(--gray-100); margin: 12px 0 10px; overflow: hidden; }
.score .bar span { display: block; height: 100%; width: 0; background: var(--accent-gradient); transition: width .3s ease; }

.cta-panel {
  border-radius: calc(var(--radius) + 6px);
  background: var(--black);
  color: var(--white);
  padding: clamp(32px, 4vw, 52px);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("graphic-swoosh.webp") 140% 130% / 80% auto no-repeat;
  opacity: .5;
}
.cta-panel::before { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.cta-panel > * { position: relative; }
.cta-panel h2 { font-size: clamp(30px, 3vw, 40px); }
.cta-panel .lead { color: rgba(255,255,255,.82); }
.cta-panel .hero-actions { margin-top: 28px; }
@media (max-width: 960px) { .ready-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.72); padding: 56px 0 40px; font-size: 13px; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--accent-gradient); margin-top: -56px; margin-bottom: 56px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--gray-800); }
.footer-top img { height: 34px; width: auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.85); font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.legal { margin-top: 24px; max-width: 980px; line-height: 1.55; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
