:root {
  --ink: #071126;
  --ink-soft: #31405a;
  --muted: #718096;
  --line: #e8edf4;
  --surface: #ffffff;
  --page: #eef3f9;
  --purple: #6f43ef;
  --purple-deep: #522be2;
  --pink: #e84b74;
  --gold: #ffd54d;
  --green: #17b86a;
  --green-deep: #089a51;
  --navy: #070f29;
  --shadow: 0 24px 60px rgba(12, 22, 44, 0.16);
  --soft-shadow: 0 18px 38px rgba(12, 22, 44, 0.12);
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 16% 8%, rgba(111, 67, 239, 0.1), transparent 26rem),
    radial-gradient(circle at 92% 72%, rgba(232, 75, 116, 0.08), transparent 22rem),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 28%, #e8eef6 100%),
    var(--page);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

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

svg,
img {
  display: block;
}

.page-shell {
  width: min(100% - 2rem, 980px);
  margin: 1.55rem auto;
  padding: 2.6rem 1.9rem 1.7rem;
  border: 1px solid rgba(220, 226, 235, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.profile-hero {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: center;
  gap: 2.35rem;
  padding: 0.2rem 1.05rem 1.75rem;
}

.profile-photo {
  width: 278px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #dde1e6, #f8f9fb);
  box-shadow: inset 0 0 0 1px rgba(7, 17, 38, 0.04);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.profile-copy h1 {
  margin: 0;
  font-size: 3.95rem;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: 0;
}

.profile-role {
  margin: 0.45rem 0 0;
  color: var(--purple);
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 800;
}

.profile-description {
  max-width: 36rem;
  margin: 1.05rem 0 0;
  color: #17223b;
  font-size: 1.3rem;
  line-height: 1.52;
  font-weight: 500;
}

.links-stack {
  display: grid;
  gap: 1.5rem;
}

.card {
  border: 1px solid #dce5f0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.class-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 1.85rem;
  padding: 2rem 1.85rem;
}

.class-info {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
}

.icon-tile {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  display: grid;
  place-items: center;
}

.icon-tile svg {
  width: 44px;
  height: 44px;
}

.icon-tile--purple {
  background: linear-gradient(145deg, #f0eaff, #f8f5ff);
  color: var(--purple);
}

.icon-tile--purple path {
  fill: currentColor;
}

.icon-tile--purple path:last-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.check-list,
.automation-list {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 0.82rem;
}

.check-list li,
.automation-list li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.45;
}

.check-list li {
  color: var(--ink);
  font-size: 1.09rem;
  font-weight: 650;
}

.check-list li::before,
.automation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08rem;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
}

.check-list li::before {
  border: 2px solid var(--purple);
  background: #fff;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.43rem;
  width: 0.48rem;
  height: 0.28rem;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
}

.class-actions {
  display: grid;
  align-content: center;
  gap: 1.2rem;
}

.brand-button {
  min-height: 96px;
  padding: 1rem 1.35rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.1;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(111, 67, 239, 0.2);
}

.brand-button--openclaw {
  background: linear-gradient(135deg, #ff5157, #df2d35 55%, #b91620);
  box-shadow: 0 14px 30px rgba(223, 45, 53, 0.24);
}

.brand-button--n8n {
  background: linear-gradient(135deg, #ee6382, #dc2f65);
  box-shadow: 0 14px 30px rgba(232, 75, 116, 0.2);
}

.brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.brand-logo-frame--openclaw img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.openclaw-logo {
  object-fit: contain;
}

.n8n-logo {
  width: 82px;
  height: auto;
  flex: 0 0 auto;
}

.n8n-logo path {
  fill: currentColor;
}

.brand-button--n8n .n8n-logo {
  color: #fff;
}

.external-icon,
.cta-arrow,
.round-arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.external-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.course-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 1.9rem;
}

.icon-tile--n8n {
  width: 112px;
  height: 112px;
  background: linear-gradient(145deg, #fee9ee, #fff5f7);
  color: var(--pink);
}

.icon-tile--website {
  width: 112px;
  height: 112px;
  background: linear-gradient(145deg, #eaf3ff, #f6fbff);
  color: #2672e4;
}

.icon-tile--website svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.n8n-logo--mark {
  width: 56px;
}

.course-copy {
  display: grid;
  gap: 0.45rem;
}

.course-copy strong {
  font-size: 1.72rem;
  line-height: 1.18;
  font-weight: 800;
}

.course-copy span {
  max-width: 30rem;
  color: #51617a;
  font-size: 1.18rem;
  line-height: 1.52;
  font-weight: 600;
}

.round-arrow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f3f7;
  color: var(--ink);
}

.round-arrow svg {
  width: 36px;
  height: 36px;
}

.automation-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 2.15rem 2rem 2rem;
  background:
    radial-gradient(circle at 82% 12%, rgba(111, 67, 239, 0.38), transparent 18rem),
    radial-gradient(circle at 100% 92%, rgba(23, 184, 106, 0.16), transparent 15rem),
    linear-gradient(145deg, #081230 0%, #070b20 52%, #050a1a 100%);
  color: #fff;
  box-shadow: 0 22px 58px rgba(7, 17, 38, 0.28);
}

.automation-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 77, 0.55);
  background: rgba(255, 213, 77, 0.13);
  color: #fff2bd;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.automation-copy {
  max-width: 46rem;
  margin-top: 1.55rem;
}

.automation-copy h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 800;
}

.automation-copy h2 span {
  color: var(--gold);
}

.automation-copy p {
  max-width: 42rem;
  margin: 1.05rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.16rem;
  line-height: 1.58;
  font-weight: 500;
}

.automation-list {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.55rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.automation-list li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  font-weight: 650;
}

.automation-list li::before {
  background: var(--purple);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.automation-list li::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.42rem;
  width: 0.48rem;
  height: 0.26rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.roi-box {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: 1.65rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255, 213, 77, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.roi-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 213, 77, 0.16);
  color: var(--gold);
}

.roi-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roi-box p {
  display: grid;
  gap: 0.16rem;
  margin: 0;
}

.roi-box strong {
  color: #fff;
  font-size: 1.26rem;
  line-height: 1.28;
  font-weight: 800;
}

.roi-box span {
  color: var(--gold);
  font-size: 1.36rem;
  line-height: 1.28;
  font-weight: 800;
}

.whatsapp-cta {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  min-height: 92px;
  padding: 1rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  box-shadow: 0 18px 36px rgba(8, 154, 81, 0.24);
}

.whatsapp-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.whatsapp-icon svg {
  width: 52px;
  height: 52px;
  fill: currentColor;
}

.whatsapp-cta strong,
.whatsapp-cta small {
  display: block;
}

.whatsapp-cta strong {
  font-size: 1.38rem;
  line-height: 1.24;
  font-weight: 800;
}

.whatsapp-cta small {
  margin-top: 0.2rem;
  font-size: 1.02rem;
  line-height: 1.32;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.86);
}

.cta-arrow {
  width: 34px;
  height: 34px;
}

.support-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.65rem;
  color: #7e8aa1;
  font-size: 1.05rem;
  font-weight: 650;
}

.support-note svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .brand-button,
  .course-card,
  .whatsapp-cta {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      border-color 180ms ease;
  }

  .brand-button:hover,
  .course-card:hover,
  .whatsapp-cta:hover {
    transform: translateY(-3px);
  }

  .course-card:hover {
    border-color: #d7deeb;
    box-shadow: 0 20px 42px rgba(12, 22, 44, 0.13);
  }

  .course-card:hover .round-arrow,
  .whatsapp-cta:hover .cta-arrow {
    transform: translateX(3px);
  }

  .round-arrow,
  .cta-arrow {
    transition: transform 180ms ease;
  }
}

@media (max-width: 880px) {
  .page-shell {
    width: min(100% - 1.2rem, 760px);
    padding: 1.5rem 1rem 1.25rem;
    border-radius: 28px;
  }

  .profile-hero {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 0.4rem 0.3rem 1.25rem;
  }

  .profile-photo {
    width: 170px;
  }

  .profile-copy h1 {
    font-size: 2.8rem;
  }

  .profile-role {
    font-size: 1.22rem;
  }

  .profile-description {
    font-size: 1.06rem;
  }

  .class-card {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }

  .class-info {
    padding-right: 0;
    padding-bottom: 1.4rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body {
    background: var(--page);
  }

  .page-shell {
    width: min(100% - 0.75rem, 560px);
    margin: 0.4rem auto;
    padding: 1rem 0.85rem 1rem;
    border-radius: 24px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
    padding-top: 0.35rem;
  }

  .profile-photo {
    width: 186px;
  }

  .profile-copy h1 {
    font-size: 2.28rem;
  }

  .profile-role {
    font-size: 1.04rem;
  }

  .profile-description {
    margin-top: 0.8rem;
    font-size: 0.98rem;
  }

  .links-stack {
    gap: 1rem;
  }

  .card,
  .automation-card {
    border-radius: 20px;
  }

  .class-card,
  .course-card,
  .automation-card {
    padding: 1.15rem;
  }

  .section-heading {
    gap: 0.85rem;
  }

  .section-heading h2,
  .course-copy strong {
    font-size: 1.34rem;
  }

  .icon-tile,
  .icon-tile--n8n {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .icon-tile--website {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .icon-tile svg {
    width: 40px;
    height: 40px;
  }

  .check-list li,
  .automation-list li {
    font-size: 0.96rem;
  }

  .class-actions {
    gap: 0.8rem;
  }

  .brand-button {
    min-height: 76px;
    padding: 0.8rem 0.9rem;
    font-size: 1.05rem;
    border-radius: 14px;
  }

  .brand-logo-frame {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0.28rem;
  }

  .brand-logo-frame--openclaw img {
    width: 100%;
  }

  .n8n-logo {
    width: 68px;
  }

  .course-card {
    grid-template-columns: 74px minmax(0, 1fr) 52px;
    gap: 0.85rem;
  }

  .course-copy span {
    font-size: 0.94rem;
  }

  .round-arrow {
    width: 50px;
    height: 50px;
  }

  .round-arrow svg {
    width: 27px;
    height: 27px;
  }

  .automation-card__header {
    align-items: flex-start;
  }

  .featured-badge {
    font-size: 0.78rem;
  }

  .automation-copy h2 {
    font-size: 1.82rem;
  }

  .automation-copy p {
    font-size: 0.98rem;
  }

  .roi-box {
    align-items: flex-start;
    padding: 1rem;
  }

  .roi-icon {
    width: 54px;
    height: 54px;
  }

  .roi-icon svg {
    width: 30px;
    height: 30px;
  }

  .roi-box strong {
    font-size: 1rem;
  }

  .roi-box span {
    font-size: 1.08rem;
  }

  .whatsapp-cta {
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    min-height: 78px;
    gap: 0.7rem;
    padding: 0.85rem 0.95rem;
    border-radius: 15px;
  }

  .whatsapp-icon,
  .whatsapp-icon svg {
    width: 44px;
    height: 44px;
  }

  .whatsapp-cta strong {
    font-size: 1rem;
  }

  .whatsapp-cta small {
    font-size: 0.84rem;
  }
}

@media (max-width: 410px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .profile-photo {
    width: 160px;
  }

  .profile-copy h1 {
    font-size: 2rem;
  }

  .profile-description {
    font-size: 0.92rem;
  }

  .course-card {
    grid-template-columns: 64px minmax(0, 1fr) 46px;
    gap: 0.7rem;
  }

  .course-card .round-arrow {
    width: 46px;
    height: 46px;
  }

  .course-copy strong {
    font-size: 1.1rem;
  }

  .course-copy span {
    font-size: 0.88rem;
  }

  .icon-tile--n8n,
  .icon-tile--website {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
