/* Main-page sections only; shared components live in common.css. */
.home-page main h1,
.home-page main h2,
.home-page main h3 {
  letter-spacing: -0.045em;
  line-height: 1.3;
}
.home-page main h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 52px 35px;
  padding-block: 78px 74px;
}
.home-hero h1 {
  font-size: clamp(38px, 4.4vw, 66px);
  font-weight: 720;
}
.home-hero h1 em {
  font-style: normal;
  color: #437a58;
}
.home-lead {
  color: #627368;
  font-size: 19px;
  line-height: 1.85;
  margin-top: 28px;
}
.hero-side {
  align-self: end;
  padding-bottom: 9px;
  text-align: right;
}
.hero-side p {
  font-size: 30px;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}
.hero-side > span:last-child {
  font-size: 14px;
  color: #738075;
}
.hero-line {
  width: 52px;
  height: 3px;
  display: block;
  margin: 0 0 22px auto;
  background: #437a58;
}
.service-gateways {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 24px;
}
.gateway {
  position: relative;
  overflow: hidden;
  padding: 32px 38px;
  border-radius: 12px;
  border: 1px solid #d4dfd1;
  transition: transform 0.2s;
}
.gateway:hover {
  transform: translateY(-4px);
}
.gateway-primary {
  background: #102d37;
  color: #fff;
  border-color: #315460;
}
.gateway-primary::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -100px;
  bottom: -120px;
  border: 1px solid #92bdae40;
  border-radius: 50%;
  box-shadow:
    0 0 0 36px #92bdae0c,
    0 0 0 72px #92bdae08;
  pointer-events: none;
}
.gateway-business {
  background: #dcebd6;
  border-color: #78966a;
}
.home-business-badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: #315b3f;
  color: #fff;
  white-space: nowrap;
}
.business-section { background: #edf3e8; }
.business-capabilities, .business-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.business-capabilities article { padding: 24px; border-left: 3px solid #78966a; }
.business-capabilities article > span { font-size: 11px; color: #526a50; }
.business-capabilities h3 { margin: 16px 0 12px; font-size: 22px; }
.business-capabilities p, .business-tile p { font-size: 16px; line-height: 1.85; color: #52675b; }
.business-tile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid #a7bea0;
  border-top: 3px solid #78966a;
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s;
}
.business-tile:hover { border-color: #315b3f; }
.business-tile:focus-visible { outline: 3px solid #315b3f; outline-offset: 4px; }
.business-client { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; }
.business-client > span { color: #78966a; font-size: 13px; font-weight: 400; }
.business-tile h3 { font-size: 24px; }
.business-tags { margin-top: auto; font-size: 13px; color: #315b3f; }
.business-tile .project-action { padding-top: 18px; border-top: 1px solid #dce4da; }
.business-clients { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; font-size: 14px; color: #52675b; }
.gateway-web {
  background: #eaf0e5;
}
.gateway-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 32px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.gateway-primary .gateway-top > span:last-child {
  color: #a9c1c7;
}
.gateway h2 {
  font-size: clamp(29px, 2.8vw, 38px);
}
.gateway p {
  margin-top: 18px;
  font-size: 17px;
  opacity: 0.8;
}
.gateway-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #98afa44d;
  font-size: 15px;
}
.gateway-primary .gateway-link {
  color: #c7f36b;
}
.gateway-link b {
  font-size: 24px;
}
.home-section,
.automation-section {
  padding-block: 92px;
}
.automation-section {
  background: #102d37;
  color: #fff;
}
.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 42px;
  margin-bottom: 45px;
}
.home-section-heading > p {
  font-size: 17px;
  line-height: 1.85;
  color: #667c6b;
}
.automation-section .eyebrow {
  color: #c7f36b;
}
.automation-section .home-section-heading > p {
  color: #b3c7ce;
}
.capability-grid,
.web-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.capability-grid {
  border: 1px solid #36505a;
  border-radius: 10px;
  overflow: hidden;
}
.capability-grid article {
  padding: 28px 25px;
}
.capability-grid article + article {
  border-left: 1px solid #36505a;
}
.capability-grid article > span,
.web-services article > span {
  font-size: 13px;
  color: #83a994;
}
.capability-grid h3,
.web-services h3 {
  font-size: 22px;
  margin: 20px 0 15px;
}
.capability-grid p {
  font-size: 16px;
  color: #b3c7ce;
}
.capability-grid ul {
  padding: 20px 0 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: #c9dfd2;
}
.capability-grid li + li {
  margin-top: 6px;
}
.capability-grid li::before {
  content: "+";
  color: #c7f36b;
  margin-right: 8px;
}
.home-project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 55px 0 24px;
}
.home-project-heading h3 {
  font-size: 24px;
}
.section-more {
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.section-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #245d45;
  border-radius: 8px;
  background: #fff;
  color: #245d45;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.section-more-button:hover,
.section-more-button:focus-visible {
  background: #245d45;
  color: #fff;
}
.automation-section .section-more {
  color: #c7f36b;
}
.automation-section .section-more-button {
  border-color: #c7f36b;
  background: transparent;
}
.automation-section .section-more-button:hover,
.automation-section .section-more-button:focus-visible {
  background: #c7f36b;
  color: #102d37;
}
.automation-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.project-tile {
  display: block;
  border: 1px solid #36505a;
  border-radius: 10px;
  overflow: hidden;
  background: #173741;
  transition: border-color 0.2s;
}
.project-tile:hover {
  border-color: #c7f36b;
}
.project-photo {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.project-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #102d37b3);
}
.project-photo span {
  position: absolute;
  bottom: 20px;
  left: 26px;
  right: 20px;
  z-index: 1;
  font-size: 13px;
  color: #fff;
}
.project-copy {
  padding: 28px;
}
.project-label {
  color: #c7f36b;
  font-size: 13px;
}
.project-copy h3 {
  font-size: 27px;
  margin: 16px 0;
}
.project-copy p {
  font-size: 16px;
  color: #b3c7ce;
}
.project-action {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #36505a;
  font-size: 15px;
}
.project-action b {
  color: #c7f36b;
}
.web-services {
  gap: 24px;
}
.web-services article {
  border-top: 2px solid #95ac94;
  padding-top: 24px;
}
.web-services p {
  font-size: 16px;
  color: #738075;
}
.website-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.website-tile {
  display: block;
  border: 1px solid #dce2d7;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s;
}
.website-tile:hover {
  transform: translateY(-5px);
}
.website-photo {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #e4ece1;
}
.website-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.website-photo span {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  background: #f7f8f5ed;
  border-radius: 4px;
}
.website-tile > div:last-child {
  padding: 24px;
}
.website-tile p {
  color: #738075;
  font-size: 13px;
  margin-bottom: 12px;
}
.website-tile h3 {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 24px;
}
.home-category-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.home-category-links a {
  border: 1px solid #d7dfd3;
  border-radius: 6px;
  padding: 9px 15px;
  font-size: 14px;
}
.home-category-links a:hover {
  background: #eaf0e5;
}
.home-portfolio-cta {
  margin-top: 36px;
  padding: 32px 24px;
  border: 1px solid #d7dfd3;
  border-radius: 12px;
  background: #eaf0e5;
  text-align: center;
}
.home-portfolio-cta p {
  margin: 0 0 16px;
  color: #526457;
  font-size: 16px;
}
.home-portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 60px;
  padding: 16px 32px;
  border-radius: 8px;
  background: #102d37;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 6px 16px #102d3726;
}
.home-portfolio-button span {
  color: #c7f36b;
  font-size: 24px;
}
.home-portfolio-button:hover {
  background: #234853;
}
.home-portfolio-button:focus-visible {
  outline: 3px solid #437a58;
  outline-offset: 4px;
}
.faq-section {
  background: #edf1e9;
  border-block: 1px solid #dce2d7;
}
.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
}
.home-muted {
  color: #738075;
  line-height: 1.85;
  margin-top: 24px;
}
.faq-list details {
  border-bottom: 1px solid #cfd9c9;
}
.faq-list details:first-child {
  border-top: 1px solid #cfd9c9;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  font-size: 18px;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-size: 23px;
  font-weight: 400;
  color: #437a58;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details > p {
  padding: 0 24px 24px 0;
  color: #627368;
  font-size: 16px;
  line-height: 1.85;
}
.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 75px;
}
.contact-note {
  padding: 22px;
  background: #edf1e9;
  border-radius: 8px;
  margin-top: 34px;
}
.contact-note strong {
  font-size: 16px;
}
.kakao-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 8px;
  background: #fee500;
  color: #191919;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.kakao-contact:hover {
  background: #f4dc00;
}
.contact-note p {
  margin-top: 10px;
  color: #738075;
  font-size: 14px;
}
.home-contact-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.home-contact-form legend {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}
.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.interest-options label {
  border: 1px solid #d3dece;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
}
.interest-options input {
  accent-color: #245d45;
  margin: 0 7px 0 0;
}
.interest-options label:has(input:checked) {
  background: #e8efdf;
  border-color: #719163;
}
.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-fields label,
.message-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.7;
}

.contact-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: #245f4b;
}

#contact-status {
  line-height: 1.6;
}

.contact-submit button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-fields input,
.home-contact-form textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #d3dece;
  border-radius: 6px;
  padding: 14px;
  font: inherit;
  background: white;
  color: #19352d;
}
.message-label {
  margin-top: 22px;
}
.home-contact-form textarea {
  resize: vertical;
  font-size: 16px;
}
.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}
.contact-submit > span {
  font-size: 13px;
  color: #738075;
}
.home-button {
  background: #245d45;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 14px 22px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.home-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.contact-dialog {
  width: min(480px, calc(100% - 36px));
  padding: 34px;
  background: #f7f8f5;
  color: #19352d;
  border: 1px solid #cfd9c9;
  border-radius: 12px;
}
.contact-dialog::backdrop {
  background: #102d37a6;
}
.home-page .contact-dialog h2 {
  font-size: 25px;
}
.contact-dialog p:not(.eyebrow) {
  margin: 20px 0 26px;
  font-size: 16px;
}
.home-footer {
  padding-block: 32px;
}
@media (max-width: 1100px) {
  .capability-grid,
  .web-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .capability-grid article:nth-child(3) {
    border-left: 0;
  }
  .capability-grid article:nth-child(n + 3) {
    border-top: 1px solid #36505a;
  }
  .contact-section {
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .service-gateways { grid-template-columns: 1fr; }
  .business-capabilities, .business-projects { grid-template-columns: 1fr; }
  .home-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
  .hero-side {
    display: none;
  }
  .home-hero {
    grid-template-columns: 1fr;
  }
  .faq-layout,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 650px) {
  .home-portfolio-cta {
    padding: 24px 16px;
  }
  .home-portfolio-button {
    width: 100%;
    gap: 12px;
    padding-inline: 12px;
    font-size: 16px;
  }
  .home-hero {
    padding-block: 44px 50px;
    gap: 34px;
  }
  .home-lead {
    font-size: 17px;
  }
  .service-gateways,
  .automation-projects,
  .website-previews,
  .capability-grid,
  .web-services,
  .contact-fields {
    grid-template-columns: 1fr;
  }
  .gateway {
    padding: 26px;
  }
  .gateway-top {
    margin-bottom: 24px;
    font-size: 11px;
  }
  .home-section,
  .automation-section {
    padding-block: 56px;
  }
  .capability-grid article + article {
    border-left: 0;
    border-top: 1px solid #36505a;
  }
  .home-project-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-top: 38px;
  }
  .project-photo,
  .website-photo {
    height: 210px;
  }
  .project-copy {
    padding: 24px;
  }
  .project-copy h3 {
    font-size: 25px;
  }
  .contact-submit {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gateway,
  .website-tile {
    transition: none;
  }
}
