:root {
  --background: #f7f7f9;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --foreground: #221a2f;
  --muted: #6e6678;
  --line: #e5e1ea;
  --purple: #6c3cc9;
  --purple-deep: #46227e;
  --purple-soft: #efe9fb;
  --orange: #f28a2e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgb(108 60 201 / 0.10) 1px, transparent 0) 0 0 / 28px 28px,
    linear-gradient(180deg, #fbfbfd 0%, var(--background) 46%, #ffffff 100%);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.wordmark {
  color: var(--purple-deep);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--purple);
  color: var(--purple-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(42px, 8vw, 90px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(44px, 8vw, 96px) 0 clamp(54px, 8vw, 90px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.05rem, 7.8vw, 6.9rem);
  font-weight: 720;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.2vw, 3.15rem);
  font-weight: 690;
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--purple-deep);
}

.article-section {
  padding: 30px 0 50px 0;
  color: var(--muted);
  font-size: 24px;
  font-size: clamp(1rem, 2.3vw, 1.3rem);
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.linkedin-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 680;
}

.button.primary,
.linkedin-link {
  background: var(--purple);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.72);
  color: var(--purple-deep);
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.hero-visual::before {
  position: absolute;
  inset: 24px 10px auto auto;
  width: 138px;
  height: 138px;
  border: 1px solid var(--line);
  border-radius: 999px;
  content: '';
}

.line-card {
  position: absolute;
  width: min(78%, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.68);
  padding: 26px;
}

.line-card span {
  display: block;
  height: 2px;
  margin: 18px 0;
  background: var(--purple);
  opacity: 0.44;
}

.line-card span:nth-child(2) {
  width: 70%;
}

.line-card span:nth-child(3) {
  width: 46%;
  background: var(--orange);
  opacity: 0.8;
}

.line-card.process {
  left: 0;
  top: 30px;
}

.line-card.solution {
  bottom: 54px;
  right: 0;
}

.bridge-line {
  position: absolute;
  left: 22%;
  top: 48%;
  width: 58%;
  height: 1px;
  background: var(--purple);
  transform: rotate(-13deg);
  transform-origin: left;
}

.bridge-line::after {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--purple);
  border-right: 2px solid var(--purple);
  content: '';
  transform: rotate(45deg);
}

.infinity {
  position: absolute;
  right: 28px;
  top: 170px;
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  font-size: 2.8rem;
  line-height: 1;
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(58px, 8vw, 96px) 0;
}

.compact {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: clamp(30px, 6vw, 72px);
}

.section-heading {
  max-width: 560px;
}

.point-grid {
  display: grid;
  gap: 14px;
}

.point {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  border-left: 2px solid var(--purple-soft);
  padding: 4px 0 4px 22px;
}

.point span {
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  font-size: 0.82rem;
  font-weight: 760;
}

.point p,
.build-list p,
.article-card p,
.article-placeholder p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.build-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.build-list p {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.writing {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: stretch;
}

.article-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(108 60 201 / 0.08), transparent 44%),
    var(--surface);
  padding: clamp(26px, 4vw, 42px);
}

.article-card::after {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 92px;
  height: 92px;
  border: 1px solid var(--purple-soft);
  border-radius: 999px;
  content: '';
}

.article-category {
  display: block;
  margin-bottom: 26px;
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0;
}

.read-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--purple-deep);
  font-weight: 720;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 88px;
}

.contact h2 {
  max-width: 780px;
}

.article-page {
  max-width: 960px;
  padding: clamp(54px, 8vw, 104px) 0 96px;
}

.article-page h1 {
  margin-bottom: 18px;
}

.article-subtitle {
  margin-bottom: 44px;
  color: var(--purple);
  font-size: clamp(1.28rem, 2.3vw, 1.7rem);
  line-height: 1.45;
}

.back-link {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--purple-deep);
  font-size: 0.94rem;
  font-weight: 680;
}

.article-placeholder {
  border-left: 2px solid var(--orange);
  padding-left: 26px;
}

@media (max-width: 820px) {
  main {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    align-items: flex-start;
    padding: 22px 0;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    max-width: 230px;
  }

  .hero,
  .compact,
  .split,
  .writing {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .hero-visual {
    min-height: 310px;
  }

  .line-card {
    width: 76%;
    padding: 20px;
  }

  .infinity {
    top: 122px;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
    max-width: none;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.1rem);
  }

  .button,
  .linkedin-link {
    width: 100%;
  }

  .point {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding-left: 16px;
  }

}

li {
  padding: 5px 0;
}
li::marker {
  color: var(--orange);
  font-size: 1em;
}

.orange-text {
  color: var(--orange);
}
.code-text {
  color: var(--purple);
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
