:root {
  --ink: #0a1226;
  --ink-2: #0f1c3a;
  --text: #1d2a44;
  --muted: #61708c;
  --primary: #2f5bff;
  --primary-600: #2348d8;
  --primary-050: #eef3ff;
  --cyan: #12c8c0;
  --accent: #ff9a76;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --line: #e2e9f5;
  --line-strong: #d3deee;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --shadow-sm: 0 8px 24px rgba(18, 35, 74, 0.06);
  --shadow-md: 0 20px 48px rgba(18, 35, 74, 0.1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul,
dl {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3a67ff 0%, #2f5bff 55%, #2449d8 100%);
  box-shadow: 0 14px 30px rgba(47, 91, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(47, 91, 255, 0.34);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  --head-fg: #ffffff;
  --head-muted: rgba(255, 255, 255, 0.72);
  --logo-accent: #ffb547;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  --head-fg: var(--ink);
  --head-muted: #5a6884;
  --logo-accent: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(10, 18, 38, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--head-fg);
  transition: color 0.3s ease;
}

.brand-mark {
  flex: none;
  border-radius: 10px;
}

.brand-logo {
  flex: none;
  height: 38px;
  width: auto;
}

.brand {
  position: relative;
}

.brand-logo--on-light {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.site-header.is-scrolled .brand-logo--on-dark,
.site-header.menu-open .brand-logo--on-dark {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo--on-light,
.site-header.menu-open .brand-logo--on-light {
  opacity: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text small {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.6;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--head-muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--logo-accent);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--head-fg);
}

.desktop-nav a.is-active {
  color: var(--head-fg);
}

.desktop-nav a.is-active::after,
.desktop-nav a:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled .nav-toggle,
.site-header.menu-open .nav-toggle {
  border-color: var(--line);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--head-fg);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile nav ---------- */

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 17, 38, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 104px 28px 32px;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(10, 18, 38, 0.18);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 0.7, 0.2, 1), visibility 0.4s;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.mobile-nav nav a span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.mobile-nav-foot p {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(76px + clamp(46px, 7vw, 92px)) 0 clamp(64px, 8vw, 108px);
  overflow: hidden;
  color: #fff;
  background: #0a1226;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% 18%, rgba(47, 91, 255, 0.34), transparent 62%),
    radial-gradient(760px 620px at 12% 82%, rgba(18, 200, 192, 0.14), transparent 65%),
    linear-gradient(155deg, #070f22 0%, #0b1732 48%, #122550 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 28% 68%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.8px 1.8px at 46% 16%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 62% 82%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.6px 1.6px at 84% 34%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 92% 72%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, 0.4), transparent);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 68% 40%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 68% 40%, #000 0%, transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.68);
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ef0e3;
  box-shadow: 0 0 0 5px rgba(126, 240, 227, 0.14);
}

.hero-eyebrow .sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.1vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.text-gradient {
  background: linear-gradient(96deg, #8ff3e7 0%, #c8d7ff 48%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 545px;
  margin-top: 26px;
  font-size: clamp(15px, 1.35vw, 16.5px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 46px);
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 560px;
}

.hero-facts .fact dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}

.hero-facts .fact dd {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
}

.hero-facts .fact dd em {
  margin-left: 3px;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}

.hero-halo {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 219, 166, 0.22), transparent 66%);
  filter: blur(12px);
}

.hero-art {
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
  animation: heroFloat 9s ease-in-out infinite;
}

.orbit-group {
  transform-origin: 50% 50%;
  animation: orbitSpin 46s linear infinite;
}

.stars {
  animation: starTwinkle 5.5s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes starTwinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(4, 10, 26, 0.25);
  animation: chipFloat 6s ease-in-out infinite alternate;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chip-1 { top: 13%; left: 0; }
.chip-2 { bottom: 20%; left: 3%; animation-delay: -2s; }
.chip-3 { top: 30%; right: 0; animation-delay: -4s; }

@keyframes chipFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(244, 247, 252, 0.06));
  pointer-events: none;
}

/* ---------- Section basics ---------- */

.section {
  padding: clamp(64px, 8.4vw, 112px) 0;
}

.section-about,
.section-contact,
.section-ai {
  background: #fff;
}

.section-services,
.section-process {
  background: var(--bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--primary);
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--ink);
}

.section-head {
  max-width: 760px;
}

.section-lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.section-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 32px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.section-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--primary);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-copy > p {
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 32px;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.about-points .check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-050);
}

.about-points strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.about-points small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.profile-card {
  position: relative;
  padding: clamp(26px, 3.4vw, 38px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(560px 300px at 88% -10%, rgba(47, 91, 255, 0.55), transparent 65%),
    radial-gradient(460px 280px at 0% 105%, rgba(18, 200, 192, 0.18), transparent 60%),
    linear-gradient(155deg, #0b1836 0%, #10224a 100%);
  box-shadow: 0 30px 60px rgba(10, 18, 38, 0.2);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
  pointer-events: none;
}

.profile-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}

.mini-mark {
  flex: none;
  border-radius: 6px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid rgba(126, 240, 227, 0.28);
  border-radius: 999px;
  background: rgba(126, 240, 227, 0.09);
  font-size: 12px;
  color: #9ff6ec;
  white-space: nowrap;
}

.profile-card h3 {
  position: relative;
  margin-top: 26px;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: 0.01em;
}

.profile-en {
  position: relative;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42);
}

.profile-list {
  position: relative;
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.profile-list dt {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.profile-list dd {
  margin: 0;
  font-size: 13.5px;
  text-align: right;
  color: rgba(255, 255, 255, 0.9);
}

.profile-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.profile-tags span {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #cbd9f2;
  box-shadow: var(--shadow-md);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: var(--primary);
  background: linear-gradient(150deg, #eef3ff 0%, #e6fbf8 100%);
  border: 1px solid #e2edff;
}

.service-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #b3bfd4;
}

.service-card h3 {
  margin-top: 22px;
  font-size: 19.5px;
  color: var(--ink);
}

.service-card p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  background: #f2f6fd;
  font-size: 11.5px;
  color: #5b6b88;
}

.service-card.is-cta {
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(47, 91, 255, 0.5), transparent 65%),
    linear-gradient(150deg, #0c1832 0%, #142a57 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.service-card.is-cta .service-icon {
  color: #7ef0e3;
  background: rgba(126, 240, 227, 0.1);
  border-color: rgba(126, 240, 227, 0.22);
}

.service-card.is-cta .service-no {
  color: rgba(255, 255, 255, 0.32);
}

.service-card.is-cta h3 {
  color: #fff;
}

.service-card.is-cta p {
  color: rgba(255, 255, 255, 0.62);
}

.service-card.is-cta::after {
  background: linear-gradient(90deg, #7ef0e3, #8fa6ff);
}

.cta-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 22px;
  color: #7ef0e3;
}

/* ---------- Why (dark) ---------- */

.section-dark {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 500px at 82% 0%, rgba(47, 91, 255, 0.28), transparent 62%),
    radial-gradient(700px 420px at 8% 100%, rgba(18, 200, 192, 0.12), transparent 62%),
    linear-gradient(150deg, #081124 0%, #0c1a36 100%);
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 70% 60%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.8px 1.8px at 90% 25%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.section-dark .container {
  position: relative;
}

.section-dark .eyebrow {
  color: #7ef0e3;
}

.section-dark h2 {
  color: #fff;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.62);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(40px, 5vw, 60px);
}

.advantage-item {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.3s ease;
}

.advantage-item:hover {
  border-top-color: #7ef0e3;
}

.adv-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
}

.advantage-item h3 {
  margin-top: 16px;
  font-size: 19px;
  color: #fff;
}

.advantage-item p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.process-step {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: #cddbf4;
  box-shadow: var(--shadow-md);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-050);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--primary);
}

.process-step h3 {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink);
}

.process-step p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.link-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.link-arrow span {
  transition: transform 0.25s ease;
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ---------- Contact ---------- */

.contact-info {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-info h2 {
  margin-bottom: 18px;
}

.contact-info .section-lead {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.qr-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 40px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-frame {
  width: clamp(180px, 34vw, 240px);
  height: clamp(180px, 34vw, 240px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-title {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.qr-desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 28px;
  color: rgba(255, 255, 255, 0.62);
  background: #070f22;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 40px;
}

.brand-footer {
  color: #fff;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.46);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 13.5px;
}

.footer-nav a {
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
  flex: 0 0 auto;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.footer-disclaimer {
  max-width: 640px;
  text-align: right;
  line-height: 1.7;
}

/* ---------- AI demo ---------- */

.ai-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 4.6vw, 64px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 56px);
}

.ai-copy {
  min-width: 0;
}

.ai-copy-title {
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.45;
  color: var(--ink);
}

.ai-points {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.ai-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ai-point-no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(150deg, #eef3ff 0%, #e6fbf8 100%);
  border: 1px solid #e2edff;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--primary);
}

.ai-points strong {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
}

.ai-points p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.ai-cta {
  margin-top: 28px;
}

.ai-panel {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(560px 340px at 84% -10%, rgba(47, 91, 255, 0.42), transparent 62%),
    radial-gradient(420px 320px at 4% 104%, rgba(18, 200, 192, 0.16), transparent 62%),
    linear-gradient(158deg, #070f22 0%, #0b1732 52%, #122550 100%);
  box-shadow: 0 30px 70px rgba(10, 18, 38, 0.24);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.ai-panel-art {
  position: absolute;
  top: -18%;
  right: -14%;
  z-index: -1;
  width: min(78%, 420px);
  height: auto;
  pointer-events: none;
}

.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ai-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ai-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-id-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ai-id-text strong {
  font-size: 14.5px;
  letter-spacing: 0.02em;
}

.ai-id-text small {
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.48);
}

.ai-badge {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, 0.38);
  background: rgba(255, 181, 71, 0.12);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #ffd79a;
  white-space: nowrap;
}

.ai-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 264px;
  margin-top: 18px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ai-thread::-webkit-scrollbar {
  width: 4px;
}

.ai-thread::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.ai-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: aiMsgIn 0.35s ease both;
}

.ai-msg.is-user {
  justify-content: flex-end;
}

.ai-msg-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(126, 240, 227, 0.12);
  color: #7ef0e3;
  font-size: 11px;
}

.ai-bubble {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: break-word;
}

.ai-bubble p + p {
  margin-top: 8px;
}

.ai-bubble .ai-hint {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.ai-msg.is-user .ai-bubble {
  border-radius: 14px 14px 4px 14px;
  border-color: rgba(47, 91, 255, 0.5);
  background: linear-gradient(140deg, #2f5bff 0%, #2449d8 100%);
  color: #fff;
}

.ai-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 18px;
}

.ai-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: aiBlink 1s infinite ease-in-out;
}

.ai-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiBlink {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-suggest {
  margin-top: 18px;
}

.ai-suggest-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ai-chip {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.2s ease;
}

.ai-chip:hover {
  border-color: rgba(126, 240, 227, 0.5);
  background: rgba(126, 240, 227, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.ai-chip.is-done {
  border-color: rgba(126, 240, 227, 0.32);
  color: rgba(255, 255, 255, 0.5);
}

.ai-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease;
}

.ai-form:focus-within {
  border-color: rgba(126, 240, 227, 0.5);
}

.ai-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  color: #fff;
}

.ai-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.ai-input:focus {
  outline: none;
}

.ai-send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, #3a67ff 0%, #2449d8 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.ai-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47, 91, 255, 0.42);
}

.ai-disclaimer {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- Reveal animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 32px;
  }

  .hero-visual {
    min-height: 380px;
  }

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

  .about-grid {
    gap: 40px;
  }

  .ai-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 34px;
  }

  .ai-panel {
    order: -1;
  }

  .ai-thread {
    max-height: 240px;
  }
}

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

  .site-header {
    height: 68px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: calc(68px + 46px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 8px;
  }

  .hero-art {
    width: min(78%, 430px);
  }

  .float-chip {
    font-size: 11.5px;
    padding: 7px 13px;
  }

  .chip-1 { top: 8%; left: 2%; }
  .chip-2 { bottom: 12%; left: 4%; }
  .chip-3 { top: 22%; right: 2%; }

  .hero-facts {
    margin-top: 36px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 36px);
  }

  .service-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .process-step {
    padding: 24px 20px;
  }

  .link-arrow {
    align-self: flex-start;
  }

  .profile-list > div {
    gap: 12px;
  }

  .ai-panel {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .ai-thread {
    max-height: 280px;
  }

  .ai-bubble {
    max-width: 100%;
    font-size: 13.5px;
  }

  .ai-chip {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: clamp(32px, 10.2vw, 40px);
    letter-spacing: -0.03em;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 14.5px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-facts {
    gap: 20px 28px;
  }

  .hero-facts .fact dd {
    font-size: 18px;
  }

  .hero-art {
    width: min(86%, 360px);
  }

  .float-chip {
    display: none;
  }

  .about-points {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-grid {
    gap: 32px;
  }

  .profile-card {
    border-radius: 20px;
  }

  .profile-list > div {
    flex-direction: column;
    gap: 2px;
  }

  .profile-list dd {
    text-align: left;
  }

  .service-card {
    padding: 24px;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .advantage-item {
    padding: 18px 0 6px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .contact-card {
    border-radius: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-nav {
    gap: 10px 22px;
  }

  .mobile-nav {
    padding-top: 92px;
  }

  .ai-panel {
    padding: 16px 13px;
  }

  .ai-avatar {
    width: 36px;
    height: 36px;
  }

  .ai-badge {
    font-size: 10px;
    letter-spacing: 0;
  }

  .ai-form {
    padding-left: 13px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
