:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #64707d;
  --line: #dde5ec;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --soft: #eef3f0;
  --accent: #216b62;
  --accent-2: #6f5a9a;
  --accent-3: #376b9a;
  --shadow: 0 22px 70px rgba(32, 37, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 245, 0.96)),
    var(--paper);
  letter-spacing: 0;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 248, 245, 0.82);
  border-bottom: 1px solid rgba(32, 37, 43, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  font-size: 18px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #20252b;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: rgba(32, 37, 43, 0.06);
  color: var(--ink);
}

.hero {
  padding: 76px 0 60px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.hero-copy-block {
  max-width: 810px;
}

.eyebrow {
  font-size: 13px;
  line-height: 1.4;
  color: var(--accent);
  font-weight: 760;
  margin-bottom: 18px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  margin: 26px 0 0;
  max-width: 710px;
  font-size: 20px;
  line-height: 1.62;
  color: #46515b;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(32, 37, 43, 0.14);
  font-weight: 720;
  font-size: 14px;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.studio-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 37, 43, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(32, 37, 43, 0.08);
}

.panel-head span {
  color: var(--muted);
  font-size: 14px;
}

.panel-head strong {
  font-size: 15px;
}

.mini-products {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-product {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(32, 37, 43, 0.08);
  border-radius: 8px;
  background: #fff;
}

.mini-product:hover {
  border-color: rgba(33, 107, 98, 0.35);
  transform: translateY(-1px);
}

.mini-product img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.mini-product b,
.mini-product small {
  display: block;
}

.mini-product small {
  color: var(--muted);
  margin-top: 2px;
}

.section {
  padding: 58px 0;
}

.product-section {
  padding-top: 44px;
}

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

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.section-note {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  border: 1px solid rgba(32, 37, 43, 0.1);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 16px 50px rgba(32, 37, 43, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card.featured {
  grid-row: span 2;
  min-height: 620px;
}

.product-content {
  position: relative;
  z-index: 2;
}

.product-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(32, 37, 43, 0.16);
}

.product-title h3 {
  margin: 0 0 3px;
  font-size: 24px;
}

.product-title span {
  color: var(--muted);
  font-size: 13px;
}

.product-card p {
  max-width: 500px;
  margin: 22px 0;
  color: #43505a;
  line-height: 1.64;
  font-size: 16px;
}

.product-shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 8px;
  border: 1px solid rgba(32, 37, 43, 0.1);
  background: #eef1f4;
}

.featured .product-shot {
  aspect-ratio: 1.05 / 1;
  object-position: top left;
}

.icon-shot {
  width: min(260px, 70%);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  align-self: center;
  border: 0;
  background: transparent;
}

.product-card[data-accent="inkmoss"] {
  background: linear-gradient(140deg, #ffffff, #edf5f2);
}

.product-card[data-accent="alephink"] {
  background: linear-gradient(140deg, #ffffff, #f3eff7);
}

.product-card[data-accent="chiselo"] {
  background: linear-gradient(140deg, #ffffff, #edf3f9);
}

.product-card[data-accent="sireon"] {
  background: linear-gradient(140deg, #ffffff, #f2f6ed);
}

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

.system-list {
  display: grid;
  gap: 12px;
}

.system-item {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.system-item strong {
  font-size: 16px;
}

.system-item span {
  color: var(--muted);
  line-height: 1.6;
}

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

.principle {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.principle strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
}

.footer {
  padding: 42px 0;
  border-top: 1px solid rgba(32, 37, 43, 0.1);
  color: var(--muted);
  font-size: 14px;
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

  .hero {
    padding-top: 46px;
  }

  .hero-layout,
  .product-grid,
  .split-section,
  .principles {
    grid-template-columns: 1fr;
  }

  .product-card.featured {
    grid-row: auto;
    min-height: 0;
  }

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .panel-head,
  .system-item {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }
}
