:root {
  --ink: #121316;
  --paper: #f7f5ef;
  --white: #ffffff;
  --muted: #62615c;
  --line: rgba(18, 19, 22, 0.14);
  --green: #b7ff4a;
  --cyan: #4dd7ff;
  --coral: #ff6b4a;
  --violet: #6e5cff;
  --shadow: 0 24px 70px rgba(18, 19, 22, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(18, 19, 22, 0.12);
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(18, 19, 22, 0.78);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  line-height: 1;
  box-shadow: 5px 5px 0 var(--green);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--green);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button.coral {
  box-shadow: 5px 5px 0 var(--coral);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 56px;
  align-items: center;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.system-board {
  position: relative;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.board-screen {
  min-height: 450px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 19, 22, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 19, 22, 0.08) 1px, transparent 1px),
    #fcfbf6;
  background-size: 32px 32px;
  overflow: hidden;
}

.board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--ink);
  background: var(--green);
  font-weight: 850;
}

.product-stack {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.product-row strong {
  display: block;
}

.product-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.tag {
  border: 1px solid var(--ink);
  padding: 7px 10px;
  background: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 78px 0;
}

.section.dark {
  background: var(--ink);
  color: var(--white);
}

.section.dark .lead,
.section.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 520px;
}

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

.card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 0 rgba(18, 19, 22, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 0 rgba(18, 19, 22, 0.1);
}

.card-media {
  min-height: 150px;
  border-bottom: 1px solid var(--ink);
  background:
    radial-gradient(circle at 30% 20%, rgba(183, 255, 74, 0.9), transparent 28%),
    radial-gradient(circle at 70% 60%, rgba(77, 215, 255, 0.8), transparent 26%),
    var(--ink);
}

.card-media.sushi {
  background-image:
    linear-gradient(rgba(18, 19, 22, 0.18), rgba(18, 19, 22, 0.38)),
    url("https://i.ytimg.com/vi/8AHPXm9Y6mI/maxresdefault.jpg");
  background-position: center;
  background-size: cover;
}

.card-media.suma {
  background-image:
    linear-gradient(rgba(18, 19, 22, 0.08), rgba(18, 19, 22, 0.18)),
    url("/assets/suma-dashboard-clean.png");
  background-position: center;
  background-size: cover;
}

.card-body {
  padding: 22px;
}

.card-body p {
  color: var(--muted);
  line-height: 1.55;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 22px 22px;
}

.meta span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}

.feature p {
  margin-bottom: 0;
  line-height: 1.55;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--white);
}

.matrix-item {
  min-height: 210px;
  padding: 22px;
  border-right: 1px solid var(--ink);
  color: var(--ink);
}

.matrix-item:last-child {
  border-right: 0;
}

.matrix-item p {
  color: var(--muted);
  line-height: 1.55;
}

.page-hero {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 56px;
}

.page-hero h1 {
  font-size: clamp(3.4rem, 9vw, 8rem);
}

.content-band {
  border-top: 1px solid var(--line);
  padding: 52px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.text-block {
  max-width: 820px;
  line-height: 1.7;
}

.text-block p,
.text-block li {
  color: var(--muted);
}

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

.list-card {
  border: 1px solid var(--ink);
  background: var(--white);
  padding: 18px;
}

.footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-grid,
  .split,
  .two-col {
    grid-template-columns: 1fr;
  }

  .portfolio,
  .matrix,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .matrix-item {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .matrix-item:last-child {
    border-bottom: 0;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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