/* ============================================================
   AI메이트 — Sections
   ============================================================ */

/* ============================================================
   HERO — three variants
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(167, 139, 250, 0.22), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(108, 25, 255, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--s-8);
}
.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint);
  position: relative;
}
.hero-tag-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--s-10);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: var(--s-10);
  color: var(--ink-500);
  font-size: 14px;
}
.hero-trust-stars { color: var(--primary); letter-spacing: 2px; font-size: 16px; }

/* ---- Hero variant container ---- */
.hero-stage > .hero-variant { display: none; }
[data-hero="floating"] .hero-stage > [data-variant="floating"] { display: grid; }
[data-hero="flow"]     .hero-stage > [data-variant="flow"]     { display: block; }
[data-hero="demo"]     .hero-stage > [data-variant="demo"]     { display: grid; }

/* =========================
   VARIANT A — Floating Cards (Hexa-style)
   ========================= */
.hv-floating {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hv-floating .copy { max-width: 580px; }
.hv-floating h1 .accent {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.hv-floating h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.18em;
  background: var(--primary-tint);
  z-index: -1;
  border-radius: 4px;
}
.hv-floating .lead { margin-top: var(--s-6); }

.float-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(110% 80% at 70% 20%, #8B4FFF 0%, #6C19FF 45%, #4B0DC2 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 40px 80px rgba(75, 13, 194, 0.25);
}
.float-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 90%, rgba(255, 255, 255, 0.18), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.10), transparent 50%);
  pointer-events: none;
}
.float-stage .grid-noise {
  position: absolute;
  inset: 0;
  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: 40px 40px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 80%);
}

/* Floating chips */
.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(30, 10, 60, 0.18), 0 2px 6px rgba(30, 10, 60, 0.08);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  animation: float 6s var(--ease) infinite;
  will-change: transform;
}
.float-chip .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary);
  flex-shrink: 0;
}
.float-chip .ic svg { width: 18px; height: 18px; }
.float-chip .label-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 2px;
}
.float-chip.c1 { top: 8%;  left: 6%;  animation-delay: 0s; }
.float-chip.c2 { top: 22%; right: 6%; animation-delay: -1.5s; }
.float-chip.c3 { bottom: 28%; left: 4%; animation-delay: -3s; }
.float-chip.c4 { bottom: 8%; right: 8%; animation-delay: -4.5s; }
.float-chip.c-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 22px 26px;
  border-radius: 22px;
  animation: none;
}
.float-chip.c-center .big {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.float-chip.c-center .sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

@media (max-width: 920px) {
  .hv-floating { grid-template-columns: 1fr; }
  .float-stage { max-width: 520px; margin: 0 auto; }
}

/* =========================
   VARIANT B — Centered + Flow Diagram
   ========================= */
.hv-flow {
  text-align: center;
}
.hv-flow .copy {
  max-width: 880px;
  margin: 0 auto;
}
.hv-flow h1 .accent { color: var(--primary); }
.hv-flow h1 .accent .underline {
  background-image: linear-gradient(90deg, var(--primary-tint), var(--accent-soft));
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
  background-position: 0 88%;
  padding: 0 6px;
}
.hv-flow .lead { margin-top: var(--s-6); }
.hv-flow .hero-cta-row { justify-content: center; }
.hv-flow .hero-trust { justify-content: center; }

.flow-stage {
  position: relative;
  margin-top: var(--s-16);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px);
  background: var(--surface);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.flow-graph {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(8px, 1.5vw, 20px);
}
.flow-node {
  background: var(--bg-tint);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 16px 18px;
  text-align: left;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.flow-node.input  { background: #FFF7E8; border-color: #F5E6BD; }
.flow-node.brain  {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 36px var(--primary-glow);
}
.flow-node.output { background: #E6FBEF; border-color: #B8EDD0; }
.flow-node .ic {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.06);
  margin-bottom: 8px;
}
.flow-node.brain .ic { background: rgba(255,255,255,0.18); color: #fff; }
.flow-node .ic svg { width: 18px; height: 18px; }
.flow-node .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2px;
}
.flow-node .title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.flow-node.brain .title { font-size: 16px; }
.flow-node .sub { font-size: 12px; opacity: 0.7; margin-top: 2px; }

.flow-arrow {
  position: relative;
  width: 100%;
  min-width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
}
.flow-arrow svg { width: 100%; height: 100%; overflow: visible; }
.flow-arrow .track {
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  fill: none;
}
.flow-arrow .pulse {
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 12 100;
  animation: flow-pulse 2.2s linear infinite;
}
@keyframes flow-pulse {
  0%   { stroke-dashoffset: 110; }
  100% { stroke-dashoffset: 0; }
}
.flow-arrow .head {
  fill: var(--primary);
}

.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px dashed var(--border-strong);
}
.flow-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-full);
  background: var(--bg-tint);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}
.flow-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

@media (max-width: 820px) {
  .flow-graph {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow-arrow {
    height: 32px;
    transform: rotate(90deg);
    width: 32px;
    margin: 0 auto;
  }
}

/* =========================
   VARIANT C — Split + Mini chat-to-flow demo
   ========================= */
.hv-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hv-demo .copy { max-width: 540px; }
.hv-demo h1 .accent { color: var(--primary); }

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
}
.demo-card-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.demo-card-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E5E1F2;
}
.demo-card-chrome .label {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.demo-msg {
  background: var(--bg-tint);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-900);
  max-width: 88%;
}
.demo-msg.user {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
}
.demo-msg .typed::after {
  content: "▌";
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
  color: var(--primary);
}
.demo-msg.user .typed::after { color: #fff; }
@keyframes blink { 50% { opacity: 0; } }

.demo-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-divider::before, .demo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.demo-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-tint);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.demo-step .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.demo-step.done .num { background: var(--success); }
.demo-step.active {
  background: var(--primary-tint);
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.demo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 600;
}
.demo-meta .ok {
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo-meta .ok::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

@media (max-width: 920px) {
  .hv-demo { grid-template-columns: 1fr; }
}

/* ============================================================
   Marquee — Trust strip
   ============================================================ */
.trust-strip {
  padding: 28px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  white-space: nowrap;
}
.trust-strip .group {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  animation: marquee 30s linear infinite;
  padding-right: var(--s-12);
}
.trust-strip:hover .group { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: -0.01em;
}
a.trust-pill { transition: color var(--dur-fast) var(--ease); }
a.trust-pill:hover { color: var(--primary); }
a.trust-pill:hover .dot { transform: scale(1.5); }
.trust-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}

/* ============================================================
   Problem section
   ============================================================ */
.problem {
  background: var(--bg-tint);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.problem-quote {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink-900);
}
.problem-quote::before { content: "“"; color: var(--primary); margin-right: 2px; }
.problem-quote::after  { content: "”"; color: var(--primary); margin-left: 2px; }
.problem-sub { font-size: 14px; color: var(--ink-500); line-height: 1.6; }
.problem-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.problem-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
@media (max-width: 720px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-quote { font-size: 18px; }
}

/* ============================================================
   Solution section
   ============================================================ */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.solution-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.solution-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.solution-item .step {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
}
.solution-item .step-title {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 4px 0;
  letter-spacing: -0.02em;
}
.solution-item .step-desc { color: var(--ink-500); font-size: 15px; line-height: 1.6; }

.solution-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(80% 80% at 50% 50%, #fff 0%, var(--bg-tint) 60%, var(--bg-tint-2) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.solution-visual .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
}
.solution-visual .orb-1 { width: 60%; height: 60%; background: var(--primary-tint); top: -10%; left: -10%; }
.solution-visual .orb-2 { width: 50%; height: 50%; background: var(--accent-soft); bottom: -10%; right: -10%; }
.solution-visual .cyl {
  position: absolute;
  width: 60%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 20px 40px rgba(108, 25, 255, 0.3));
  animation: rotate-slow 18s linear infinite;
}
@keyframes rotate-slow {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg); }
  50%      { transform: translate(-50%, -50%) rotate(6deg); }
}

@media (max-width: 920px) {
  .solution-grid { grid-template-columns: 1fr; }
  .solution-visual { max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   Services section
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 40% at 100% 0%, var(--primary-tint), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 22px;
}
.service-card h3 { margin-bottom: 12px; max-width: 22ch; }
.service-card .desc {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.65;
  max-width: 36ch;
  margin: 0;
}
.service-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}
.service-card .tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--bg-tint);
  border-radius: var(--r-full);
  padding: 6px 12px;
}
.service-card .ic-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-indigo) 100%);
  opacity: 0.05;
  pointer-events: none;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover .ic-bg { transform: scale(1.15); opacity: 0.10; }

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 260px; padding: var(--s-8); }
}

/* ============================================================
   Process section
   ============================================================ */
.process {
  background: var(--bg-tint);
  position: relative;
}
.process-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  position: relative;
}
.process-rail::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(90deg,
    var(--primary-soft) 0 8px,
    transparent 8px 16px);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.process-step .dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary-soft);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
  position: relative;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.process-step:hover .dot {
  transform: translateY(-4px);
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-pop);
}
.process-step .step-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.process-step .step-detail {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
  max-width: 18ch;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .process-rail { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .process-rail::before { display: none; }
}
@media (max-width: 460px) {
  .process-rail { grid-template-columns: 1fr; }
}

/* ============================================================
   Portfolio / Case studies
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.case-cover {
  aspect-ratio: 16 / 11;
  background: var(--bg-tint);
  position: relative;
  overflow: hidden;
}
.case-cover.purple {
  background: linear-gradient(135deg, #8B4FFF 0%, #6C19FF 50%, #4B0DC2 100%);
}
.case-cover.lavender {
  background: linear-gradient(135deg, #EBE0FF 0%, #C8B8FF 100%);
}
.case-cover.indigo {
  background: linear-gradient(135deg, #5B4FE0 0%, #4F46E5 50%, #312E81 100%);
}
.case-cover .label-strip {
  position: absolute;
  top: 16px;
  left: 16px;
  height: 28px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.case-cover .mock {
  position: absolute;
  inset: 32px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: 0 16px 40px rgba(20, 5, 60, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-cover .mock .row {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-tint);
}
.case-cover .mock .row.w-2 { width: 60%; }
.case-cover .mock .row.w-3 { width: 75%; }
.case-cover .mock .row.tall { height: 28px; background: var(--primary-tint); }
.case-cover .mock .row.brand { height: 14px; width: 40%; background: var(--primary); }
.case-cover .mock .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  flex: 1;
}
.case-cover .mock .grid-2 > div {
  background: var(--bg-tint);
  border-radius: 6px;
}
.case-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.case-body .domain {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.case-body h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 0;
}
.case-body .summary {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0;
}
.case-meta {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.case-meta .stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.case-meta .stat-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-top: 2px;
}
.case-meta .stat-value .unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  margin-left: 2px;
}
@media (max-width: 920px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .case-grid { grid-template-columns: 1fr; } }

/* ============================================================
   About section
   ============================================================ */
.about {
  background: var(--bg-tint);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(180deg, #1A0F3D 0%, #0F0828 100%);
  box-shadow: var(--shadow-lg);
}
.about-signature {
  position: absolute;
  inset: 0;
  background-image: url('assets/brand-signature.png');
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 8, 40, 0.65) 100%);
}
.about-portrait {
  position: absolute;
  bottom: 22px;
  left: 22px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: url('assets/profile.png') center/cover, #fff;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.about-stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.about-stamp .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}
.about-caption {
  position: absolute;
  bottom: 22px;
  right: 22px;
  color: #fff;
  text-align: right;
  z-index: 1;
}
.about-caption .name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.about-caption .role { font-size: 13px; opacity: 0.8; margin-top: 2px; }

.about-copy h2 { margin-bottom: var(--s-6); }
.about-copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-700);
  margin: 0 0 20px 0;
}
.about-copy p:last-of-type { color: var(--ink-500); font-size: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-10);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border-strong);
}
.about-stat .num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.about-stat .num .unit {
  font-size: 18px;
  color: var(--ink-700);
  margin-left: 4px;
  font-weight: 700;
}
.about-stat .lbl {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 2px;
  font-weight: 600;
}

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 440px; margin: 0 auto; }
}

/* ============================================================
   FAQ section
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.faq-item.open {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.faq-q .ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-med) var(--ease);
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.faq-item.open .faq-q .ic {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}
.faq-a-inner {
  padding: 0 24px 22px 24px;
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.7;
  border-top: 1px dashed var(--border);
  padding-top: 18px;
  margin-top: 0;
}
@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  padding: clamp(60px, 7vw, 96px) 0 clamp(60px, 7vw, 96px);
}
.cta-card {
  position: relative;
  background: linear-gradient(135deg, #4B0DC2 0%, #6C19FF 50%, #8B4FFF 100%);
  border-radius: var(--r-2xl);
  padding: clamp(56px, 7vw, 96px) clamp(32px, 5vw, 80px);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(75, 13, 194, 0.32);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 80% 20%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(40% 30% at 10% 90%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  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: 50px 50px;
  mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-inner .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.cta-inner h2 {
  color: #fff;
  margin-bottom: var(--s-6);
}
.cta-inner p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--s-10) 0;
  line-height: 1.6;
}
.cta-card .btn-primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.cta-card .btn-primary:hover {
  background: #fff;
  color: var(--primary-deep);
  filter: brightness(0.96);
}
.cta-card .btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.5) inset;
}
.cta-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8) inset, var(--shadow-md);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: var(--s-10);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.cta-meta .item { display: inline-flex; align-items: center; gap: 8px; }
.cta-meta .item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .logo { color: var(--ink-900); }
.footer-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-500);
}
.footer-meta a:hover { color: var(--primary); }
.footer-copy {
  font-size: 12px;
  color: var(--ink-300);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Email request modal
   ============================================================ */
.email-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.email-modal[hidden] { display: none; }
.email-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 40, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: emailFade 240ms var(--ease);
}
.email-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 100px rgba(20, 5, 60, 0.36);
  animation: emailIn 320ms var(--ease-out);
}
@keyframes emailFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes emailIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.email-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  font-size: 15px;
  background: var(--bg-tint);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.email-modal-close:hover {
  background: var(--primary-tint);
  color: var(--primary);
}
.email-modal-body .eyebrow { margin-bottom: var(--s-3); }
.email-modal-body h3 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 10px 0;
  letter-spacing: -0.022em;
}
.email-modal-lead {
  font-size: 15px;
  color: var(--ink-500);
  margin: 0 0 22px 0;
  line-height: 1.6;
}
.email-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.email-modal-form input[type="email"] {
  height: 52px;
  padding: 0 18px;
  background: var(--bg-tint);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink-900);
  font-weight: 500;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.email-modal-form input[type="email"]::placeholder { color: var(--ink-300); }
.email-modal-form input[type="email"]:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-tint);
}
.email-modal-form input[name="_honey"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.email-modal-submit {
  height: 52px;
  width: 100%;
}
.email-modal-submit[data-loading="1"] {
  pointer-events: none;
  opacity: 0.72;
}
.email-modal-error {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: var(--error);
  font-weight: 600;
}
.email-modal-success {
  text-align: center;
  padding: 8px 0 4px;
}
.email-modal-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 30px;
  font-weight: 800;
  box-shadow: var(--shadow-pop);
}
.email-modal-success h3 { margin: 0 0 8px 0; font-size: 22px; }
.email-modal-success p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-500);
}
body.modal-open { overflow: hidden; }

/* ============================================================
   Free automation diagnostic
   ============================================================ */
.diagnose-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.diagnose-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.diag-opt {
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-full);
  background: var(--bg-tint);
  border: 1.5px solid var(--border-strong);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.diag-opt:hover { border-color: var(--primary-soft); color: var(--primary); transform: translateY(-1px); }
.diag-opt.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px var(--primary-glow);
}
.diag-opt.on::before { content: "✓ "; font-weight: 800; }

.diagnose-result {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px dashed var(--border-strong);
  text-align: center;
}
.diag-empty { color: var(--ink-500); font-size: 15px; font-weight: 600; }
.diag-stat-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.diag-stat-value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1;
}
.diag-stat-value strong {
  font-size: clamp(48px, 9vw, 76px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.diag-stat-unit { font-size: 0.5em; color: var(--ink-500); font-weight: 700; }
.diag-stat-sub {
  margin: 16px 0 0;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.6;
}
.diag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

/* Share toast */
.diag-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-900);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  z-index: 200;
}
.diag-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
