
:root {
  color-scheme: dark;
  --bg: #0a0f19;
  --surface: #101825;
  --surface-light: #141f30;
  --border: #202d40;
  --text: #f2f6fc;
  --muted: #94a3b8;
  --blue: #398cff;
  --cyan: #70ceff;
  --radius: 12px;
  --container: 1080px;
  --font: "DM Sans", sans-serif;
  --display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-wrap: break-word;
}

body, button, input, textarea, select {
  font-family: var(--font);
}

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

button, input, textarea, select {
  font-size: 16px;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-top: 100px;
}

/* HEADER */

.header {
  width: min(1160px, calc(100% - 48px));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #142943;
  color: var(--cyan);
  border: 1px solid #2c4d6d;
  border-radius: 9px;
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand strong {
  font-family: var(--display);
  font-size: 16px;
}

.brand small {
  margin-top: 3px;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 700;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navigation a,
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color .2s;
}

.navigation a:hover,
.footer-links a:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 17px;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.button:hover {
  background: #2376e7;
  border-color: #2376e7;
}

.button-small {
  min-height: 40px;
  padding: 9px 13px;
}

.button-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: #3b5675;
}

/* HERO */

.hero {
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 65px;
  padding-top: 64px;
  padding-bottom: 65px;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #5bd8ad;
}

.hero h1,
.section-heading h2,
.commission-copy h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -2px;
}

.hero h1 {
  margin: 23px 0 18px;
  font-size: clamp(42px, 5vw, 62px);
}

.hero h1 span,
.section-heading h2 span,
.commission-copy h2 span {
  color: var(--cyan);
}

.hero-description {
  max-width: 455px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: #7f91a9;
  font-size: 11px;
}

.note-line {
  width: 25px;
  height: 1px;
  background: var(--cyan);
}

/* PREVIEW */

.hero-preview {
  min-width: 0;
  padding: 18px;
  border: 1px solid #28384d;
  border-radius: 14px;
  background: #0e1725;
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.preview-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #1a3e63;
  color: white;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
}

.preview-logo span {
  color: var(--cyan);
}

.preview-top > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preview-top strong {
  font-family: var(--display);
  font-size: 13px;
}

.preview-top small {
  color: var(--muted);
  font-size: 10px;
}

.preview-status {
  margin-left: auto;
  color: #70dcb4;
  font-size: 9px;
  letter-spacing: .8px;
}

.preview-banner {
  margin-top: 18px;
  min-height: 170px;
  padding: 25px;
  border: 1px solid #294663;
  border-radius: 9px;
  background: linear-gradient(125deg, #142c47, #14213a 70%, #18223b);
}

.preview-banner > span {
  color: #8dcfff;
  font-size: 9px;
  letter-spacing: 2px;
}

.preview-banner h2 {
  margin: 10px 0;
  font-family: var(--display);
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.preview-banner p {
  margin: 0;
  color: #b0bfd2;
  font-size: 10px;
}

.preview-channels {
  display: grid;
  gap: 4px;
  padding: 15px 3px 7px;
  color: #a7b6ca;
  font-size: 11px;
}

.preview-channels > span {
  margin: 8px 0 3px;
  color: #71869f;
  font-size: 9px;
  letter-spacing: 1px;
}

.preview-channels > div {
  padding: 5px 9px;
  border-radius: 5px;
}

.preview-channels > div:hover {
  background: #17263a;
}

.preview-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

/* SECTION HEADINGS */

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

.section-heading h2,
.commission-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(33px, 4vw, 43px);
  letter-spacing: -1.5px;
}

.section-heading > p {
  max-width: 365px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

/* SERVICES */

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

.service-card {
  min-width: 0;
  position: relative;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}

.service-card:hover {
  border-color: #365779;
  transform: translateY(-3px);
}

.service-number {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #62758e;
  font-size: 10px;
}

.service-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 9px;
  background: #172c45;
  color: var(--cyan);
  font-size: 20px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 17px;
}

.service-card p {
  min-height: 61px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.service-card > a {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

/* MARKETPLACE */

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.filter {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.filter.active {
  border-color: #31587c;
  background: #14263b;
  color: #a5ddff;
}

.search {
  width: 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1521;
  color: var(--muted);
}

.search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search input::placeholder {
  color: #708199;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}

.product-card:hover {
  border-color: #385a7d;
  transform: translateY(-3px);
}

.product-art {
  min-height: 145px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--art-a), var(--art-b));
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid #ffffff25;
  border-radius: 50%;
}

.product-art::after {
  width: 125px;
  height: 125px;
}

.art-symbol {
  position: relative;
  z-index: 1;
  color: white;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border: 1px solid #ffffff30;
  border-radius: 5px;
  background: #08111d8c;
  color: white;
  font-size: 8px;
  letter-spacing: .6px;
}

.product-body {
  padding: 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8ca2bb;
  font-size: 9px;
}

.product-body h3 {
  margin: 9px 0 5px;
  font-family: var(--display);
  font-size: 17px;
}

.product-body > p {
  min-height: 57px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.product-buy {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #31587c;
  border-radius: 7px;
  background: #142940;
  color: #b5e4ff;
  cursor: pointer;
  font-size: 11px;
}

.product-buy:hover {
  background: #1c3b5b;
}

.marketplace-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0d1521;
}

.marketplace-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.marketplace-bottom a {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 35px 15px;
  border: 1px dashed #33455d;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

/* COMMISSION FORM */

.commission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 65px;
  align-items: start;
  padding-bottom: 100px;
}

.commission-copy {
  padding-top: 12px;
}

.commission-copy > p {
  max-width: 400px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.commission-copy ul {
  display: grid;
  gap: 11px;
  padding: 0;
  list-style: none;
  color: #b8c8da;
  font-size: 12px;
}

.commission-copy li::first-letter {
  color: var(--cyan);
}

.commission-form {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.commission-form h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
}

.commission-form > p {
  margin: 5px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.commission-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  color: #c5d1e0;
  font-size: 12px;
}

.commission-form input,
.commission-form select,
.commission-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #29394e;
  border-radius: 7px;
  background: #0b1320;
  color: var(--text);
  font-size: 13px;
}

.commission-form textarea {
  resize: vertical;
}

.commission-form input::placeholder,
.commission-form textarea::placeholder {
  color: #718199;
}

.form-submit {
  width: 100%;
}

.form-message {
  color: #80dfbc;
  font-size: 12px !important;
}

.form-disclaimer {
  display: block;
  margin-top: 10px;
  color: #718199;
  font-size: 10px;
  text-align: center;
}

/* FOOTER */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 25px;
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid var(--border);
}

.footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.footer-links a {
  font-size: 11px;
}

.copyright {
  width: 100%;
  color: #718199;
  font-size: 10px;
}

/* TABLET */

@media (max-width: 850px) {
  .navigation {
    gap: 15px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(40px, 5.5vw, 52px);
  }

  .hero-preview {
    padding: 13px;
  }

  .section {
    padding-top: 75px;
  }

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

  .commission {
    gap: 25px;
  }

  .service-card p,
  .product-body > p {
    min-height: 0;
  }
}

/* MOBILE */

@media (max-width: 620px) {
  html {
    scroll-padding-top: 75px;
  }

  .container,
  .header {
    width: calc(100% - 32px);
  }

  .header {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

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

  .brand small {
    font-size: 8px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }

  .navigation {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #101825;
    box-shadow: 0 12px 30px #0005;
  }

  .navigation.open {
    display: flex;
  }

  .navigation a {
    padding: 12px;
  }

  .header-cta {
    min-height: 38px;
    padding: 8px 10px;
    gap: 6px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 55px;
    padding-bottom: 25px;
    min-height: 0;
  }

  .hero h1 {
    margin-top: 19px;
    font-size: clamp(42px, 11vw, 56px);
    letter-spacing: -1.8px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-buttons .button {
    width: 100%;
  }

  .hero-note {
    margin-top: 22px;
  }

  .hero-preview {
    padding: 13px;
  }

  .preview-banner {
    min-height: 150px;
    padding: 20px;
  }

  .preview-banner h2 {
    font-size: 29px;
  }

  .section {
    padding-top: 65px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 22px;
  }

  .section-heading h2,
  .commission-copy h2 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .section-heading > p {
    font-size: 12px;
  }

  .service-grid,
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card p {
    margin-bottom: 14px;
  }

  .catalog-controls {
    align-items: stretch;
    flex-direction: column;
  }

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

  .filter {
    min-width: 0;
    padding: 8px 4px;
    font-size: 11px;
  }

  .search {
    width: 100%;
  }

  .product-art {
    min-height: 155px;
  }

  .product-body {
    padding: 16px;
  }

  .product-body > p {
    min-height: 0;
  }

  .marketplace-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

  .commission {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 65px;
  }

  .commission-copy {
    padding-top: 0;
  }

  .commission-form {
    padding: 18px;
  }

  .footer {
    gap: 13px;
  }

  .footer > p {
    width: 100%;
  }

  .footer-links {
    width: 100%;
    margin-left: 0;
    gap: 17px;
  }

  .copyright {
    margin-top: 3px;
  }
}

/* SMALL PHONES */

@media (max-width: 360px) {
  .container,
  .header {
    width: calc(100% - 24px);
  }

  .brand strong {
    font-size: 12px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .header-cta {
    max-width: 94px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: 39px;
  }

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

  .filter {
    border: 1px solid var(--border);
  }
}

/* ACCESSIBILITÀ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
