:root {
  color-scheme: light;
  --ink: #141d30;
  --muted: #516077;
  --line: #dbe2eb;
  --paper: #f6f8fc;
  --white: #fff;
  --blue: #0069bc;
  --blue-deep: #004d90;
  --orange: #ffab35;
  --night: #101828;
  --display: "Aptos Display", "Trebuchet MS", system-ui, sans-serif;
  font: 16px/1.6 "Aptos", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #f69c28; outline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.02; margin: 0; }
h1 { font-size: clamp(3.1rem, 7.8vw, 6.9rem); letter-spacing: -.073em; }
h2 { font-size: clamp(2.05rem, 4vw, 3.4rem); letter-spacing: -.058em; }
h3, h4 { font-size: 1.46rem; letter-spacing: -.035em; }
p { margin: 0; }
.studio-wrap, .wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.eyebrow { margin-bottom: .6rem; color: var(--blue-deep); font-size: .78rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.intro { max-width: 37rem; margin-top: 1rem; color: var(--muted); font-size: 1.14rem; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 3; top: .75rem; left: .75rem; padding: .65rem 1rem; transform: translateY(-200%); color: var(--white); background: var(--blue-deep); }
.skip:focus { transform: none; }

.studio-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-layout { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.studio-brand { display: inline-flex; align-items: center; gap: .52rem; width: max-content; font-family: var(--display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.052em; text-decoration: none; white-space: nowrap; }
.studio-brand img { width: 2.3rem; height: auto; }
.studio-brand strong { color: var(--blue-deep); }
.studio-nav { display: flex; gap: clamp(.75rem, 2.4vw, 2.1rem); align-items: center; flex-wrap: wrap; }
.studio-nav a { color: var(--muted); font-size: .96rem; font-weight: 650; text-decoration: none; }
.studio-nav a:hover, .studio-nav a[aria-current="page"] { color: var(--blue-deep); }
.studio-nav .nav-download { padding: .48rem .86rem; border: 1px solid #aac5dc; border-radius: .55rem; color: var(--blue-deep); }
.studio-nav .nav-download:hover, .studio-nav .nav-download[aria-current="page"] { background: #e9f4fd; }

.home-hero { color: var(--white); background: var(--night); }
.hero-layout, .product-hero-layout { display: grid; grid-template-columns: 1.14fr .86fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 6.5rem); }
.hero-copy h1 em { color: #67cffc; font-style: normal; }
.hero-copy > p:not(.eyebrow, .product-tagline) { max-width: 34rem; margin-top: 1.45rem; color: #ccd7e8; font-size: clamp(1.06rem, 1.75vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .72rem; align-items: center; margin-top: 1.75rem; }
.studio-button { display: inline-flex; min-height: 2.9rem; justify-content: center; align-items: center; padding: .64rem 1rem; border: 1px solid transparent; border-radius: .55rem; font-weight: 730; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.primary { background: var(--blue); color: var(--white); }
.primary:hover { background: var(--blue-deep); }
.outline { color: var(--blue-deep); border-color: #acc3d9; background: transparent; }
.outline:hover { background: #e8f3fc; }
.home-hero .primary, .product-hero .primary { color: #1e2330; background: var(--orange); }
.home-hero .primary:hover, .product-hero .primary:hover { background: #ffc367; }
.home-hero .outline, .product-hero .outline { color: var(--white); border-color: #6b7b94; }
.home-hero .outline:hover, .product-hero .outline:hover { background: #233149; }

.studio-art, .product-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 16rem;
  aspect-ratio: 1.22;
  overflow: hidden;
  border: 1px solid #34445f;
  border-radius: 1.35rem;
  background:
    radial-gradient(ellipse at 29% 60%, #302230, transparent 59%),
    radial-gradient(ellipse at 72% 41%, #17395b, transparent 64%), #131e31;
}
.studio-art::before, .product-art::before, .card-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px);
  background-size: 1.75rem 1.75rem;
  mask-image: radial-gradient(ellipse, #000 5%, transparent 74%);
  content: "";
}
.studio-art img { width: min(85%, 24rem); filter: drop-shadow(0 .7rem 1.5rem #080c16b0); }
.studio-art::after, .product-art::after {
  position: absolute;
  z-index: -1;
  inset: 10%;
  border: 1px solid #a0c9f436;
  border-radius: 50%;
  transform: rotate(-24deg);
  content: "";
}

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.product-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.product-groups > section { display: flex; flex-direction: column; }
.product-group-label { margin-bottom: .7rem; color: var(--muted); font-size: 1rem; letter-spacing: 0; }
.product-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.theme-will-engine { --accent: #ffbe57; --art: #493423; --art-edge: #181c2d; }
.theme-weplus { --accent: #b4a5ff; --art: #382d69; --art-edge: #171a33; }
.theme-vectordraw { --accent: #f7a5ee; --art: #49265b; --art-edge: #211a35; }
.theme-3d-draw { --accent: #76d4ff; --art: #1e4462; --art-edge: #141f36; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); text-decoration: none; }
.product-card:hover { border-color: #8eabcc; box-shadow: 0 .4rem 1.3rem #18263c12; }
.card-art { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 9.8rem; overflow: hidden; background: radial-gradient(ellipse at center, var(--art), var(--art-edge) 78%); }
.card-icon { width: 6.8rem; height: 6.8rem; object-fit: contain; filter: drop-shadow(0 .45rem .7rem #09102090); }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 1.18rem; }
.card-copy h4 { margin-bottom: .52rem; }
.card-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.48; }
.card-link, .text-link { color: var(--blue-deep); font-weight: 700; text-underline-offset: .2em; }
.card-link { display: block; padding-top: 1.05rem; margin-top: auto; }
.product-card:hover .card-link { text-decoration: underline; text-underline-offset: .2em; }

.support-band { padding-block: 2.6rem; border-block: 1px solid #d1e3f2; background: #eaf4fb; }
.support-layout { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: space-between; align-items: center; }
.support-layout h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.support-layout p { margin-top: .6rem; color: var(--muted); }
.support-layout .actions { margin-top: 0; }

.product-hero { background: var(--night); color: var(--white); }
.product-hero .eyebrow, .product-tagline { color: var(--accent); }
.product-hero .hero-copy > p:not(.eyebrow, .product-tagline) { margin-top: .9rem; }
.product-tagline { margin-top: .7rem; font-size: clamp(1.45rem, 3.3vw, 2.45rem); font-family: var(--display); font-weight: 640; line-height: 1.14; letter-spacing: -.035em; }
.product-art { background: radial-gradient(ellipse, var(--art), var(--art-edge) 88%); }
.hero-icon { width: min(65%, 17rem); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 1rem 1.15rem #080c16a0); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.35rem; }
.feature-grid article { padding: 1.35rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--white); }
.feature-grid p { margin-top: .65rem; color: var(--muted); }
.product-example { margin: 2rem 0 0; }
.product-example img { width: 100%; max-height: 31rem; object-fit: cover; border-radius: 1rem; border: 1px solid var(--line); }
.product-example figcaption { color: var(--muted); margin-top: .55rem; }
.download-band { background: #e9f3fc; border-block: 1px solid #cedfeb; }
.download-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.1rem 1.75rem; }
.download-layout p { margin-top: .5rem; color: var(--muted); }
.download-actions { display: flex; flex-wrap: wrap; gap: .72rem; justify-self: start; }
.release-status { display: inline-block; padding: .5rem .8rem; border-radius: .5rem; border: 1px solid #b9ccdf; color: #374c64; font-weight: 700; }
.release-archive { grid-column: 1 / -1; border-top: 1px solid #bfcee0; padding-top: .9rem; }
.release-archive summary { width: max-content; max-width: 100%; cursor: pointer; font-weight: 700; }
.release-archive ul { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; }
.release-archive li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem .8rem; padding: .5rem 0; border-bottom: 1px solid #d1e0ed; }
.product-resources { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.5rem; }

.index-section h1 { font-size: clamp(3.25rem, 7vw, 5.65rem); }
.download-list { display: grid; gap: .7rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.download-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: .9rem 1.1rem; gap: .9rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.download-list h2 { font-size: 1.5rem; letter-spacing: -.035em; }
.download-list h2 a { text-decoration: none; }
.download-list h2 a:hover { text-decoration: underline; }
.download-list p { color: var(--muted); }
.product-icon { width: 3.5rem; height: 3.5rem; object-fit: contain; border-radius: .55rem; background: var(--art-edge); }

.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem 4rem; }
.contact-layout .text-link { display: inline-block; margin-top: 1.1rem; }
.studio-form { position: relative; display: grid; align-content: start; justify-items: start; gap: 1rem; padding: clamp(1rem, 3vw, 1.9rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.studio-form label { width: 100%; display: grid; gap: .3rem; font-weight: 650; }
.studio-form input, .studio-form textarea { width: 100%; min-width: 0; padding: .63rem .7rem; border: 1px solid #9aaec4; border-radius: .4rem; background: var(--paper); color: inherit; }
.studio-form textarea { resize: vertical; }
.studio-form .honeypot { width: 1px; padding: 0; }
.form-privacy { color: var(--muted); font-size: .92rem; }

.privacy-policy > * { max-width: 44rem; }
.privacy-policy h2 { margin: 2rem 0 .55rem; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.privacy-policy p { color: var(--muted); }
.privacy-policy a { color: var(--blue-deep); text-underline-offset: .18em; }

.studio-footer { background: var(--night); color: #e1e8f5; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; min-height: 6.2rem; padding-block: 1.1rem; }
.studio-footer .studio-brand strong { color: #69caf8; }
.studio-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; }
.studio-footer a:not(.studio-brand) { color: #d1ddef; text-decoration: none; }
.studio-footer a:hover:not(.studio-brand) { text-decoration: underline; text-underline-offset: .2em; }

.doc-shell { display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr); gap: 2rem; padding-block: 2.4rem 4rem; }
.doc-nav { display: grid; align-content: start; gap: .2rem; }
.doc-nav a { display: block; padding: .46rem .7rem; border-radius: .44rem; color: var(--muted); text-decoration: none; }
.doc-nav a:hover, .doc-nav a[aria-current="page"] { background: #e5f0fa; color: var(--blue-deep); }
.doc-nav a[aria-current="page"] { font-weight: 700; }
.doc-content { min-width: 0; }
.doc-content h1 { font-size: clamp(2.7rem, 6vw, 4.75rem); }
.doc-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 2rem 0 .65rem; }
.doc-content h3 { margin: 1.35rem 0 .55rem; }
.doc-content p + p { margin-top: .65rem; }
.doc-content .lede { color: var(--muted); font-size: 1.16rem; margin-top: .75rem; }
.doc-content .kicker { color: var(--blue-deep); font-size: .86rem; font-weight: 700; margin-bottom: .4rem; }
.doc-content a { color: var(--blue-deep); text-underline-offset: .16em; }
.doc-content pre { padding: 1rem; overflow-x: auto; border-radius: .55rem; color: #ebf2fb; background: var(--night); }
.doc-content :not(pre) > code { overflow-wrap: anywhere; }
.doc-content .shot { margin-block: 1rem; border-radius: .65rem; }
.table-wrap { overflow-x: auto; }
.doc-content table { width: 100%; border-collapse: collapse; }
.doc-content th, .doc-content td { padding: .52rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

@media (max-width: 63rem) {
  .product-groups { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}

@media (max-width: 45rem) {
  .hero-layout, .product-hero-layout, .contact-layout { grid-template-columns: 1fr; }
  .studio-art, .product-art { width: min(100%, 31rem); min-height: 0; aspect-ratio: 1.45; }
  .studio-art img { width: min(74%, 21rem); }
  .hero-icon { width: min(55%, 13rem); }
  .feature-grid, .download-layout { grid-template-columns: minmax(0, 1fr); }
  .release-archive ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-shell { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .doc-nav { display: flex; flex-wrap: wrap; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
}

@media (max-width: 35rem) {
  .studio-wrap, .wrap { width: calc(100% - 2rem); }
  .header-layout { display: grid; align-content: center; gap: .45rem; padding-block: .65rem; }
  .studio-nav { gap: .45rem .85rem; }
  .studio-nav a { font-size: .87rem; }
  .studio-nav .nav-download { padding: .3rem .55rem; }
  .product-grid, .release-archive ul { grid-template-columns: minmax(0, 1fr); }
  .download-list li { grid-template-columns: auto minmax(0, 1fr); }
  .download-list .studio-button { grid-column: 2; justify-self: start; }
}
