/* =============== Services Page =============== */

/* Subpage Hero */
.subpage-hero {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--gradient-brand-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgb(124 58 237 / 12%) 0%, transparent 40%),
    radial-gradient(circle at 10% 100%, rgb(99 102 241 / 10%) 0%, transparent 40%);
  pointer-events: none;
}

.subpage-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--clr-primary);
  margin-bottom: var(--space-3);
  position: relative;
}

.subpage-hero h2 {
  font-size: clamp(1.8rem, 3.5vw + 0.5rem, 2.8rem);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
  line-height: 1.3;
  position: relative;
}

.subpage-hero p {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.85;
  position: relative;
}

/* Product Section */
.product-section {
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
}

.product-section:nth-of-type(odd of .product-section) {
  background: #fff;
}

.product-section:nth-of-type(even of .product-section) {
  background: var(--clr-surface);
}

/* Grid: header 좌 / visual 우 / blocks 풀너비 아래 */
.product-section__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  grid-template-areas:
    "header visual"
    "blocks blocks";
  gap: var(--space-8) clamp(var(--space-6), 4vw, var(--space-12));
  align-items: center;
}

/* Alternating: even sections - visual 좌 / header 우 */
.product-section--alt .product-section__inner {
  grid-template-areas:
    "visual header"
    "blocks blocks";
}

/* Header */
.product-section__header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-section__index {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: 0.2em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.product-section__index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--clr-primary) 0%, transparent 100%);
  max-width: 80px;
}

.product-section__title {
  font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.4rem);
  font-weight: 800;
  color: var(--clr-text);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.product-section__lead {
  font-size: var(--fs-lg);
  color: var(--clr-text);
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

.product-section__tech {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin: var(--space-3) 0 0;
  padding: var(--space-3) var(--space-4);
  background: var(--clr-surface);
  border-left: 3px solid var(--clr-primary);
  border-radius: 0 8px 8px 0;
  font-family: ui-monospace, "SF Mono", monospace;
  line-height: 1.6;
}

.product-section--alt .product-section__tech {
  background: #fff;
}

/* Visual */
.product-section__visual {
  grid-area: visual;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 30px 60px -20px rgb(15 23 42 / 22%),
    0 18px 36px -18px rgb(15 23 42 / 12%);
  border: 1px solid rgb(15 23 42 / 6%);
}

.product-section__visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Blocks: full-width 3 columns */
.product-section__blocks {
  grid-area: blocks;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.product-block {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow:
    0 1px 3px rgb(15 23 42 / 6%),
    0 4px 12px rgb(15 23 42 / 4%);
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-section--alt .product-block {
  background: var(--clr-surface);
}

.product-block:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 16px rgb(15 23 42 / 8%),
    0 16px 32px rgb(15 23 42 / 8%);
}

.product-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 36px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--clr-primary);
}

.product-block--issue::before {
  background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.product-block--solution::before {
  background: var(--gradient-brand);
}

.product-block--effect::before {
  background: linear-gradient(90deg, #22c55e, #06c755);
}

.product-block__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--clr-text);
}

.product-block--issue .product-block__label {
  color: #d97706;
}

.product-block--solution .product-block__label {
  color: var(--clr-primary);
}

.product-block--effect .product-block__label {
  color: #16a34a;
}

.product-block__body {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.85;
}

.product-block__body p {
  margin: 0;
}

.product-block__body ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.product-block__body ul li {
  position: relative;
  padding-left: 1.25rem;
}

.product-block__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgb(34 197 94 / 18%);
}

.product-block__body strong {
  color: var(--clr-text);
  font-weight: 800;
}

.product-related {
  grid-column: 1 / -1;
  margin: var(--space-6) 0 0;
  text-align: center;
}

.product-related a {
  display: inline-block;
  color: var(--clr-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  padding: var(--space-3) var(--space-6);
  border: 2px solid var(--clr-primary);
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.product-related a:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* CTA Section */
.cta-section {
  padding: clamp(64px, 8vw, 120px) 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 0%, rgb(186 230 253 / 70%) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgb(199 210 254 / 75%) 0%, transparent 60%),
    linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #e0e7ff 100%);
  color: var(--clr-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / 30%) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgb(255 255 255 / 22%) 0%, transparent 40%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.4rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--clr-text);
  position: relative;
}

.cta-section p {
  font-size: var(--fs-md);
  max-width: 640px;
  margin: 0 auto var(--space-6);
  color: var(--clr-text-muted);
  line-height: 1.85;
  position: relative;
}

.cta-section .cta-button {
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgb(99 102 241 / 32%);
  position: relative;
}

.cta-section .cta-button:hover {
  box-shadow: 0 14px 32px rgb(99 102 241 / 42%);
}

/* Responsive */
@media (width <= 992px) {
  .product-section__inner,
  .product-section--alt .product-section__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "visual"
      "blocks";
    gap: var(--space-6);
  }

  .product-section__blocks {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

@media (width <= 600px) {
  .product-block {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}
