:root {
  --bg: #0b0b0c;
  --bg-alt: #080809;
  --surface: #151518;
  --surface-2: #1b1b1f;
  --line: #29292e;
  --text: #ffffff;
  --muted: #909097;
  --accent: #f2254d;
  --accent-soft: rgba(242, 37, 77, 0.1);
  --accent-line: rgba(242, 37, 77, 0.28);
  --radius: 16px;
  --button-radius: 8px;
  --content: 960px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap,
.section,
.site-header {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  background: rgba(11, 11, 12, 0.94);
  backdrop-filter: blur(14px);
}

.site-header::after {
  position: fixed;
  top: 57px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.brand {
  width: 36px;
  height: 36px;
  overflow: hidden;
}

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

nav {
  display: flex;
  gap: 4px;
}

nav a {
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero {
  overflow: hidden;
  background: var(--bg-alt);
  padding-top: 40px;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  gap: 24px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
  padding-bottom: 48px;
}

.hero-badge,
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  background: var(--accent-soft);
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 620px;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
}

.image-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed #48484f;
  color: #6e6e75;
  font-size: 11px;
  font-weight: 800;
}

.hero-photo {
  width: clamp(155px, 24vw, 230px);
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  border-radius: 14px 14px 0 0;
  object-fit: cover;
  object-position: 54% center;
}

.method-section {
  padding: 48px 0;
  background: var(--bg);
}

.method-card {
  display: flex;
  gap: 26px;
  padding: 0;
  flex-direction: column;
}

.sales-diagram {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 286px;
  padding: 18px 0;
  background:
    linear-gradient(90deg, transparent, rgba(242, 37, 77, 0.025), transparent);
  grid-template-columns: 1.45fr 64px 0.9fr 64px 0.9fr 64px 0.72fr;
  align-items: center;
  min-width: 0;
}

.diagram-demand,
.diagram-stage {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: rgba(21, 21, 24, 0.96);
  flex-direction: column;
}

.diagram-stage {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.diagram-stage .diagram-title {
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.diagram-stage .diagram-title > div {
  text-align: center;
}

.diagram-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.diagram-title > span,
.diagram-contract > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.diagram-title small,
.diagram-contract small {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.diagram-title strong,
.diagram-contract strong {
  display: block;
  font-size: 16px;
}

.diagram-stage > p {
  max-width: 180px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.funnel-branches {
  position: relative;
  display: grid;
  margin-top: 20px;
  padding-right: 31px;
  gap: 8px;
}

.funnel-item {
  position: relative;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid #34343a;
  border-radius: 6px;
  background: #111113;
  color: #c9c9ce;
  font-size: 11px;
  line-height: 1.3;
}

.funnel-item::after {
  position: absolute;
  top: 50%;
  right: -19px;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.branch-trunk {
  position: absolute;
  top: 16px;
  right: 12px;
  bottom: 16px;
  width: 2px;
  background: var(--accent);
}

.branch-output {
  position: absolute;
  top: calc(50% - 28.5px);
  right: -21px;
  width: 33px;
  height: 2px;
  background: var(--accent);
}

.diagram-connector {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.diagram-connector::before {
  width: 100%;
  height: 2px;
  content: "";
  background: var(--accent);
}

.diagram-connector::after {
  position: absolute;
  right: 0;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
}

.diagram-contract {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 18px;
  border-radius: 75px;
  background: var(--accent);
  text-align: center;
  flex-direction: column;
}

.diagram-contract > span {
  margin-bottom: 15px;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.diagram-contract small {
  color: rgba(255, 255, 255, 0.72);
}

.diagram-contract strong {
  color: #fff;
}

.method-copy {
  max-width: 660px;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 8px;
}

.method-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 34px);
}

.method-copy > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.method-summary {
  max-width: none;
  margin-bottom: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.section {
  padding: 56px 0;
}

.products-section,
.results-section,
.about-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--content)) / 2));
  padding-left: max(20px, calc((100% - var(--content)) / 2));
}

.products-section,
.about-section {
  background: var(--bg-alt);
}

.results-section {
  background: var(--bg);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 38px);
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  flex-direction: column;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #101011;
}

.product-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(8, 8, 9, 0.35), transparent 55%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image-nucleo img {
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.product-card:hover .product-image-nucleo img {
  transform: none;
}

.product-content {
  display: flex;
  flex: 1;
  padding: 20px;
  flex-direction: column;
}

.product-name {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.product-content h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

.product-content > p:not(.product-name) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 1px solid var(--accent);
  border-radius: var(--button-radius);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.button span {
  margin-left: 8px;
}

.button:hover {
  background: #ff315a;
}

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

.case-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
}

.case-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111113;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 7, 8, 0.12), rgba(7, 7, 8, 0.42));
}

.case-copy {
  padding: 18px;
}

.case-label {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.case-role {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
}

.case-copy h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 17px;
}

.case-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.case-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.case-card:hover .case-play {
  background: #ff315a;
  transform: translate(-50%, -50%) scale(1.08);
}

.case-card:hover .case-image img {
  transform: scale(1.04);
}

.youtube-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--content)) / 2));
  padding-left: max(20px, calc((100% - var(--content)) / 2));
  background: #260912;
}

.section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.youtube-card {
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
}

.youtube-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-bottom: 1px solid var(--accent-line);
  object-fit: cover;
  object-position: top center;
}

.youtube-content {
  padding: 22px 24px 24px;
}

.youtube-content p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.button-youtube {
  border-width: 2px;
  background: transparent;
  color: var(--accent);
}

.about-section > .eyebrow {
  width: min(100%, var(--content));
  margin-right: auto;
  margin-left: auto;
}

.about-card {
  display: flex;
  width: min(100%, var(--content));
  margin: 18px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  gap: 24px;
}

.profile-photo {
  width: 160px;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  object-position: 35% center;
}

.about-copy {
  align-self: center;
}

.about-copy h2 {
  margin-bottom: 5px;
  font-size: 28px;
}

.about-role {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.about-copy > p:not(.about-role) {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #060607;
  color: #626268;
  font-size: 11px;
  flex-direction: column;
  gap: 14px;
}

footer img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

@media (max-width: 700px) {
  nav {
    display: none;
  }

  .hero-inner {
    gap: 14px;
  }

  .hero-copy {
    padding-bottom: 34px;
  }

  .hero-photo {
    width: 135px;
  }

  .method-card {
    flex-direction: column;
  }

  .method-summary {
    white-space: normal;
  }

  .sales-diagram {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 8px 0;
    gap: 0;
    background: none;
  }

  .diagram-connector {
    position: relative;
    width: 32px;
    height: 42px;
    margin: 0 auto;
    justify-content: center;
  }

  .diagram-connector::before {
    width: 2px;
    height: 30px;
    background: var(--accent);
  }

  .diagram-connector::after {
    right: auto;
    bottom: 7px;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%) rotate(135deg);
  }

  .diagram-demand,
  .diagram-stage {
    width: 100%;
    min-height: 0;
    padding: 18px;
    border-color: var(--accent-line);
    text-align: center;
  }

  .diagram-title,
  .diagram-stage .diagram-title {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .diagram-title > div {
    text-align: center;
  }

  .diagram-stage > p {
    max-width: 260px;
    margin-top: 14px;
  }

  .funnel-branches {
    margin-top: 16px;
    padding-right: 0;
    gap: 7px;
  }

  .funnel-item {
    text-align: center;
  }

  .funnel-item::after,
  .branch-trunk,
  .branch-output {
    display: none;
  }

  .diagram-contract {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 20px 18px;
    border: 1px solid var(--accent-line);
    border-radius: 12px;
  }

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

  .case-grid {
    display: flex;
    margin-right: -20px;
    overflow-x: auto;
    padding-right: 20px;
    scroll-snap-type: x mandatory;
  }

  .case-card {
    width: 270px;
    flex: 0 0 270px;
    scroll-snap-align: start;
  }

  .about-card {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .wrap,
  .section,
  .site-header,
  .hero-inner {
    align-items: flex-end;
    width: min(calc(100% - 32px), var(--content));
  }

  .hero {
    padding-top: 28px;
    overflow: hidden;
  }

  .hero-inner {
    display: flex;
    align-items: flex-start;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px);
    margin-right: 16px;
    margin-left: 16px;
    flex-direction: column;
    gap: 18px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 31px);
  }

  .hero-copy h1 {
    width: min(300px, calc(100vw - 48px));
    max-width: 100%;
  }

  .hero-copy {
    width: min(300px, calc(100vw - 48px));
    max-width: 100%;
    padding-right: 0;
    flex: none;
  }

  .hero-photo {
    position: static;
    width: min(220px, 62vw);
    height: 300px;
    align-self: flex-start;
    margin-top: -12px;
    object-fit: cover;
    transform: none;
  }

  .hero-badge {
    padding: 5px 9px;
    font-size: 9px;
  }

  .method-section {
    padding: 32px 0;
  }

  .method-card {
    width: 100%;
    padding: 0;
    gap: 22px;
  }

  .sales-diagram {
    padding: 8px 0;
  }

  .diagram-demand,
  .diagram-stage {
    width: 100%;
  }

  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .products-section,
  .results-section,
  .youtube-section,
  .about-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-content {
    padding: 16px;
  }

  .about-card {
    gap: 16px;
    padding: 16px;
  }

  .profile-photo {
    width: 110px;
  }

  .about-copy h2 {
    font-size: 22px;
  }

  .about-copy > p:not(.about-role) {
    font-size: 12px;
  }
}
