:root {
  --ink: #1a1a1a;
  --blue: #2f80ed;
  --grey: #777878;
  --lime: #52f731;
  --yellow: #f9cc49;
  --surface: #f5f5f5;
  --line: #d8d8d8;
  --white: #ffffff;
  --max: 1320px;
  --radius: 8px;
}

@font-face {
  font-family: "HelveticaNeueCyr";
  src: url("https://iconica.site/local/templates/iconica/fonts/HelveticaNeueCyr-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaNeueCyr";
  src: url("https://iconica.site/local/templates/iconica/fonts/HelveticaNeueCyr-Roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("https://iconica.site/local/templates/iconica/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "HelveticaNeueCyr", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: var(--blue);
  color: var(--white);
}

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

button,
pre,
code {
  font: inherit;
}

.progress {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}

.brand-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  padding: 26px clamp(18px, 4vw, 72px);
  border-bottom: 1px solid rgba(216, 216, 216, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  min-width: max-content;
  color: currentColor;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.brand-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 46px);
  color: var(--grey);
  font-size: 16px;
}

.brand-nav a,
.header-link,
.footer-links a {
  transition: color 0.2s ease;
}

.brand-nav a:hover,
.brand-nav a.is-active,
.header-link:hover,
.footer-links a:hover {
  color: var(--blue);
}

.header-link {
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  min-height: min(700px, calc(100vh - 144px));
  padding: clamp(44px, 5.5vw, 88px) clamp(18px, 4vw, 72px) clamp(32px, 4vw, 64px);
  background: var(--ink);
  color: var(--white);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.hero h1 {
  max-width: 1060px;
  margin: 0;
  font-size: clamp(40px, 4.3vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero__lead {
  max-width: 780px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(19px, 1.8vw, 28px);
  line-height: 1.18;
}

.hero__actions,
.button-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__actions {
  margin-top: 34px;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.copy-button:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.button--primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.button--ghost {
  color: rgba(255, 255, 255, 0.86);
}

.button--light {
  background: var(--white);
  color: var(--ink);
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.blueprint {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 22%, rgba(47, 128, 237, 0.22), transparent 34%),
    #070707;
  isolation: isolate;
}

.blueprint__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(47, 128, 237, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 128, 237, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.blueprint svg {
  position: absolute;
  inset: 8% 5%;
  width: 90%;
  height: 78%;
  overflow: hidden;
}

.logo-outline,
.logo-fill {
  font-family: "HelveticaNeueCyr", Helvetica, Arial, sans-serif;
  font-size: 124px;
  font-weight: 400;
  letter-spacing: 0;
}

.logo-outline {
  fill: transparent;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: drawLogo 4.2s ease forwards;
}

.logo-fill {
  fill: rgba(255, 255, 255, 0.88);
  opacity: 0;
  animation: fillLogo 0.9s ease 3.1s forwards;
}

.measure,
.orbit {
  fill: none;
  stroke: rgba(82, 247, 49, 0.76);
  stroke-width: 1.4;
  stroke-dasharray: 9 12;
}

.measure--two {
  stroke: rgba(249, 204, 73, 0.8);
}

.node {
  fill: var(--lime);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseNode 1.8s ease-in-out infinite;
}

.node--b {
  fill: var(--yellow);
  animation-delay: 0.45s;
}

.blueprint__caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.ticker {
  display: flex;
  gap: 28px;
  overflow: hidden;
  padding: 24px clamp(18px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  color: var(--grey);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 16px;
  white-space: nowrap;
}

.ticker span::after {
  content: "/";
  margin-left: 28px;
  color: var(--blue);
}

.brief-strip,
.section,
.brand-footer {
  padding-right: clamp(18px, 4vw, 72px);
  padding-left: clamp(18px, 4vw, 72px);
}

.brief-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  padding-top: clamp(54px, 7vw, 104px);
  padding-bottom: clamp(54px, 7vw, 104px);
}

.brief-strip h2,
.section h2 {
  margin: 0;
  font-size: clamp(36px, 4.7vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.brief-strip__facts {
  display: grid;
  border-top: 1px solid var(--line);
}

.brief-strip__facts span {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--grey);
  font-size: 20px;
  line-height: 1.35;
}

.brief-strip__facts strong {
  color: var(--ink);
  font-weight: 400;
}

.section {
  padding-top: clamp(72px, 9vw, 132px);
  padding-bottom: clamp(72px, 9vw, 132px);
}

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

.section--surface {
  background: var(--surface);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: clamp(24px, 5vw, 86px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto clamp(34px, 5vw, 72px);
}

.section__head p:not(.section-kicker) {
  margin: 0;
  color: var(--grey);
  font-size: 20px;
  line-height: 1.42;
}

.section--dark .section__head p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.68);
}

.swatch-grid,
.logo-stage,
.rules-grid,
.type-grid,
.pattern-board,
.component-lab,
.handoff {
  max-width: var(--max);
  margin: 0 auto;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 20px;
  border-radius: var(--radius);
  color: var(--ink);
}

.swatch span {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.swatch strong {
  margin-top: auto;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.swatch p {
  margin: 14px 0 0;
  color: currentColor;
  font-size: 16px;
  line-height: 1.32;
}

.swatch--ink {
  background: #060606;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch--blue {
  background: var(--blue);
  color: var(--white);
}

.swatch--lime {
  background: var(--lime);
}

.swatch--yellow {
  background: var(--yellow);
}

.swatch--grey {
  background: var(--grey);
  color: var(--white);
}

.swatch--surface {
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.logo-card {
  min-height: 330px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.logo-card span {
  color: var(--grey);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.logo-card strong {
  display: block;
  margin-top: 78px;
  font-size: clamp(46px, 7vw, 104px);
  font-weight: 400;
  line-height: 0.94;
  overflow-wrap: anywhere;
}

.logo-card p {
  max-width: 460px;
  margin: 34px 0 0;
  color: var(--grey);
  font-size: 19px;
  line-height: 1.36;
}

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

.logo-card--dark p {
  color: rgba(255, 255, 255, 0.68);
}

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

.rules-grid div,
.pattern-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.rules-grid div {
  padding: 24px;
}

.rules-grid h3,
.pattern-card h3,
.copy-head h3,
.handoff__json h3 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.rules-grid p,
.pattern-card p {
  margin: 0;
  color: var(--grey);
  font-size: 18px;
  line-height: 1.4;
}

.type-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.type-sample {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.type-sample span,
.pattern-card span,
.tag-row span,
.table-demo span {
  color: var(--blue);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.type-sample p {
  margin: 18px 0 0;
  overflow-wrap: anywhere;
}

.type-sample--hero {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--white);
}

.type-sample--hero p {
  max-width: 1040px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
}

.type-sample--title p {
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.02;
}

.type-sample--body p {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.52;
}

.type-sample--meta {
  background: var(--surface);
}

.type-sample--meta p {
  color: var(--grey);
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

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

.pattern-card {
  min-height: 260px;
  padding: 24px;
}

.pattern-card--wide {
  grid-column: span 2;
}

.pattern-card--blue {
  background: var(--blue);
  color: var(--white);
}

.pattern-card--blue span,
.pattern-card--blue p {
  color: rgba(255, 255, 255, 0.78);
}

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

.components .section__head p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.68);
}

.component-lab {
  display: grid;
  gap: 18px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
}

.table-demo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.table-demo div {
  display: grid;
  gap: 12px;
  min-height: 126px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.table-demo div:last-child {
  border-right: 0;
}

.table-demo strong {
  align-self: end;
  color: var(--white);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.14;
}

.ai-section {
  background: var(--white);
}

.handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
}

.handoff__panel,
.handoff__json {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
}

.handoff__panel {
  padding: clamp(22px, 4vw, 42px);
}

.handoff__json {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--ink);
  color: var(--white);
}

.copy-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.copy-button {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

pre,
.handoff__json code {
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

pre {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.handoff__json code {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.brand-footer {
  display: grid;
  grid-template-columns: minmax(0, 520px) auto;
  justify-content: space-between;
  gap: 40px;
  padding-top: 58px;
  padding-bottom: 58px;
  background: var(--ink);
  color: var(--white);
}

.brand-footer p {
  max-width: 460px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1.35;
}

.footer-links {
  display: grid;
  gap: 14px;
  align-content: start;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes drawLogo {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillLogo {
  to {
    opacity: 1;
  }
}

@keyframes pulseNode {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.34);
  }
}

@media (max-width: 1120px) {
  .brand-header {
    grid-template-columns: 1fr auto;
  }

  .brand-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .brief-strip,
  .section__head,
  .handoff {
    grid-template-columns: 1fr;
  }

  .hero__copy,
  .blueprint {
    min-height: 480px;
  }

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

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

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

  .table-demo div:nth-child(2) {
    border-right: 0;
  }

  .table-demo div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }
}

@media (max-width: 760px) {
  .brand-header {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .header-link {
    justify-self: end;
    font-size: 14px;
  }

  .brand-nav {
    font-size: 14px;
  }

  .hero {
    position: relative;
    display: block;
    min-height: calc(100vh - 136px);
    padding-top: 42px;
    overflow: hidden;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
    min-height: 0;
  }

  .blueprint {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    min-height: 250px;
    height: 250px;
    opacity: 0.28;
    pointer-events: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.4vw, 40px);
  }

  .hero__lead {
    margin-top: 24px;
    font-size: 18px;
  }

  .hero__actions {
    margin-top: 34px;
  }

  .blueprint svg {
    inset: 10% 4%;
    width: 92%;
    height: 76%;
  }

  .logo-outline,
  .logo-fill {
    font-size: 88px;
  }

  .blueprint__caption {
    flex-direction: column;
    gap: 6px;
  }

  .brief-strip h2,
  .section h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .section__head p:not(.section-kicker),
  .brief-strip__facts span {
    font-size: 18px;
  }

  .swatch-grid,
  .logo-stage,
  .rules-grid,
  .type-grid,
  .pattern-board,
  .table-demo,
  .brand-footer {
    grid-template-columns: 1fr;
  }

  .pattern-card--wide {
    grid-column: auto;
  }

  .table-demo div,
  .table-demo div:nth-child(2) {
    border-right: 0;
  }

  .table-demo div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .table-demo div:last-child {
    border-bottom: 0;
  }

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

  .button,
  .copy-button {
    width: 100%;
    white-space: normal;
  }

  .ticker span:nth-child(n + 2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
