
* {
  box-sizing: border-box;
}

:root {
  --ink: #252943;
  --muted: #7c8198;
  --blue: #5274ed;
  --purple: #9270e8;
  --yellow: #ffda70;
  --paper: #ffffff;
  --soft: #f7f8ff;
  --line: #e9eaf4;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
}

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

button,
input {
  font: inherit;
}

/* Header */

.topbar {
  height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  font-weight: 800;
  font-size: 19px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 5px 13px #6676df35;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .09em;
}

.brand-dot,
.heading-dot {
  color: var(--blue);
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 12px;
  color: var(--muted);
}

.main-nav a {
  transition: color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  font-weight: 700;
}

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

.demo-pill {
  padding: 7px 11px;
  border-radius: 99px;
  background: #f0efff;
  color: #7764ca;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.avatar-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e9eaff;
  color: #655ec5;
  font-weight: 800;
}

/* Hero */

.hero {
  min-height: 510px;
  padding: 75px 9% 85px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 17px;
  color: #858aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

.eyebrow-line {
  display: inline-block;
  width: 23px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: clamp(43px, 5.3vw, 68px);
  line-height: 1.25;
  letter-spacing: -.06em;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-description {
  margin: 23px 0 28px;
  color: #777d94;
  font-size: 13px;
  line-height: 2.1;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 27px;
  padding: 14px 20px;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--blue), var(--purple));
  color: white;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px #6676df35;
  transition: .2s;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px #6676df45;
}

.hero-caption {
  margin-top: 28px;
  color: #a1a5b7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.caption-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

/* Hero artwork */

.hero-art {
  height: 320px;
  position: relative;
  border-radius: 30px;
  background: linear-gradient(140deg, #edf1ff, #f6efff 55%, #eaf8ff);
  overflow: hidden;
}

.art-orbit {
  position: absolute;
  border: 1px solid #aeb8f0;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-one {
  width: 390px;
  height: 170px;
  top: 75px;
  left: 5%;
}

.orbit-two {
  width: 310px;
  height: 130px;
  top: 95px;
  left: 16%;
  transform: rotate(35deg);
  border-color: #cbb8ef;
}

.art-sphere {
  position: absolute;
  width: 135px;
  height: 135px;
  left: 34%;
  top: 83px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff 0, #b9c6ff 20%, #7385ed 62%, #514ebd 100%);
  box-shadow: 20px 25px 50px #6b70c744;
}

.art-cube {
  position: absolute;
  width: 85px;
  height: 85px;
  right: 13%;
  top: 55px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5d4ff, #a17ae9);
  transform: rotate(25deg);
  box-shadow: 14px 20px 35px #9872e944;
}

.art-donut {
  position: absolute;
  width: 75px;
  height: 75px;
  left: 15%;
  bottom: 35px;
  border: 19px solid #ffcf83;
  border-radius: 50%;
  transform: rotate(-25deg);
  box-shadow: 8px 12px 22px #dca75b30;
}

.art-sticker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.sticker-one {
  top: 28px;
  left: 28px;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--yellow);
  color: #725a28;
  font-size: 11px;
  transform: rotate(-8deg);
}

.sticker-two {
  right: 32px;
  bottom: 38px;
  color: #8b71dc;
  font-size: 36px;
}

.hero-art-note {
  position: absolute;
  right: 25px;
  top: 25px;
  color: #8186b0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

/* Gallery */

.gallery-section {
  padding: 70px 7% 85px;
  background: #fafaff;
  border-top: 1px solid #f0f0f8;
}

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

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.04em;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

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

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

.filter {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: white;
  color: #747990;
  font-size: 11px;
  cursor: pointer;
  transition: .2s;
}

.filter:hover {
  border-color: #c5cafa;
  color: var(--blue);
}

.filter.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.search-box {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #8c91a2;
}

.search-box input {
  width: 140px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 11px;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid #ececf4;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: .22s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #d9dcfa;
  box-shadow: 0 15px 35px #343d7310;
}

.project-art {
  height: 205px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.project-art::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -55px;
  bottom: -75px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
}

.art-illustration {
  background: linear-gradient(135deg, #f9dce9, #fcebd0);
}

.art-3d {
  background: linear-gradient(135deg, #dce5ff, #eee0ff);
}

.art-coding {
  background: linear-gradient(135deg, #d9f2ef, #dce7fa);
}

.art-game {
  background: linear-gradient(135deg, #ffe6d7, #f5dafa);
}

.art-craft {
  background: linear-gradient(135deg, #e5efda, #fff0d4);
}

.shape {
  position: relative;
  z-index: 1;
  font-size: 75px;
  filter: drop-shadow(0 12px 12px #29304a18);
  transition: transform .25s;
}

.project-card:hover .shape {
  transform: scale(1.12) rotate(-5deg);
}

.project-info {
  padding: 17px 17px 16px;
}

.project-category {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.project-info h3 {
  margin: 8px 0 10px;
  font-size: 15px;
  letter-spacing: -.02em;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #85899b;
  font-size: 10px;
}

.project-author {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mini-avatar {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eeefff;
  color: #6564bb;
  font-size: 9px;
  font-weight: 800;
}

.like-count {
  color: #85899b;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 45px 15px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.preview-notice {
  margin: 30px 0 0;
  color: #a0a4b4;
  text-align: center;
  font-size: 10px;
}

/* About */

.about-strip {
  padding: 55px 9%;
  display: flex;
  align-items: center;
  gap: 35px;
  background: linear-gradient(110deg, #f0f2ff, #f7f0ff);
}

.about-symbol {
  width: 85px;
  height: 85px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 25px;
  background: white;
  color: var(--purple);
  font-size: 48px;
  box-shadow: 0 10px 25px #786bd018;
}

.about-copy .eyebrow {
  margin-bottom: 9px;
}

.about-strip h2 {
  margin: 0 0 12px;
  font-size: 27px;
  letter-spacing: -.04em;
}

.about-strip p:not(.eyebrow) {
  margin: 0;
  color: #737991;
  font-size: 12px;
  line-height: 2;
}

/* Footer */

footer {
  padding: 25px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0a4b4;
  font-size: 9px;
  letter-spacing: .12em;
}

.footer-brand {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .09em;
}

/* Detail dialog */

.project-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: 85vh;
  overflow-y: auto;
  border: 0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 25px 80px #20233333;
}

.project-dialog::backdrop {
  background: #171a2a88;
  backdrop-filter: blur(4px);
}

.dialog-close {
  float: right;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f0f1fa;
  color: var(--ink);
  font-size: 21px;
  cursor: pointer;
}

.dialog-art {
  height: 220px;
  display: grid;
  place-items: center;
  margin: 15px 0;
  border-radius: 14px;
  font-size: 90px;
}

.dialog-copy h2 {
  margin: 10px 0;
}

.dialog-copy p {
  color: #73788a;
  font-size: 13px;
  line-height: 1.9;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dialog-actions button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  cursor: pointer;
}

.dialog-actions button:first-child {
  border-color: #e2e4ff;
  background: #f0f1ff;
  color: #535fc5;
}

/* Tablet */

@media (max-width: 850px) {
  .hero {
    padding: 55px 7%;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-art {
    height: 260px;
  }

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

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

  .search-box input {
    width: 220px;
  }
}

/* Mobile */

@media (max-width: 560px) {
  .topbar {
    height: 65px;
    padding: 0 5%;
  }

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

  .main-nav {
    gap: 13px;
    font-size: 10px;
  }

  .demo-pill {
    display: none;
  }

  .avatar-button {
    width: 31px;
    height: 31px;
  }

  .hero {
    padding: 48px 6% 55px;
    gap: 28px;
  }

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

  .hero-art {
    height: 215px;
    border-radius: 22px;
  }

  .art-sphere {
    width: 100px;
    height: 100px;
    top: 58px;
  }

  .art-cube {
    width: 65px;
    height: 65px;
  }

  .art-donut {
    width: 55px;
    height: 55px;
    border-width: 14px;
  }

  .gallery-section {
    padding: 48px 5% 60px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

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

  .project-art {
    height: 145px;
  }

  .project-info {
    padding: 12px;
  }

  .project-info h3 {
    font-size: 13px;
  }

  .project-meta {
    font-size: 9px;
  }

  .shape {
    font-size: 58px;
  }

  .filters {
    gap: 6px;
  }

  .filter {
    padding: 7px 10px;
    font-size: 10px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .about-strip {
    padding: 38px 6%;
    align-items: flex-start;
    gap: 18px;
  }

  .about-symbol {
    width: 55px;
    height: 55px;
    border-radius: 17px;
    font-size: 32px;
  }

  .about-strip h2 {
    font-size: 22px;
  }

  .about-strip p:not(.eyebrow) {
    font-size: 11px;
  }

  footer {
    padding: 20px 5%;
    gap: 12px;
    font-size: 8px;
  }

  .desktop-only {
    display: none;
  }

  .project-dialog {
    padding: 20px;
  }
}
