/* ==========================================================================
   睿佰数字科技有限公司 — reebai.com
   Author: Reebai
   ========================================================================== */

:root {
  --ink: #0a1b33;
  --ink-soft: #1e3350;
  --muted: #5a6b80;
  --muted-light: #64748b;
  --line: #e4ebf4;
  --line-strong: #d3deeb;
  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --bg-mist: #eef4fb;
  --brand: #1b5cff;
  --brand-dark: #0b3fcb;
  --brand-soft: #e8efff;
  --accent: #00c6ff;
  --navy: #071426;
  --navy-2: #0b2038;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(10, 27, 51, 0.05), 0 10px 30px -18px rgba(10, 27, 51, 0.35);
  --shadow-md: 0 2px 4px rgba(10, 27, 51, 0.05), 0 24px 50px -28px rgba(10, 27, 51, 0.4);
  --shadow-lg: 0 40px 80px -40px rgba(7, 20, 38, 0.55);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

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

::selection {
  background: rgba(27, 92, 255, 0.16);
}

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

/* Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 104px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--tight {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.section-head.is-center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

h2.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 800;
}

.section-lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
}

.text-gradient {
  background: linear-gradient(100deg, #6fdcff 0%, #5b8cff 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, #2f7bff 55%, #0aa7e0 100%);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(27, 92, 255, 0.75);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px -14px rgba(27, 92, 255, 0.85);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 16px 34px -18px rgba(2, 15, 40, 0.6);
}

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

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -24px rgba(10, 27, 51, 0.5);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 18px -8px rgba(27, 92, 255, 0.65);
}

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

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted-light);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.main-nav a.is-active {
  color: var(--brand);
  font-weight: 600;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%);
}

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

.header-actions .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  background: radial-gradient(1200px 600px at 80% -10%, #123a6b 0%, transparent 55%),
    radial-gradient(900px 500px at 0% 100%, #0a2a4d 0%, transparent 60%),
    var(--navy);
  color: #e9f1ff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  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(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.18), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(111, 220, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 45, 80, 0.55);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #9fd4ff;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35e0a1;
  box-shadow: 0 0 0 4px rgba(53, 224, 161, 0.16);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
}

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.85;
  color: #b6c7dd;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #9fb3cc;
}

.hero-points svg {
  flex-shrink: 0;
  color: #4dd6ff;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 440px;
}

.visual-glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 45%, rgba(27, 92, 255, 0.4), transparent 62%);
  filter: blur(30px);
}

.visual-beam {
  position: absolute;
  left: 46%;
  top: 84px;
  bottom: 84px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(111, 220, 255, 0.55), transparent);
}

.layer-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 330px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float 7s ease-in-out infinite;
}

.layer-card.layer-1 { top: 34px; right: 0; }
.layer-card.layer-2 { top: 168px; left: 0; animation-delay: -2.2s; }
.layer-card.layer-3 { top: 302px; right: 6px; animation-delay: -4.4s; }

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

.layer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(27, 92, 255, 0.9), rgba(0, 198, 255, 0.7));
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(0, 160, 255, 0.9);
}

.layer-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.layer-desc {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: #9db2cc;
  letter-spacing: 0.02em;
}

.layer-index {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(159, 212, 255, 0.5);
}

.visual-chip {
  position: absolute;
  left: 12%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 30, 55, 0.7);
  font-size: 12px;
  color: #8fb6dd;
  backdrop-filter: blur(8px);
}

.visual-chip .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35e0a1;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(53, 224, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 224, 161, 0); }
}

/* Page hero (sub pages) -------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 70px;
  background: radial-gradient(900px 420px at 78% 0%, #133a6a 0%, transparent 60%),
    radial-gradient(700px 380px at 0% 110%, #0a2a4d 0%, transparent 60%),
    var(--navy);
  color: #e9f1ff;
}

.page-hero::before {
  content: "";
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 100% at 40% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 40% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #fff;
  font-weight: 800;
}

.page-hero p {
  max-width: 640px;
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #b6c7dd;
}

.page-hero .eyebrow {
  color: #6fdcff;
}

.page-hero .eyebrow::before {
  background: linear-gradient(90deg, #6fdcff, rgba(111, 220, 255, 0.2));
}

/* Service cards ---------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.service-card:hover::before {
  opacity: 1;
}

.card-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #64748b;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-top: 22px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--brand-soft), #f4f9ff);
  color: var(--brand);
  border: 1px solid #dbe7ff;
}

.service-card h3 {
  margin-top: 22px;
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 700;
}

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

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip-list li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12.5px;
  color: #52647a;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.card-link svg {
  transition: transform 0.25s var(--ease);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* Feature / advantage grid ----------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-item {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}

.feature-item:hover {
  border-color: #c9dcff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.feature-item .icon-tile {
  margin-top: 0;
  width: 48px;
  height: 48px;
  border-radius: 13px;
}

.feature-item h3 {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.feature-item p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* Process ---------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 8px;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 62px;
  right: -12px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.process-step:last-child::after {
  display: none;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #cfe0ff;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px -18px rgba(27, 92, 255, 0.7);
}

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

.process-step p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* Solution cards --------------------------------------------------------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #0b2038 0%, #0a1b33 60%, #071426 100%);
  color: #dbe8f8;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.solution-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.28), transparent 68%);
  transition: transform 0.5s var(--ease);
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.solution-card:hover::before {
  transform: scale(1.25);
}

.solution-card .sol-kicker {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6fdcff;
  text-transform: uppercase;
}

.solution-card h3 {
  position: relative;
  margin-top: 16px;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.solution-card p {
  position: relative;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #9fb3cc;
}

.solution-card ul {
  position: relative;
  margin-top: 22px;
  display: grid;
  gap: 9px;
}

.solution-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #c5d5e8;
}

.solution-card li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: #4dd6ff;
}

/* CTA -------------------------------------------------------------------- */
.cta-wrap {
  padding: 20px 0 104px;
}

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 58px 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0b2b6b 0%, #1b5cff 58%, #00a6d6 100%);
  color: #fff;
  box-shadow: 0 40px 80px -50px rgba(27, 92, 255, 0.9);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.cta p {
  margin-top: 12px;
  max-width: 560px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.82);
}

.cta .btn {
  flex-shrink: 0;
}

/* Stats band ------------------------------------------------------------- */
.stat-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.stat-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 38px 26px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat-item:first-child {
  border-left: 0;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Service detail blocks -------------------------------------------------- */
.service-detail {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.service-detail:first-of-type {
  border-top: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: start;
}

.detail-grid.is-reverse .detail-visual {
  order: -1;
}

.detail-kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
}

.detail-grid h2 {
  margin-top: 16px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 800;
}

.detail-grid > div > p {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.detail-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--brand);
}

.detail-visual {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, #eaf3ff 0%, transparent 65%),
    linear-gradient(170deg, #fbfdff, #f2f7fd);
}

.detail-visual .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mini-card {
  padding: 22px 20px;
  border: 1px solid #e2ecf8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px -24px rgba(10, 27, 51, 0.5);
}

.mini-card .icon-tile {
  width: 40px;
  height: 40px;
  margin-top: 0;
  border-radius: 11px;
}

.mini-card h4 {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 700;
}

.mini-card p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* About ------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--muted);
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-side {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.about-side h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
}

.about-side dl {
  margin: 22px 0 0;
}

.about-side dt {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  text-transform: uppercase;
}

.about-side dd {
  margin: 4px 0 20px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

.about-side dd:last-child {
  margin-bottom: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.value-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.value-card .value-idx {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #64748b;
}

.value-card h3 {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
}

.value-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.note-box {
  display: flex;
  gap: 16px;
  padding: 24px 26px;
  border: 1px solid #d8e6ff;
  border-radius: var(--radius);
  background: #f3f8ff;
  color: #35507a;
  font-size: 14.5px;
  line-height: 1.8;
}

.note-box svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
}

/* Contact ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact-panel h2 {
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 800;
}

.contact-panel > p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.contact-item .icon-tile {
  width: 42px;
  height: 42px;
  margin-top: 0;
  border-radius: 12px;
}

.contact-item dt {
  font-size: 12.5px;
  color: var(--muted-light);
  letter-spacing: 0.06em;
}

.contact-item dd {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.contact-item dd a:hover {
  color: var(--brand);
}

.contact-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-light);
}

.form-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.form-card h3 {
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
}

.form-card .form-sub {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field .req {
  color: #e5484d;
  margin-left: 2px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fbfdff;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 92, 255, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a9b6c6;
}

.form-card .btn {
  width: 100%;
  margin-top: 26px;
}

.form-hint {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-light);
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1.7;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #ecfdf3;
  border: 1px solid #b7f0cb;
  color: #137a3d;
}

.form-status.is-error {
  background: #fff2f2;
  border: 1px solid #ffd0d0;
  color: #b42318;
}

/* FAQ -------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
  background: var(--navy);
  color: #9fb3cc;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 85% 0%, rgba(27, 92, 255, 0.16), transparent 65%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-sub {
  color: #6c8099;
}

.footer-brand p {
  max-width: 330px;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #8fa5bf;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.footer-col a,
.footer-col li {
  font-size: 13.5px;
  color: #8fa5bf;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #6fdcff;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: #4a6b91;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #6c8099;
}

.footer-bottom a:hover {
  color: #6fdcff;
}

/* Reveal animation ------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* Utilities -------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    width: 100%;
    height: 400px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-col.footer-contact {
    grid-column: 1 / -1;
  }

  .detail-grid {
    gap: 44px;
  }
}

@media (max-width: 900px) {
  /* Keep mobile form controls readable without focus zoom on iOS. */
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px -30px rgba(10, 27, 51, 0.6);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 15.5px;
  }

  .main-nav a.is-active::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn {
    display: none;
  }

  .service-grid,
  .solution-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }

  .process-step::after {
    display: none;
  }

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

  .detail-grid.is-reverse .detail-visual {
    order: 0;
  }

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

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 36px;
  }

  .stat-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(3) {
    border-left: 0;
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 64px 0 76px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-points {
    gap: 10px 20px;
  }

  .hero-visual {
    height: 380px;
  }

  .layer-card {
    width: calc(100% - 40px);
    padding: 15px 16px;
  }

  .layer-card.layer-1 { top: 10px; right: 0; width: 88%; }
  .layer-card.layer-2 { top: 136px; left: 0; width: 88%; }
  .layer-card.layer-3 { top: 262px; right: 0; width: 88%; }

  .visual-chip {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-lead {
    font-size: 15.5px;
  }

  .feature-grid,
  .value-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .cta-wrap {
    padding: 0 0 64px;
  }

  .cta {
    padding: 36px 26px;
    border-radius: 20px;
  }

  .cta .btn {
    width: 100%;
  }

  .form-card {
    padding: 28px 22px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .page-hero {
    padding: 56px 0 52px;
  }
}

@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;
  }
}
