:root {
  --bg: #f6f8fc;
  --bg-soft: #eef4ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #1f2a37;
  --muted: #667085;
  --primary: #5b8cff;
  --primary-deep: #3f6ef0;
  --secondary: #8fd3ff;
  --accent: #c8b6ff;
  --line: #e6eaf2;
  --shadow-sm: 0 12px 32px rgba(31, 42, 55, 0.06);
  --shadow-md: 0 20px 50px rgba(31, 42, 55, 0.1);
  --max: 1180px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(720px 320px at 8% 12%, rgba(143, 211, 255, 0.38), transparent 60%),
    radial-gradient(760px 360px at 92% 10%, rgba(200, 182, 255, 0.32), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 45%, #f4f7fc 100%);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 360px;
  height: 360px;
  top: 80px;
  right: -100px;
  background: rgba(91, 140, 255, 0.08);
}

body::after {
  width: 300px;
  height: 300px;
  left: -60px;
  bottom: 120px;
  background: rgba(200, 182, 255, 0.12);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(238, 244, 255, 0.75) 100%);
}

.kicker {
  display: inline-block;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1,
h2,
h3,
p {
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #182230;
}

h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #202939;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #253044;
}

.lead,
.muted {
  color: var(--muted);
}

.lead {
  font-size: 18px;
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(230, 234, 242, 0.9);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  color: #1d2735;
}

.brand-script {
  display: inline-block;
  font-family: "Segoe Script", "Segoe Print", "Bradley Hand", "Lucida Handwriting", "Brush Script MT", cursive;
  font-size: 2.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #1b2432;
  transform: rotate(-4deg);
  transform-origin: left center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(91, 140, 255, 0.12);
  white-space: nowrap;
}

.brand:hover .brand-script {
  color: var(--primary-deep);
}

.brand-script-footer {
  font-size: 1.85rem;
  opacity: 0.94;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(91, 140, 255, 0.25);
}

.brand-text {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: #526075;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--primary-deep);
}

.site-nav a.btn,
.site-nav a.btn-sm,
.site-nav a.btn.btn-sm,
.site-nav a.btn:hover,
.site-nav a.btn-sm:hover,
.site-nav a.btn.btn-sm:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: #223047;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 22px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
  box-shadow: 0 14px 28px rgba(91, 140, 255, 0.22);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(91, 140, 255, 0.28);
  filter: brightness(1.02);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-deep);
  border-color: rgba(91, 140, 255, 0.16);
  box-shadow: none;
}

.btn-ghost:hover {
  box-shadow: 0 14px 28px rgba(31, 42, 55, 0.08);
}

.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 6px;
}

.hero-content h1 {
  max-width: 820px;
}

.hero-content h1::after {
  content: " SOFTWARE × AI × DESIGN";
  display: block;
  margin-top: 16px;
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.45em;
  color: rgba(91, 140, 255, 0.42);
  font-weight: 700;
}

.hero-panel,
.card,
.cta-box,
.service-intro,
.faq-item {
  background: var(--surface);
  border: 1px solid rgba(230, 234, 242, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 30px;
  padding-bottom: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 211, 255, 0.45) 0%, transparent 70%);
}

.hero-panel::after {
  content: "AI";
  position: absolute;
  right: -8px;
  bottom: -4px;
  font-size: clamp(92px, 10vw, 132px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
  white-space: nowrap;
  color: rgba(91, 140, 255, 0.09);
  z-index: 0;
  pointer-events: none;
}

.hero-panel ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #5f6f86;
}

.hero-model {
  margin-top: 18px;
  padding: 14px 14px 10px;
  border-radius: 22px;
  border: 1px solid rgba(91, 140, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(242, 247, 255, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: clamp(240px, 23vw, 300px);
}

.hero-model::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(91, 140, 255, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(200, 182, 255, 0.18) 0%, transparent 34%);
  pointer-events: none;
}

.hero-model-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #50627b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-model-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.12);
}

.hero-model-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin-top: 18px;
  height: 100%;
  flex: 1;
  min-height: clamp(210px, 20vw, 260px);
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 30px;
}

.hero-metrics {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hero-metrics li {
  min-width: 0;
  min-height: 132px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.92) 100%);
  border: 1px solid rgba(230, 234, 242, 0.95);
  box-shadow: 0 14px 34px rgba(31, 42, 55, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-metrics li::before {
  content: "";
  width: 42px;
  height: 2px;
  display: block;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 140, 255, 0.9), rgba(200, 182, 255, 0.35));
}

.hero-metrics li::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.hero-metrics strong {
  display: block;
  font-size: clamp(28px, 2.6vw, 36px);
  color: var(--primary-deep);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.hero-metrics span {
  color: #56657a;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  margin-top: auto;
}

.service-intro {
  max-width: 920px;
  margin: 0 auto 44px;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #101827 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22);
}

.service-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(91, 140, 255, 0.22), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  pointer-events: none;
}

.service-intro::after {
  content: "RUNNING...";
  position: absolute;
  right: 24px;
  bottom: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.08);
}

.terminal-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.terminal-dots {
  display: inline-flex;
  gap: 8px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots span:nth-child(1) {
  background: #fb7185;
}

.terminal-dots span:nth-child(2) {
  background: #fbbf24;
}

.terminal-dots span:nth-child(3) {
  background: #34d399;
}

.terminal-title {
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: Consolas, "SFMono-Regular", "Cascadia Code", "Courier New", monospace;
}

.terminal-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 28px 34px;
}

.terminal-prompt {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #7dd3fc;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.8;
  font-family: Consolas, "SFMono-Regular", "Cascadia Code", "Courier New", monospace;
}

.typewriter-text {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 1;
  color: #e2e8f0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.8;
  letter-spacing: 0.01em;
  min-height: 108px;
  font-family: Consolas, "SFMono-Regular", "Cascadia Code", "Courier New", monospace;
  font-weight: 600;
  white-space: normal;
}

.typewriter-text::after {
  content: "▋";
  margin-left: 4px;
  color: #7dd3fc;
  animation: blink 0.85s steps(1) infinite;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 28px;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(91, 140, 255, 0.7), rgba(200, 182, 255, 0.7));
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 140, 255, 0.22);
}

.card p {
  color: #667085;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.timeline li {
  position: relative;
  padding: 10px 0 10px 28px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 20px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(91, 140, 255, 0.12);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  display: block;
}

.cta {
  padding-top: 24px;
}

.cta-box {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 182, 255, 0.3) 0%, transparent 70%);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 52px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.site-footer h3 {
  font-size: 16px;
  color: #2a3445;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .cards-3,
  .cards-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 88px 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .menu-toggle {
    display: inline-block;
  }

  .brand-script {
    font-size: 1.9rem;
  }

  .brand-script-footer {
    font-size: 1.65rem;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-content h1::after,
  .service-intro::after {
    display: none;
  }

  .hero-panel::after {
    right: -4px;
    bottom: -2px;
    font-size: clamp(72px, 22vw, 96px);
  }

  .hero-model {
    margin-top: 18px;
    padding: 12px 12px 8px;
    flex: initial;
  }

  .hero-model-canvas {
    margin-top: 16px;
    height: 160px;
    min-height: 160px;
    border-radius: 16px;
  }

  .terminal-bar {
    min-height: 46px;
    padding: 0 16px;
  }

  .terminal-body {
    padding: 22px 18px 24px;
    gap: 10px;
  }

  .hero-metrics li,
  .service-intro,
  .card,
  .hero-panel,
  .cta-box {
    border-radius: 20px;
  }

  .hero-metrics {
    margin-top: 20px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .typewriter-text {
    font-size: 18px;
    min-height: 124px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
