:root {
  --bg: #08283f;
  --card: rgba(27, 68, 96, 0.92);
  --card-strong: rgba(26, 63, 90, 0.96);
  --text: #f4f7fb;
  --soft: rgba(244, 247, 251, 0.84);
  --muted: rgba(244, 247, 251, 0.62);
  --line: rgba(173, 220, 240, 0.2);
  --radius: 10px;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-shell {
  width: min(calc(100% - 20px), 1400px);
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px;
}

.brand {
  font-weight: 800;
  font-size: 0.75rem;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: white;
  display: block;
  border-radius: 20px;
}

.main-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 10px;
  left: 10px;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(10, 31, 47, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.main-nav.is-open {
  display: flex;
}

.main-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.section-title-image {
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 40px;
}

.flow-image {
  width: 70%;
  margin: 0 auto;
}

.case-page {
  position: relative;
}

.section-bg {
  position: relative;
}

.section-bg::before,
.section-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.75;
  z-index: -1;
}

.case-hero {
  padding: 24px 0 14px;
}

.case-hero::before {
  width: 220px;
  height: 180px;
  right: -70px;
  top: 34px;
  background-image: url("./assets/brush-mint.png");
}

.case-hero::after {
  width: 140px;
  height: 220px;
  right: -60px;
  bottom: -60px;
  background-image: url("./assets/brush-pink-vertical.png");
}

.page-title {
  width: min(70vw, 250px);
  margin-bottom: 18px;
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card-strong));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.hero-card {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
}

.hero-media {
  display: flex;
  justify-content: center;
  transform: translateY(-80px);
  margin-bottom: -64px;
}

.hero-media img {
  width: min(86vw, 390px);
  max-width: none;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

h1 {
  margin-bottom: 14px;
  color: #9ed6e9;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 5vw, 1.55rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--soft);
}

p,
li,
span {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--soft);
}

.meta-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.meta-list strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.meta-list span {
  display: block;
}

.case-sections {
  padding: 12px 0 90px;
}

.stack {
  display: grid;
  gap: 20px;
}

.content-card {
  padding: 18px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.image-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.image-grid img,
.image-single img {
  border-radius: 4px;
}

.image-single {
  margin-top: 18px;
}

.wireframes img {
  width: min(100%, 620px);
  margin: 0 auto;
}

.prototype-card {
  padding-bottom: 24px;
}

.lottie-button {
  position: relative;
  display: inline-block;
  width: 316px;
  height: 90px;
  overflow: hidden;
  text-decoration: none;
}

.lottie-slot {
  width: 100%;
  height: 128px;
}

.lottie-slot svg {
  width: 100% !important;
  height: 128px !important;
  display: block;
}

.button-label {
  position: relative;
  z-index: 2;
  font-weight: 600;
  font-size: 0.94rem;
  color: rgba(255, 248, 242, 0.98);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 64px), var(--max));
  }

  .site-header {
    height: 52px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 26px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-nav a {
    padding: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
  }

  .case-hero {
    padding-top: 58px;
  }

  .flow-image {
    width: 100%;
    margin: 0 auto;
  }

  .page-title {
    width: 230px;
    margin-bottom: 22px;
  }

  .hero-card {
    display: grid;
    grid-template-columns: 330px 1fr;
    align-items: center;
    gap: 28px;
    padding: 22px;
  }

  .hero-media {
    transform: translateY(0);
    margin-bottom: 0;
  }

  .hero-media img {
    width: 330px !important;
    max-width: 330px;
  }

  h1 {
    font-size: 2.15rem;
  }

  p,
  li,
  span {
    font-size: 0.86rem;
  }

  .content-card {
    padding: 24px;
  }

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

  .personas img{
    width: 100%;
  }
}

@media (min-width: 1100px) {
  :root {
    --max: 760px;
  }

  .case-hero::before {
    width: 310px;
    right: -220px;
    top: -30px;
  }

  .case-hero::after {
    width: 170px;
    right: -190px;
    top: 230px;
    bottom: auto;
  }
}