:root {
  --ink: #071018;
  --ink-2: #0f1c24;
  --paper: #f4f7f8;
  --line: rgba(15, 28, 36, 0.1);
  --muted: #5b6b75;
  --brand: #0f766e;
  --brand-2: #0e7490;
  --accent: #d9f99d;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(7, 16, 24, 0.12);
  --font-sans: "Hiragino Sans GB", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-display: "Hiragino Mincho ProN", "Songti SC", "STSong", "Noto Serif SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--paper);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 248, 0.82);
  border-bottom: 1px solid rgba(7, 16, 24, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.brand small {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  background: rgba(15, 118, 110, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: flex-end;
  padding: 72px 0 80px;
  color: #ecfeff;
  background:
    radial-gradient(900px 500px at 18% 20%, rgba(45, 212, 191, 0.28), transparent 55%),
    radial-gradient(700px 420px at 88% 70%, rgba(14, 165, 233, 0.2), transparent 50%),
    linear-gradient(155deg, #042f2e 0%, #0b3b45 42%, #071018 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 35% 55%, #000 15%, transparent 72%);
  animation: gridPulse 10s ease-in-out infinite;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(217, 249, 157, 0.12);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-brand {
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 108px);
  line-height: 0.95;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.hero-lead {
  margin: 28px 0 0;
  max-width: 640px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: #ccfbf1;
}

.hero-desc {
  margin: 16px 0 0;
  max-width: 560px;
  color: rgba(204, 251, 241, 0.72);
  font-size: 16px;
}

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

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.service {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.service::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.08);
}

.service-index {
  font-family: var(--font-display);
  font-size: 42px;
  color: rgba(15, 118, 110, 0.28);
}

.service h3 {
  margin: 18px 0 0;
  font-size: 24px;
}

.service p {
  margin: 12px 0 0;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.service ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.service li {
  padding: 6px 0;
  color: #334155;
  font-size: 14px;
}

.service li::before {
  content: "·";
  margin-right: 8px;
  color: var(--brand);
  font-weight: 700;
}

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

.work {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(7, 16, 24, 0.04);
  transition: transform 0.18s ease;
}

.work:hover {
  transform: translateY(-4px);
}

.work-cover {
  position: relative;
  min-height: 210px;
  padding: 22px;
  color: #ecfeff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-cover.a {
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 249, 157, 0.35), transparent 40%),
    linear-gradient(145deg, #0f766e, #115e59 55%, #042f2e);
}

.work-cover.b {
  background:
    radial-gradient(circle at 20% 10%, rgba(125, 211, 252, 0.35), transparent 42%),
    linear-gradient(145deg, #0e7490, #155e75 50%, #082f49);
}

.work-cover.c {
  background:
    radial-gradient(circle at 70% 30%, rgba(253, 230, 138, 0.28), transparent 40%),
    linear-gradient(145deg, #334155, #0f172a 60%, #020617);
}

.work-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.work-cover h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.04em;
}

.work-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.work-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

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

.flow-item {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.flow-item strong {
  display: block;
  font-size: 28px;
  font-family: var(--font-display);
  color: var(--brand);
}

.flow-item h3 {
  margin: 10px 0 0;
  font-size: 18px;
}

.flow-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact {
  border-radius: 28px;
  padding: 42px;
  color: #ecfeff;
  background:
    radial-gradient(600px 260px at 15% 20%, rgba(45, 212, 191, 0.25), transparent 55%),
    linear-gradient(135deg, #0f766e, #0e7490 55%, #115e59);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
}

.contact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.contact p {
  margin: 12px 0 0;
  color: rgba(236, 254, 255, 0.82);
}

.contact-box {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-box div {
  margin-top: 10px;
  font-size: 15px;
}

.contact-box div:first-child {
  margin-top: 0;
}

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.footer a:hover {
  color: var(--brand);
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.8;
  }
}

@media (max-width: 960px) {
  .services,
  .works,
  .flow {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 64px;
  }

  .nav {
    display: none;
  }
}
