:root {
  color-scheme: light;
  --ink: #102d35;
  --muted: #3d6d74;
  --line: rgba(0, 139, 154, 0.22);
  --paper: #b7fff2;
  --white: #ffffff;
  --cyan: #00d7d8;
  --mint: #7dffe0;
  --pink: #ff78b7;
  --hot-pink: #ff4fa3;
  --violet: #705cff;
  --shadow: 0 24px 80px rgba(0, 108, 126, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 120, 183, 0.26), transparent 260px),
    radial-gradient(circle at 92% 8%, rgba(0, 215, 216, 0.44), transparent 280px),
    linear-gradient(180deg, #8fffee 0%, #c8fff6 48%, #effffc 100%),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), #0aa6ba);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(19, 32, 47, 0.18);
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  color: rgba(0, 200, 215, 0.16);
  font-size: 120px;
  font-weight: 900;
  pointer-events: none;
}

body::before {
  content: "♪";
  left: 4vw;
  top: 18vh;
}

body::after {
  content: "39";
  right: 5vw;
  bottom: 10vh;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 42px 0 76px;
}

.section-label {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(70px, 11vw, 144px);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 10px 38px rgba(0, 200, 215, 0.22);
}

.hero-subtitle {
  margin-bottom: 24px;
  color: var(--cyan);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--hot-pink), var(--pink));
  border-color: rgba(255, 79, 163, 0.3);
  box-shadow: 0 14px 34px rgba(255, 79, 163, 0.26);
}

.button.ghost {
  color: #8d1f5a;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(255, 120, 183, 0.38);
}

.hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #07111d;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  color: var(--white);
  background: rgba(19, 32, 47, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.hero-media::before {
  content: "MIKU MIKU BEAM";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 10px;
  color: #07111d;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.projects-section,
.links-section,
.miku-section,
.contact-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

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

.miku-grid article {
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 215, 216, 0.22), rgba(255, 120, 183, 0.16)),
    var(--white);
  border: 1px solid rgba(0, 200, 215, 0.3);
  border-radius: 8px;
}

.miku-grid span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 30px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  border-radius: 8px;
  font-weight: 950;
}

.miku-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.miku-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-item h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.project-item p,
.contact-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-item a,
.project-item span {
  color: var(--hot-pink);
  font-weight: 900;
}

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

.link-grid a {
  padding: 22px;
  overflow-wrap: anywhere;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.link-grid a:hover {
  color: var(--ink);
  border-color: rgba(255, 79, 163, 0.5);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 42px;
}

footer {
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header,
  .section-heading,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 28px;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .link-grid,
  .miku-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .project-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  main,
  footer,
  .site-header {
    width: min(100% - 24px, 1120px);
  }

  .nav-links a {
    padding: 8px 6px;
    font-size: 13px;
  }

  .hero-text {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }
}
