:root {
  --bg: #f4f7fb;
  --ink: #07111f;
  --muted: #596579;
  --line: rgba(7, 17, 31, 0.12);
  --blue: #1769ff;
  --blue-2: #0d4fd6;
  --cyan: #23c7ff;
  --yellow: #ffd45a;
  --dark: #07111f;
  --panel: #ffffff;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(7, 17, 31, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.1), transparent 28%),
    linear-gradient(225deg, rgba(35, 199, 255, 0.12), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
}

.dashboard {
  display: grid;
  gap: 24px;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.intro,
.section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(7, 17, 31, 0.08);
}

.intro {
  position: relative;
  display: grid;
  align-content: start;
  gap: 52px;
  overflow: hidden;
  min-height: calc(100svh - 48px);
  padding: clamp(40px, 3.8vw, 64px);
  color: var(--white);
  background: var(--dark);
  box-shadow: var(--shadow);
}

.intro-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 29, 0.97), rgba(7, 17, 31, 0.84) 48%, rgba(7, 17, 31, 0.5)),
    linear-gradient(180deg, rgba(7, 17, 31, 0.12), rgba(7, 17, 31, 0.86)),
    url("assets/portal-sections/hero.jpg") center / cover;
  transform: scale(1.02);
}

.intro-top,
.intro-grid,
.section > * {
  position: relative;
  z-index: 1;
}

.intro-top {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.62);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-top strong {
  display: block;
  font-size: 20px;
}

.overline,
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro .overline,
.intro .eyebrow {
  color: var(--yellow);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 400px);
  gap: clamp(48px, 5vw, 88px);
  align-items: center;
  min-height: 0;
}

.intro-copy h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(50px, 4.8vw, 74px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 600;
  line-height: 1.55;
}

.signal-panel {
  align-self: center;
  display: grid;
  gap: 16px;
}

.signal-panel div {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.metric {
  display: block;
  color: var(--cyan);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.signal-panel p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.section {
  padding: 34px;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head.compact {
  display: block;
}

.section-head > p:not(.overline) {
  max-width: 460px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.funnel article,
.roadmap article,
.channel-grid article,
.automation-map article,
.content-engine,
.warmup article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(7, 17, 31, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.funnel article:hover,
.roadmap article:hover,
.channel-grid article:hover,
.automation-map article:hover,
.warmup article:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 105, 255, 0.26);
  box-shadow: 0 20px 56px rgba(7, 17, 31, 0.1);
}

.funnel article {
  position: relative;
  min-height: 240px;
  padding: 20px;
}

.funnel article::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 20px;
  height: 2px;
  background: var(--yellow);
}

.funnel article:last-child::after {
  display: none;
}

.funnel span,
.warmup span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.roadmap article {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.phase {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 212, 90, 0.28);
  color: #77570c;
  font-size: 12px;
  font-weight: 900;
}

.video-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.97), rgba(23, 105, 255, 0.74)),
    var(--dark);
  box-shadow: var(--shadow);
}

.video-section .overline {
  color: var(--yellow);
}

.video-section h2 {
  max-width: 760px;
}

.video-section .section-head > p:not(.overline) {
  color: rgba(255, 255, 255, 0.76);
}

.video-panel {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.video-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #000;
  object-fit: cover;
}

.bot-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 255, 0.96)),
    radial-gradient(circle at 85% 12%, rgba(35, 199, 255, 0.14), transparent 34%);
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.bot-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(7, 17, 31, 0.05);
}

.bot-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--cyan);
  font-weight: 900;
}

.bot-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(23, 105, 255, 0.18);
  border-radius: 8px;
  background: rgba(23, 105, 255, 0.18);
}

.bot-flow div {
  position: relative;
  min-height: 112px;
  padding: 18px;
  background: #f7fbff;
}

.bot-flow div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
  transform: translateY(-50%) rotate(45deg);
}

.bot-flow div:last-child::after {
  display: none;
}

.bot-flow strong,
.bot-flow span {
  display: block;
}

.bot-flow strong {
  margin-bottom: 8px;
  color: var(--blue-2);
  font-size: 17px;
}

.bot-flow span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.warmup {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.warmup article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 16px;
  align-items: start;
}

.warmup p {
  margin: 0;
  font-weight: 700;
}

.content-engine {
  padding: 24px;
}

.content-ratio {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.content-ratio div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.content-ratio div::after {
  content: "";
  grid-column: 2;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--blue) calc(var(--value) * 1%), #e8eef8 0);
}

.content-ratio strong {
  grid-row: span 2;
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.content-ratio span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topics-list span {
  padding: 9px 11px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.channel-grid article {
  padding: 22px;
}

.channel-grid span {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(23, 105, 255, 0.1);
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
}

.automation-map {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
  gap: 10px;
  align-items: stretch;
}

.automation-map article {
  padding: 22px;
}

.arrow {
  align-self: center;
  height: 2px;
  background: var(--yellow);
}

.outcome {
  display: grid;
  gap: 32px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(5, 13, 29, 0.96), rgba(23, 105, 255, 0.78)),
    url("assets/portal-sections/listing-preview.jpg") center / cover;
  color: var(--white);
  box-shadow: var(--shadow);
}

.call-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(23, 105, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff, #eef5ff),
    radial-gradient(circle at 80% 16%, rgba(35, 199, 255, 0.2), transparent 34%);
  box-shadow: 0 18px 54px rgba(19, 33, 29, 0.08);
}

.call-copy h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 44px;
}

.call-copy p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 18px;
}

.call-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.call-form label {
  display: grid;
  gap: 7px;
}

.call-form label span {
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 900;
}

.call-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fcfa;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.call-form input:focus {
  outline: 2px solid rgba(42, 171, 238, 0.26);
  border-color: var(--cyan);
}

.call-form button {
  position: relative;
  overflow: hidden;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(23, 105, 255, 0.28);
}

.call-form button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-22deg);
  animation: button-shine 3.4s ease-in-out infinite;
}

.call-form button:hover {
  background: linear-gradient(135deg, var(--blue-2), var(--cyan));
}

@keyframes button-shine {
  0% {
    left: -70%;
  }
  42%,
  100% {
    left: 124%;
  }
}

.call-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.call-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 800;
}

.outcome .overline {
  color: var(--yellow);
}

.outcome-copy {
  display: block;
  max-width: 980px;
}

.outcome h2 {
  max-width: 940px;
  margin: 0 0 24px;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1.04;
}

.outcome-copy p {
  max-width: 900px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.58;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.outcome-grid article {
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.34);
  backdrop-filter: blur(14px);
}

.outcome-grid article:nth-child(n + 4) {
  background: rgba(255, 255, 255, 0.08);
}

.outcome-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--cyan);
  font-weight: 900;
}

.outcome-grid h3 {
  color: var(--white);
}

.outcome-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(35, 199, 255, 0.24);
  border-radius: 8px;
  background: rgba(35, 199, 255, 0.24);
}

.result-strip div {
  padding: 20px;
  background: rgba(7, 17, 31, 0.76);
}

.result-strip strong,
.result-strip span {
  display: block;
}

.result-strip strong {
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 18px;
}

.result-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .intro-copy h1 {
    font-size: 56px;
  }

  .funnel,
  .roadmap,
  .channel-grid,
  .bot-grid,
  .bot-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .funnel article::after {
    display: none;
  }

  .bot-flow div::after {
    display: none;
  }

  .split,
  .automation-map,
  .outcome-copy,
  .call-cta {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head > p:not(.overline) {
    max-width: none;
    margin-top: 14px;
  }

  .outcome-grid,
  .result-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .arrow {
    height: 18px;
    width: 2px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .dashboard {
    width: min(100% - 20px, 1440px);
    padding: 12px 0;
  }

  .intro,
  .section {
    padding: 20px;
  }

  .intro {
    min-height: auto;
  }

  .intro-grid,
  .funnel,
  .roadmap,
    .channel-grid,
    .warmup,
    .bot-grid,
    .bot-flow,
    .outcome-grid,
    .result-strip {
    grid-template-columns: 1fr;
  }

  .intro-copy h1 {
    font-size: 38px;
  }

  .intro-grid {
    gap: 30px;
    min-height: auto;
    padding-top: 34px;
  }

  .intro-top {
    width: 100%;
    margin-bottom: 6px;
    padding: 9px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .intro-top strong {
    font-size: 18px;
  }

  .lead {
    font-size: 17px;
  }

  h2 {
    font-size: 28px;
  }

  .video-panel {
    margin: 0 -8px;
    padding: 8px;
    border-radius: 14px;
  }

  .outcome {
    padding: 22px;
  }

  .call-cta {
    padding: 22px;
  }

  .outcome h2 {
    font-size: 30px;
  }

  .call-copy h2 {
    font-size: 30px;
  }
}
