@import url('fonts.css');

:root {
  color-scheme: dark;
  --background: #000;
  --surface: #0d0d0f;
  --foreground: #f0f0ed;
  --muted: #929297;
  --line: #29292e;
  --purple: #9452ff;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: Manrope, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a, .depth-card { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, .depth-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 7px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; }
::selection { background: #9452ff66; color: white; }
.page { width: 100%; max-width: 1600px; margin: 0 auto; }
.shell { margin-inline: clamp(24px, 4.45vw, 72px); }
.skip-link { position: fixed; z-index: 20; left: 20px; top: 16px; padding: 14px 20px; background: var(--purple); border-radius: 6px; transform: translateY(-180%); }
.skip-link:focus-visible { transform: translateY(0); }
.header { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; white-space: nowrap; }
.brand-mark { position: relative; overflow: hidden; flex: 0 0 40px; width: 40px; height: 44px; }
.brand-mark img { position: absolute; width: 70px; height: 70px; max-width: none; left: -14px; top: -13px; }
.header nav { display: flex; align-items: center; gap: 36px; margin-left: 40px; }
.header nav a { position: relative; font-size: 13px; color: var(--muted); padding-block: 12px; transition: color .2s ease; }
.header nav a:hover { color: var(--foreground); }
.header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.header nav a:hover::after { transform: scaleX(1); }
.login { border: 0; background: transparent; font-size: 14px; padding: 12px 0 12px 20px; cursor: pointer; }
h1, h2 { font-family: Unbounded, sans-serif; font-weight: 300; line-height: 1.18; letter-spacing: -.04em; }
.hero { --sculpture-size: clamp(360px, 36vw, 540px); text-align: center; position: relative; padding-block: clamp(36px, 5vh, 64px) clamp(80px, 8vw, 128px); }
.hero h1 { font-size: clamp(44px, 5.625vw, 81px); }
.hero-stage { position: relative; margin-top: 30px; display: grid; grid-template-columns: minmax(0,1fr) var(--sculpture-size) minmax(0,1fr); align-items: center; gap: 18px; }
.sculpture { width: var(--sculpture-size); height: var(--sculpture-size); grid-column: 2; grid-row: 1; position: relative; pointer-events: none; }
.sculpture-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.sculpture canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.sculpture[data-renderer="webgl"] canvas { opacity: 1; }
.sculpture[data-renderer="webgl"] .sculpture-image { visibility: hidden; }
.hero-caption { text-align: left; position: relative; z-index: 1; margin-top: -18px; }
.hero-caption--left { grid-column: 1; grid-row: 1; padding-left: 16px; }
.hero-caption--right { grid-column: 3; grid-row: 1; justify-self: end; width: min(100%,286px); }
.eyebrow { font-size: 10px; line-height: 1.5; font-weight: 800; text-transform: uppercase; }
.accent { color: var(--purple); }
.hero-caption--left .eyebrow { font-size: 12px; }
.caption-title { margin-top: 12px; font-size: 24px; font-weight: 500; line-height: 1.5; }
.hero-caption--right .caption-title { font-size: 18px; font-weight: 400; margin-top: 22px; }
.caption-description { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.hero-caption--right .caption-description { margin-top: 20px; }
.primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 10px 24px; border-radius: 8px; border: 0; background: var(--purple); font-size: 14px; line-height: 24px; font-weight: 600; cursor: pointer; transition: background .2s ease, box-shadow .3s ease, transform .3s var(--ease); }
.primary-action img { flex: 0 0 24px; }
.primary-action:hover { background: #a66dff; box-shadow: 0 0 26px #9452ff26; }
.primary-action:active { transform: translateY(1px); }
.hero > .primary-action { margin-top: 8px; position: relative; z-index: 2; }
.workspace { padding-top: 47px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.workspace h2 { font-size: 52px; }
.workspace-heading > p { color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.5; max-width: 416px; }
.workspace-preview { position: relative; margin: 58px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 1272 / 652; background: var(--surface); }
.workspace-preview > img { width: 100%; height: 100%; object-fit: cover; }
.workspace-caption { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 20px; margin-top: 43px; }
.workspace-caption span { color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1.5; text-transform: uppercase; }
.workspace-caption span:last-child { text-align: right; }
.workflow { padding-top: clamp(88px, 10vw, 160px); }
.workflow h2 { font-size: 50px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 71px; }
.step { min-height: 254px; padding: 50px 16px 36px; border-block: 1px solid var(--line); text-align: center; }
.step h3 { font-size: 25px; font-weight: 500; line-height: 1.5; }
.step p { color: var(--muted); margin-top: 15px; font-size: 14px; line-height: 1.5; }
.step-tag { display: block; color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.5; margin-top: 8px; }
.features { padding-top: clamp(88px, 10vw, 160px); }
.features h2 { font-size: 48px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 818fr) minmax(0, 470fr); grid-template-rows: repeat(2, 203px); gap: 24px; margin-top: 62px; }
.depth-card { isolation: isolate; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; contain: paint; }
.depth-card--graph { grid-row: 1 / 3; }
.depth-image { position: absolute; max-width: none; pointer-events: none; user-select: none; will-change: transform; transform: translate3d(0, 0, 0); }
.depth-card--graph .depth-image { width: 116%; height: 124%; left: -8%; top: -12%; object-fit: cover; object-position: 62% 38%; }
.depth-card--context .depth-image { width: 116%; height: 250%; left: -8%; top: -12%; object-fit: cover; object-position: center top; }
.depth-card--projects .depth-image { width: 116%; height: 124%; left: -8%; top: -12%; object-fit: cover; object-position: center 40%; }
.depth-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .66) 0%, rgb(0 0 0 / .46) 55%, rgb(0 0 0 / .36) 100%); opacity: 1; pointer-events: none; transition: opacity .65s var(--ease); }
.depth-copy { position: absolute; z-index: 2; inset: 0; padding: 25px 29px; pointer-events: none; opacity: 1; transform: translateY(0); transition: opacity .4s ease, transform .65s var(--ease); }
.depth-copy h3 { font-size: 24px; line-height: 1.5; font-weight: 500; text-shadow: 0 2px 14px #000, 0 1px 3px #000; }
.depth-copy p { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.depth-card--graph .depth-copy { padding-left: 19px; }
.depth-card--graph .depth-copy h3 { font-size: 27px; }
.feature-icon { margin-bottom: 20px; }
.command-icon { display: block; color: var(--purple); font-size: 28px; line-height: 1.5; margin-top: -12px; }
.depth-card--projects .depth-copy h3 { font-size: 22px; }
.depth-card.is-active .depth-copy { opacity: 0; transform: translateY(-7px); }
.depth-card.is-active .depth-shade { opacity: 0; }
.depth-card:focus-visible { outline-offset: 4px; }
.closing { padding-top: 126px; text-align: center; }
.closing .eyebrow { font-size: 11px; font-weight: 600; }
.closing h2 { font-size: 62px; margin-top: 28px; }
.closing .primary-action { margin-top: 50px; }
.footer { min-height: 86px; border-top: 1px solid var(--line); margin-top: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand { font-size: 14px; }
.footer .brand-mark { width: 30px; height: 34px; flex-basis: 30px; }
.footer .brand-mark img { width: 54px; height: 54px; left: -11px; top: -10px; }
.footer p { color: var(--muted); font-size: 10px; }

.preview-open { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 44px; background: #111e; border: 1px solid #555; border-radius: 8px; cursor: zoom-in; font-size: 13px; }
.image-viewer { width: min(96vw,1800px); max-width: none; height: min(92dvh,1200px); max-height: none; padding: 0; color: var(--foreground); background: #090909; border: 1px solid #444; border-radius: 12px; }
.image-viewer::backdrop { background: #000d; backdrop-filter: blur(8px); }
.viewer-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.viewer-toolbar p { flex: 1; font-size: 14px; }
.viewer-toolbar button { min-height: 44px; padding: 8px 14px; border: 1px solid #444; border-radius: 6px; background: #191919; cursor: pointer; font-size: 13px; }
.viewer-body { height: calc(100% - 69px); overflow: auto; overscroll-behavior: contain; }
.viewer-body img { width: 100%; height: 100%; object-fit: contain; }
.image-viewer.is-zoomed .viewer-body img { width: 2544px; height: auto; max-width: none; }

@media (min-width: 1921px) {
  .page { max-width: 1840px; }
  .shell { margin-inline: 80px; }
  .hero { --sculpture-size: 620px; padding-top: 64px; }
  .hero h1 { font-size: 100px; }
  .header { height: 120px; }
  .header nav a, .login { font-size: 16px; }
  .caption-title { font-size: 28px; }
  .hero-caption--right { width: 320px; }
  .hero-caption--right .caption-title { font-size: 21px; }
  .caption-description { font-size: 16px; }
  .workspace h2, .workflow h2 { font-size: 60px; }
  .workspace-heading > p { font-size: 18px; max-width: 510px; }
  .features h2 { font-size: 58px; }
  .feature-grid { grid-template-rows: 250px 250px; }
  .step p { font-size: 16px; }
  .step h3 { font-size: 28px; }
  .closing h2 { font-size: 72px; }
  .primary-action { font-size: 16px; min-height: 54px; }
}
@media (min-width: 1000px) and (max-height: 900px) {
  .header { height: 80px; }
  .hero { --sculpture-size: clamp(300px, 45svh, 380px); padding-block: 24px 52px; }
  .hero h1 { font-size: clamp(48px, 4.1vw, 64px); }
  .hero-stage { margin-top: 12px; }
  .caption-title { font-size: 21px; }
  .hero-caption--right .caption-title { font-size: 17px; }
}
@media (min-width: 1000px) and (max-width: 1299px) {
  .hero { --sculpture-size: 380px; }
  .hero-caption--left { padding-left: 0; }
  .caption-title { font-size: 21px; }
  .hero-caption--right .caption-title { font-size: 16px; }
  .workspace h2 { font-size: 43px; }
  .workspace-heading { gap: 28px; }
  .workspace-heading > p { max-width: 390px; }
  .desktop-break { display: none; }
  .step h3 { font-size: 22px; }
  .step p br { display: none; }
  .depth-card--graph .depth-copy h3 { font-size: 24px; }
  .depth-card--projects .depth-copy h3 { font-size: 20px; }
}
@media (min-width: 1000px) and (max-width: 1299px) and (max-height: 900px) {
  .hero { --sculpture-size: clamp(300px, 45svh, 380px); }
}
@media (max-width: 999px) {
  .shell { margin-inline: 32px; }
  .header { gap: 20px; height: 92px; }
  .header nav { gap: 20px; margin-left: 0; }
  .header nav a { font-size: 12px; }
  .brand { font-size: 15px; gap: 8px; }
  .hero { --sculpture-size: clamp(360px, 52vw, 480px); padding-block: 48px 80px; }
  .hero h1 { font-size: clamp(42px, 6.5vw, 64px); }
  .hero-stage { grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 16px; }
  .sculpture { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .hero-caption { grid-row: 2; margin: 0; padding: 0; width: auto; justify-self: center; }
  .hero-caption--left { grid-column: 1; }
  .hero-caption--right { grid-column: 2; }
  .caption-title { font-size: 23px; }
  .hero-caption--right .caption-title { font-size: 18px; margin-top: 16px; }
  .caption-description { font-size: 14px; }
  .hero > .primary-action { margin-top: 36px; }
  .workspace { padding-top: 24px; }
  .workspace-heading { gap: 30px; align-items: flex-start; }
  .workspace h2 { font-size: 38px; }
  .workspace-heading > p { max-width: 310px; font-size: 14px; }
  .desktop-break { display: none; }
  .workspace-preview { margin-top: 36px; }
  .workspace-caption { margin-top: 28px; }
  .workflow h2, .features h2 { font-size: 38px; }
  .steps { gap: 20px; margin-top: 48px; }
  .step { padding: 32px 8px; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 14px; }
  .step p br { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 390px 240px; margin-top: 48px; }
  .depth-card--graph { grid-column: 1 / -1; grid-row: 1; }
  .depth-card--context, .depth-card--projects { grid-row: 2; }
  .depth-copy { padding: 24px; }
  .depth-card--projects .depth-copy h3 { font-size: 20px; }
  .closing { padding-top: 96px; }
  .closing h2 { font-size: 50px; }
}
@media (max-width: 719px) {
  .shell { margin-inline: 24px; }
  .header { min-height: 116px; height: auto; flex-wrap: wrap; gap: 0 20px; align-content: center; }
  .header nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .header nav a { font-size: 12px; padding-block: 14px; min-height: 44px; }
  .login { min-height: 44px; font-size: 14px; }
  .hero { --sculpture-size: min(100%,400px); padding-block: 36px 72px; }
  .hero h1 { font-size: clamp(28px, 6.9vw, 48px); }
  .hero-stage { grid-template-columns: minmax(0,1fr); gap: 24px; margin-top: 8px; }
  .sculpture { width: min(100%,400px); height: auto; aspect-ratio: 1; }
  .hero-caption { grid-column: 1; text-align: center; }
  .hero-caption--left { grid-row: 2; }
  .hero-caption--right { grid-row: 3; }
  .hero-caption .eyebrow { font-size: 11px; }
  .hero-caption--right .caption-title { font-size: 18px; }
  .hero-caption--right .caption-description { margin-top: 10px; }
  .caption-title { margin-top: 10px; }
  .hero > .primary-action { margin-top: 28px; }
  .workspace-heading { flex-direction: column; gap: 24px; }
  .workspace h2 { font-size: clamp(30px, 7vw, 42px); }
  .workspace-heading > p { max-width: 480px; font-size: 15px; }
  .workspace-preview { margin-top: 28px; border-radius: 8px; }
  .preview-open { right: 8px; bottom: 8px; padding: 6px 10px; font-size: 12px; gap: 8px; }
  .workspace-caption { margin-top: 20px; gap: 10px; }
  .workspace-caption span { font-size: 9px; }
  .workflow h2, .features h2 { font-size: clamp(24px, 5.6vw, 36px); }
  .steps { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .step { min-height: 0; padding: 30px 16px; }
  .step h3 { font-size: 23px; }
  .step p { margin-top: 12px; font-size: 15px; }
  .step p br { display: initial; }
  .step-tag { font-size: 12px; margin-top: 12px; }
  .feature-grid { grid-template-columns: 1fr; grid-template-rows: 360px 250px 230px; gap: 20px; margin-top: 36px; }
  .depth-card--graph { grid-column: 1; grid-row: 1; }
  .depth-card--context { grid-row: 2; }
  .depth-card--projects { grid-row: 3; }
  .depth-copy, .depth-card--graph .depth-copy { padding: 22px; }
  .depth-card--graph .depth-copy h3 { font-size: 23px; }
  .depth-copy p { font-size: 14px; max-width: 360px; }
  .depth-card--graph .depth-image { width: 120%; left: -10%; object-position: 67% 40%; }
  .closing { padding-top: 88px; }
  .closing h2 { font-size: clamp(28px, 6.6vw, 44px); margin-top: 24px; }
  .closing .primary-action { margin-top: 32px; }
  .footer { margin-top: 56px; min-height: 100px; gap: 12px; }
  .footer .brand { font-size: 13px; gap: 7px; }
  .footer p { font-size: 11px; }
  .image-viewer { width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .viewer-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .viewer-toolbar p { flex-basis: 100%; font-size: 13px; }
  .viewer-body { height: calc(100% - 101px); }
}
@media (max-width: 379px) {
  .shell { margin-inline: 18px; }
  .brand { font-size: 13px; }
  .header nav a { font-size: 11px; }
  .hero h1 { font-size: 26px; }
  .depth-copy, .depth-card--graph .depth-copy { padding: 18px; }
  .depth-card--graph .depth-copy h3, .depth-card--projects .depth-copy h3 { font-size: 20px; }
  .footer { flex-direction: column; justify-content: center; gap: 12px; }
}
@media (hover: none) and (pointer: coarse) {
  .depth-card { -webkit-tap-highlight-color: #9452ff22; }
  .depth-card::after { content: 'Коснитесь, чтобы рассмотреть'; position: absolute; z-index: 3; left: 22px; bottom: 16px; font-size: 11px; color: #d2d2d5; pointer-events: none; transition: opacity .3s ease; }
  .depth-card.is-active::after { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .depth-image, .depth-copy { transform: none !important; }
}
