/* ==========================================================================
   OTTO SEO feature page — namespaced (.otto-*) so it never collides with the
   home page. Reuses the site design tokens (style.css) + wc- system so it
   inherits light/dark mode automatically via [data-bs-theme].
   Section specs matched 1:1 to Figma "Features" (node 9-2449).
   ========================================================================== */

/* ---- Hero ---- */
.otto-hero {
  position: relative;
  padding: 190px 0 90px;
  background: url('../img/hero-banner-bg.png') no-repeat center top;
  background-size: cover;
  overflow: hidden;
}

.otto-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--color-background));
  pointer-events: none;
  z-index: 1;
}

.otto-hero__inner {
  position: relative;
  z-index: 2;
}

.otto-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 22px;
}

.otto-hero__pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 0 12px var(--color-primary-light);
}

.otto-hero h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.otto-hero h1 .grad {
  background: linear-gradient(100deg, #c98bff, #8307de 60%, #7700ce);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.otto-hero__sub {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, .96rem + .4vw, 1.18rem);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 30px;
}

.otto-hero .wc-btn--primary {
  box-shadow: 0 16px 44px rgba(131, 7, 222, .55);
}

/* Hero product mockup */
.otto-mock {
  margin: 56px auto 0;
  max-width: 1040px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #17102e, #0c081d);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 90px rgba(6, 2, 26, .6);
}

.otto-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.otto-mock__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.otto-mock__bar i:nth-child(1) {
  background: #ff5f57
}

.otto-mock__bar i:nth-child(2) {
  background: #febc2e
}

.otto-mock__bar i:nth-child(3) {
  background: #28c840
}

.otto-mock__bar span {
  margin-left: 10px;
  font-size: .74rem;
  color: rgba(255, 255, 255, .45);
}

.otto-mock__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  min-height: 300px;
}

.otto-mock__side {
  border-right: 1px solid rgba(255, 255, 255, .07);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, .02);
}

.otto-mock__side .row-i {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .74rem;
  color: rgba(255, 255, 255, .55);
}

.otto-mock__side .row-i.on {
  background: rgba(131, 7, 222, .28);
  color: #fff;
}

.otto-mock__side .row-i b {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .18);
  display: inline-block;
}

.otto-mock__side .row-i.on b {
  background: var(--color-primary-light);
}

.otto-mock__main {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.otto-mock__main .m-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.otto-mock__main .m-head .t {
  height: 12px;
  width: 220px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .22);
}

.otto-mock__main .m-head .b {
  height: 26px;
  width: 110px;
  border-radius: 7px;
  background: var(--wc-grad);
}

.otto-mock__card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, .03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.otto-mock__line {
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
}

.otto-mock__line.p {
  background: linear-gradient(90deg, rgba(152, 16, 250, .7), rgba(152, 16, 250, .15));
}

.otto-mock__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.otto-mock__tags em {
  font-style: normal;
  font-size: .68rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(131, 7, 222, .25);
  color: #d9b6ff;
  border: 1px solid rgba(152, 16, 250, .3);
}

/* ==========================================================================
   Performance Impact — white cards, soft blue→purple glows, staggered
   ========================================================================== */
.otto-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}

.otto-stat {
  position: relative;
  overflow: hidden;
  background: var(--color-card);
  border-radius: 14px;
  padding: 42px 20px;
  text-align: center;
  box-shadow: 0 5px 22px rgba(29, 29, 29, .09);
  transition: transform var(--wc-ease), box-shadow var(--wc-ease);
}

.otto-stat:nth-child(even) {
  margin-top: 40px;
}

/* zigzag stagger */
.otto-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(80, 20, 140, .16);
}

.otto-stat__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(.5px);
}

/* Soft pastel "bubble": light center → pale lavender/blue → faint halo ring → transparent */
.otto-stat__glow--tr {
  width: 164px;
  height: 164px;
  top: -52px;
  right: -50px;
  background:
    radial-gradient(circle at 47% 44%, transparent 47%, rgba(198, 182, 238, .16) 53%, transparent 60%),
    radial-gradient(circle at 47% 44%, rgba(255, 255, 255, .6) 6%, rgba(206, 186, 242, .46) 38%, rgba(190, 208, 246, .24) 58%, transparent 78%);
}

.otto-stat__glow--bl {
  width: 120px;
  height: 120px;
  bottom: -38px;
  left: -36px;
  background:
    radial-gradient(circle at 47% 44%, transparent 47%, rgba(184, 206, 244, .15) 53%, transparent 60%),
    radial-gradient(circle at 47% 44%, rgba(255, 255, 255, .52) 6%, rgba(190, 210, 246, .42) 40%, rgba(208, 188, 240, .2) 60%, transparent 80%);
}

/* Alternate the dominant glow to the opposite top corner on even cards */
.otto-stat:nth-child(even) .otto-stat__glow--tr {
  right: auto;
  left: -50px;
}

.otto-stat:nth-child(even) .otto-stat__glow--bl {
  left: auto;
  right: -36px;
}

.otto-stat__num {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--color-heading);
}

.otto-stat__num .suf {
  margin-left: 7px;
}

.otto-stat__lbl {
  position: relative;
  z-index: 1;
  margin: 12px auto 0;
  max-width: 234px;
  font-size: .875rem;
  color: var(--color-body);
}

[data-bs-theme="dark"] .otto-stat__glow--tr {
  background:
    radial-gradient(circle at 47% 44%, transparent 47%, rgba(160, 150, 220, .14) 53%, transparent 60%),
    radial-gradient(circle at 47% 44%, rgba(255, 255, 255, .12) 6%, rgba(150, 132, 216, .38) 38%, rgba(120, 150, 230, .2) 58%, transparent 78%);
}

[data-bs-theme="dark"] .otto-stat__glow--bl {
  background:
    radial-gradient(circle at 47% 44%, transparent 47%, rgba(130, 150, 220, .13) 53%, transparent 60%),
    radial-gradient(circle at 47% 44%, rgba(255, 255, 255, .1) 6%, rgba(120, 150, 230, .34) 40%, rgba(150, 132, 216, .18) 60%, transparent 80%);
}

/* ==========================================================================
   What is OTTO SEO — feature banner
   ========================================================================== */
.otto-about {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #6f0bc4 0%, #8f1ae6 45%, #b41df5 100%);
  padding: 40px;
  color: #fff;
  box-shadow: var(--wc-shadow-lg);
}

.otto-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 85% 10%, rgba(255, 255, 255, .18), transparent 55%);
  pointer-events: none;
}

.otto-about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: center;
}

.otto-about__media {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  position: relative;
}

.otto-about__media svg {
  width: 78%;
  height: 78%;
  opacity: .95;
}

.otto-about__body h3 {
  color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.otto-about__body h3 span {
  color: #ffd6a0;
}

.otto-about__body p {
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.otto-about__body .wc-btn {
  background: #fff;
  color: #6f0bc4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.otto-about__body .wc-btn:hover {
  background: #f3e8ff;
  color: #6f0bc4;
}

/* ==========================================================================
   What is Possible — lavender gradient cards, centered text, no icons
   ========================================================================== */
.otto-possible .swiper {
  padding-bottom: 6px;
}

.otto-possible .swiper-slide {
  height: auto;
}

.otto-pcard {
  height: 100%;
  border-radius: 25px;
  padding: 34px 26px;
  text-align: center;
  background: linear-gradient(98.9deg, rgba(170, 115, 210, .184) 4%, rgba(255, 255, 255, 0) 98%);
  border: 1px solid rgba(131, 7, 222, .10);
  transition: transform var(--wc-ease), box-shadow var(--wc-ease);
}

.otto-pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--wc-shadow);
}

.otto-pcard h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  color: var(--color-heading);
}

.otto-pcard p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-body);
  margin: 0;
}

[data-bs-theme="dark"] .otto-pcard {
  background: linear-gradient(98.9deg, rgba(170, 115, 210, .22) 4%, rgba(20, 20, 31, 0) 98%), var(--color-card);
  border-color: var(--color-border);
}

/* ==========================================================================
   Getting started — concentric-ring stepper, staggered, no card boxes
   ========================================================================== */
.otto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

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

.otto-step:nth-child(even) {
  margin-top: 74px;
}

/* zigzag stagger */
.otto-step__nwrap {
  height: 174px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.otto-step__n {
  position: relative;
  width: 77px;
  height: 77px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--color-heading);
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #efe7fb 100%);
  box-shadow: 0 0 0 20px rgba(131, 7, 222, .05), 0 0 0 45px rgba(131, 7, 222, .028);
  transition: all var(--wc-ease);
}

.otto-step h3 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.otto-step p {
  font-size: .9rem;
  line-height: 1.45;
  color: var(--color-muted);
  margin: 0 auto;
  max-width: 260px;
}

.otto-step.is-active .otto-step__n {
  background: var(--wc-grad);
  color: #fff;
  box-shadow: 0 0 0 20px rgba(131, 7, 222, .14), 0 0 0 45px rgba(131, 7, 222, .06), 0 16px 34px rgba(131, 7, 222, .45);
}

[data-bs-theme="dark"] .otto-step__n {
  background: radial-gradient(circle at 50% 42%, #201938 0%, #14101f 100%);
  box-shadow: 0 0 0 20px rgba(152, 16, 250, .07), 0 0 0 45px rgba(152, 16, 250, .035);
}

/* ---- Monitoring / capability mockup cards ---- */
.otto-mons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.otto-moncard {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--wc-ease);
  height: 100%;
}

.otto-moncard:hover {
  transform: translateY(-4px);
  box-shadow: var(--wc-shadow);
  border-color: var(--color-primary);
}

.otto-moncard__scr {
  aspect-ratio: 16/10;
  /* background: linear-gradient(160deg, #17102e, #0c081d); */
  position: relative;
  overflow: hidden;
}

.otto-moncard__scr .g {
  position: absolute;
  border-radius: 8px;
}

.otto-moncard__scr .bar {
  position: absolute;
  bottom: 16px;
  width: 14px;
  border-radius: 4px 4px 0 0;
  background: var(--wc-grad);
}

.otto-moncard__scr .dotline {
  position: absolute;
  height: 2px;
  background: rgba(152, 16, 250, .6);
}

.otto-moncard__body {
  padding: 20px 22px;
}

.otto-moncard__body h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.otto-moncard__body p {
  font-size: .86rem;
  color: var(--color-muted);
  margin: 0 0 16px;
}

/* ==========================================================================
   Deploy band — vertical purple gradient, white cards with lavender icons
   ========================================================================== */
.otto-deploy {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(131, 7, 222, .85) 0%, rgba(131, 7, 222, .55) 50%, rgba(131, 7, 222, .10) 100%);
  padding: 40px 40px 48px;
  text-align: center;
}

.otto-deploy__head {
  max-width: 760px;
  margin: 0 auto 34px;
  position: relative;
}

.otto-deploy .eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(0, 0, 0, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.otto-deploy h2 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.otto-deploy__head p {
  color: rgba(255, 255, 255, .92);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

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

.otto-dcard {
  background: var(--color-card);
  border-radius: 26px;
  padding: 30px 26px;
  box-shadow: 0 5px 22px rgba(29, 29, 29, .12);
  transition: transform var(--wc-ease), box-shadow var(--wc-ease);
}

.otto-dcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(40, 10, 80, .24);
}

.otto-dcard__ic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #efe6fb 100%);
  color: var(--color-primary);
}

.otto-dcard__ic svg {
  width: 28px;
  height: 28px;
}

.otto-dcard h3 {
  color: var(--color-heading);
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.otto-dcard p {
  color: var(--color-body);
  font-size: .875rem;
  line-height: 1.45;
  margin: 0;
}

[data-bs-theme="dark"] .otto-dcard__ic {
  background: radial-gradient(circle at 50% 42%, #241a3a 0%, #1a1330 100%);
}

/* ---- Integrations logos ---- */
.otto-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 8px auto 0;
  max-width: 940px;
}

.otto-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-heading);
  transition: all var(--wc-ease);
}

.otto-logo:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--wc-shadow);
}

.otto-logo svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.otto-note {
  text-align: center;
  color: var(--color-muted);
  font-size: .86rem;
  margin: 26px 0 22px;
}

.hover-reveal-card {
  position: relative;
  cursor: pointer;
}

.hover-reveal-img-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 150px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(134, 14, 223, 0.3);
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  will-change: transform, opacity;
}

.hover-reveal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hover-reveal-card.is-hovered .hover-reveal-img-wrapper {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .otto-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .otto-stat:nth-child(even) {
    margin-top: 0;
  }

  .otto-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .otto-step:nth-child(even) {
    margin-top: 0;
  }

  .otto-step__nwrap {
    height: 150px;
    margin-bottom: 24px;
  }

  .otto-mons {
    grid-template-columns: 1fr;
  }

  .otto-dgrid {
    grid-template-columns: 1fr;
  }

  .otto-about__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .otto-about__media {
    max-width: 420px;
  }

  .otto-mock__body {
    grid-template-columns: 1fr;
  }

  .otto-mock__side {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
}

@media (max-width: 768px) {
  .hover-reveal-img-wrapper {
    width: 180px;
    height: 110px;
  }
}

@media (max-width: 575.98px) {
  .otto-stats {
    grid-template-columns: 1fr;
  }

  .otto-steps {
    grid-template-columns: 1fr;
  }

  .otto-about,
  .otto-deploy {
    padding: 30px 20px;
  }

  .otto-deploy {
    border-radius: 28px;
  }

  .otto-hero {
    padding-top: 150px;
  }
}