/*
 * YouForge 업무 자동화 메인 섹션
 * 기존 styles.css와 충돌하지 않도록 automation-* 범위로 제한했습니다.
 */

.automation-showcase,
.automation-showcase * {
  box-sizing: border-box;
}

.automation-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 112px;
  color: #12243a;
  background: #f3f7fb;
}

.automation-showcase::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0 0 auto;
  height: 850px;
  background:
    radial-gradient(circle at 78% 20%, rgba(35, 161, 255, 0.28), transparent 29%),
    radial-gradient(circle at 12% 14%, rgba(52, 104, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #041428 0%, #082d59 54%, #075baa 100%);
}

.automation-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.automation-grid-bg {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: 850px;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.automation-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.automation-orb-one {
  top: 165px;
  right: -170px;
  width: 420px;
  height: 420px;
  background: rgba(27, 153, 255, 0.14);
}

.automation-orb-two {
  top: 520px;
  left: -130px;
  width: 300px;
  height: 300px;
  background: rgba(67, 113, 255, 0.13);
}

.automation-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 64px;
  min-height: 700px;
  padding: 104px 0 132px;
}

.automation-copy {
  position: relative;
  z-index: 2;
}

.automation-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #7dd4ff;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 1.65px;
}

.automation-kicker span {
  display: block;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: #1db4ff;
  box-shadow: 0 0 14px rgba(29, 180, 255, 0.7);
}

.automation-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4.35vw, 66px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -2.8px;
}

.automation-copy h2 em {
  color: #72d5ff;
  font-style: normal;
}

.automation-lead {
  max-width: 620px;
  margin: 25px 0 0;
  color: #c8def1;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: -0.2px;
}

.automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.automation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.automation-button-primary {
  gap: 9px;
  color: #073465;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 10, 30, 0.24);
}

.automation-button-primary:hover {
  box-shadow: 0 16px 36px rgba(0, 10, 30, 0.3);
}

.automation-button-ghost {
  color: #e5f5ff;
  border-color: rgba(188, 226, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.automation-button-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
}

.automation-button:focus-visible,
.automation-final-actions a:focus-visible,
.automation-trust-links a:focus-visible,
.automation-business-card a:focus-visible {
  outline: 3px solid #78d8ff;
  outline-offset: 4px;
}

.automation-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.automation-proof li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 21px;
  border-left: 1px solid rgba(198, 228, 255, 0.24);
}

.automation-proof li:first-child {
  padding-left: 0;
  border-left: 0;
}

.automation-proof strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.automation-proof span {
  color: #9dbbd5;
  font-size: 11px;
  font-weight: 700;
}

.automation-visual {
  position: relative;
  z-index: 1;
  margin: 0;
  transform: perspective(1500px) rotateY(-3deg) rotateX(1deg);
  transform-origin: center;
}

.automation-image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(188, 225, 255, 0.3);
  border-radius: 26px;
  background: #eef8ff;
  box-shadow:
    0 34px 90px rgba(0, 10, 33, 0.44),
    0 0 0 8px rgba(255, 255, 255, 0.04);
}

.automation-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  border-radius: inherit;
}

.automation-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 330px;
  object-fit: cover;
}

.automation-image-frame figcaption {
  position: absolute;
  left: 22px;
  bottom: 19px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(183, 225, 255, 0.42);
  border-radius: 999px;
  color: #eaf7ff;
  background: rgba(5, 32, 65, 0.82);
  box-shadow: 0 8px 20px rgba(2, 22, 48, 0.22);
  backdrop-filter: blur(9px);
  font-size: 11px;
  font-weight: 800;
}

.automation-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37e3a2;
  box-shadow: 0 0 0 5px rgba(55, 227, 162, 0.13);
}

.automation-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  padding: 13px 15px;
  border: 1px solid rgba(188, 225, 255, 0.35);
  border-radius: 13px;
  color: #eaf6ff;
  background: rgba(5, 35, 70, 0.88);
  box-shadow: 0 18px 40px rgba(0, 18, 48, 0.3);
  backdrop-filter: blur(12px);
}

.automation-floating-card > span:not(.automation-check-mark) {
  color: #78d7ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.automation-floating-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.automation-floating-card small {
  display: block;
  margin-top: 3px;
  color: #9fbed8;
  font-size: 9px;
}

.automation-floating-time {
  top: -34px;
  right: 34px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.automation-floating-check {
  right: -26px;
  bottom: -33px;
}

.automation-check-mark {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #043b65;
  background: #4de5aa;
  font-size: 18px;
  font-weight: 900;
}

.automation-pain {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding: 56px;
  border: 1px solid #dce8f3;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 55, 95, 0.12);
}

.automation-section-heading {
  max-width: 760px;
}

.automation-section-heading > p {
  margin: 0 0 9px;
  color: #0872ce;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 1.45px;
}

.automation-section-heading h3 {
  margin: 0;
  color: #102138;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -1.45px;
}

.automation-section-heading > span {
  display: block;
  margin-top: 12px;
  color: #647386;
  font-size: 15px;
  line-height: 1.75;
}

.automation-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.automation-pain-card {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  padding: 25px;
  border: 1px solid #dce8f3;
  border-radius: 18px;
  background: linear-gradient(155deg, #fbfdff 0%, #eef6fd 100%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.automation-pain-card:hover {
  transform: translateY(-5px);
  border-color: #8ec9f6;
  box-shadow: 0 16px 34px rgba(28, 83, 133, 0.12);
}

.automation-card-label {
  color: #0872ce;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 1.25px;
}

.automation-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 18px 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #0872ce, #12a7ed);
  box-shadow: 0 10px 22px rgba(8, 114, 206, 0.2);
  font-size: 19px;
  font-weight: 900;
}

.automation-pain-card h4,
.automation-solution-card h4 {
  margin: 0;
  color: #13263d;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.automation-pain-card p,
.automation-solution-card p {
  margin: 10px 0 0;
  color: #637286;
  font-size: 14px;
  line-height: 1.72;
}

.automation-pain-card small {
  display: block;
  margin-top: 16px;
  color: #3d6f9d;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
}

.automation-transform {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 35px;
  margin: 60px 0 0;
  padding: 32px 42px;
  border: 1px solid #cce3f6;
  border-radius: 22px;
  background: linear-gradient(135deg, #e6f3ff, #f8fcff 50%, #e9f8f3);
}

.automation-transform-item span {
  color: #76889a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.automation-transform-item strong {
  display: block;
  margin-top: 8px;
  color: #304259;
  font-size: 17px;
  line-height: 1.55;
}

.automation-transform-after {
  text-align: right;
}

.automation-transform-after span {
  color: #07846a;
}

.automation-transform-after strong {
  color: #075f50;
}

.automation-transform-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0872ce;
}

.automation-transform-arrow i {
  width: 28px;
  height: 1px;
  background: #77b9e9;
}

.automation-transform-arrow b {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0872ce, #10a7ee);
  box-shadow: 0 12px 26px rgba(8, 114, 206, 0.24);
  font-size: 13px;
}

.automation-solutions,
.automation-process {
  padding-top: 104px;
}

.automation-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.automation-solution-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 19px;
  min-height: 250px;
  padding: 30px;
  border: 1px solid #d9e6f1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(21, 57, 92, 0.07);
}

.automation-solution-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #0872ce;
  background: #e5f3ff;
  font-size: 13px;
  font-weight: 900;
}

.automation-solution-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.automation-solution-card li {
  padding: 7px 10px;
  border-radius: 999px;
  color: #28628f;
  background: #eef6fc;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.automation-process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: automation-step;
}

.automation-process-list li {
  position: relative;
  display: flex;
  gap: 17px;
  min-height: 175px;
  padding: 26px;
  border-radius: 18px;
  color: #dbeeff;
  background: #092e59;
  box-shadow: 0 15px 36px rgba(5, 34, 69, 0.13);
}

.automation-process-list li > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #043562;
  background: #70d4ff;
  font-size: 12px;
  font-weight: 900;
}

.automation-process-list strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 17px;
}

.automation-process-list p {
  margin: 9px 0 0;
  color: #b8cfe3;
  font-size: 13px;
  line-height: 1.7;
}

.automation-trust {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
  gap: 52px;
  align-items: center;
  overflow: hidden;
  margin-top: 104px;
  padding: 58px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(31, 167, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #04162c, #082f5e 64%, #084e8d);
  box-shadow: 0 24px 60px rgba(9, 44, 82, 0.18);
}

.automation-trust-copy > p {
  margin: 0 0 11px;
  color: #65cfff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.35px;
}

.automation-trust-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.33;
  letter-spacing: -1.3px;
}

.automation-trust-copy > span {
  display: block;
  margin-top: 17px;
  color: #bfd4e7;
  font-size: 14px;
  line-height: 1.78;
}

.automation-trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 25px;
}

.automation-trust-links a {
  color: #73d4ff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.automation-business-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(191, 224, 251, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px rgba(0, 13, 35, 0.3);
}

.automation-business-card::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -65px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(24, 163, 235, 0.11);
}

.automation-business-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.automation-business-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0872ce, #0fb3ee);
  box-shadow: 0 9px 20px rgba(8, 114, 206, 0.22);
  font-size: 15px;
  font-weight: 900;
}

.automation-business-brand strong {
  display: block;
  color: #0a213b;
  font-size: 20px;
  letter-spacing: 0.6px;
}

.automation-business-brand small {
  display: block;
  margin-top: 2px;
  color: #7890a6;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.automation-business-person {
  margin-top: 27px;
}

.automation-business-person strong {
  display: block;
  color: #0a1f37;
  font-size: 27px;
  letter-spacing: 0.4px;
}

.automation-business-person span {
  display: block;
  margin-top: 5px;
  color: #0872ce;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.automation-business-card dl {
  display: grid;
  gap: 9px;
  margin: 23px 0 0;
}

.automation-business-card dl > div {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
}

.automation-business-card dt {
  color: #0872ce;
  font-size: 10px;
  font-weight: 900;
}

.automation-business-card dd {
  margin: 0;
}

.automation-business-card a {
  color: #30475f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.automation-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 28px;
  padding: 32px 38px;
  border: 1px solid #c9e2f6;
  border-radius: 20px;
  background: #e8f5ff;
}

.automation-final-cta p {
  margin: 0;
  color: #0e2742;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.automation-final-cta span {
  display: block;
  margin-top: 7px;
  color: #587187;
  font-size: 13px;
  line-height: 1.6;
}

.automation-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.automation-final-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #b8d5eb;
  border-radius: 9px;
  color: #164c79;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.automation-final-actions a:first-child {
  color: #fff;
  border-color: #0872ce;
  background: #0872ce;
}

@media (max-width: 1120px) {
  .automation-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 38px;
  }

  .automation-trust {
    gap: 35px;
    padding: 48px;
  }
}

@media (max-width: 960px) {
  .automation-showcase::before,
  .automation-grid-bg {
    height: 1120px;
  }

  .automation-hero {
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 88px 0 150px;
  }

  .automation-copy {
    max-width: 760px;
  }

  .automation-visual {
    width: min(780px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .automation-pain {
    margin-top: -60px;
  }

  .automation-pain-grid,
  .automation-process-list {
    grid-template-columns: 1fr;
  }

  .automation-pain-card,
  .automation-process-list li {
    min-height: auto;
  }

  .automation-trust {
    grid-template-columns: 1fr;
  }

  .automation-business-card {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .automation-showcase {
    padding-bottom: 78px;
  }

  .automation-container {
    width: min(100% - 30px, 1240px);
  }

  .automation-copy h2 {
    font-size: clamp(37px, 10vw, 52px);
    letter-spacing: -1.9px;
  }

  .automation-lead {
    font-size: 15px;
  }

  .automation-proof {
    row-gap: 18px;
  }

  .automation-proof li {
    min-width: 33.333%;
    padding: 0 12px;
  }

  .automation-floating-time {
    right: 10px;
  }

  .automation-floating-check {
    right: 10px;
  }

  .automation-pain {
    padding: 34px 22px;
    border-radius: 22px;
  }

  .automation-transform {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px;
  }

  .automation-transform-after {
    text-align: left;
  }

  .automation-transform-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .automation-solution-grid {
    grid-template-columns: 1fr;
  }

  .automation-solutions,
  .automation-process {
    padding-top: 78px;
  }

  .automation-trust {
    margin-top: 78px;
    padding: 35px 23px;
    border-radius: 22px;
  }

  .automation-final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 23px;
  }

  .automation-final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .automation-showcase::before,
  .automation-grid-bg {
    height: 1030px;
  }

  .automation-hero {
    padding-top: 72px;
    gap: 42px;
  }

  .automation-actions,
  .automation-button {
    width: 100%;
  }

  .automation-proof li {
    min-width: 50%;
  }

  .automation-visual {
    padding-bottom: 42px;
  }

  .automation-image-frame {
    border-radius: 18px;
  }

  .automation-image-frame img {
    min-height: 260px;
  }

  .automation-image-frame figcaption {
    left: 12px;
    bottom: 12px;
  }

  .automation-floating-time {
    display: none;
  }

  .automation-floating-check {
    right: 8px;
    bottom: 0;
  }

  .automation-section-heading h3 {
    font-size: 29px;
  }

  .automation-solution-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .automation-business-card {
    padding: 25px;
  }

  .automation-final-actions,
  .automation-final-actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-showcase *,
  .automation-showcase *::before,
  .automation-showcase *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
