:root {
  --ink: #132433;
  --muted: #5f7182;
  --line: #dce7eb;
  --paper: #f6faf9;
  --white: #ffffff;
  --blue: #0c6bc7;
  --navy: #102f55;
  --teal: #22b8a8;
  --green: #62aa52;
  --amber: #e0a12a;
  --shadow: 0 18px 50px rgba(19, 36, 51, 0.13);
  --shadow-soft: 0 10px 26px rgba(19, 36, 51, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.6;
  background: var(--paper);
  word-break: keep-all;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(34, 184, 168, 0.42);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    padding 0.25s ease;
}

.site-header.is-scrolled {
  padding-block: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(19, 36, 51, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 4px solid currentColor;
  border-right-color: var(--teal);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  color: currentColor;
  font-weight: 800;
  font-size: 15px;
  opacity: 0.9;
}

.site-nav a::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: currentColor;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 30, 48, 0.86), rgba(7, 30, 48, 0.3) 58%, rgba(7, 30, 48, 0.2)),
    url("assets/hero-solar-crop.jpg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  content: "";
  background: linear-gradient(0deg, rgba(246, 250, 249, 0.96), rgba(246, 250, 249, 0));
  pointer-events: none;
}

.hero-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  opacity: 0.5;
  mix-blend-mode: screen;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 38%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 44%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  align-self: center;
  margin: 0 auto;
  padding-top: 74px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c8fff6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7.2vw, 86px);
  line-height: 1.03;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.24;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.tab-list,
.case-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(34, 184, 168, 0.28);
}

.btn.secondary,
.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn.ghost {
  background: rgba(16, 47, 85, 0.24);
}

.metric-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: -46px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.intro p,
.section-head p,
.esco p,
.faq p,
.contact p {
  color: var(--muted);
  font-size: 18px;
}

.quote-panel {
  padding: 32px;
  border-left: 5px solid var(--teal);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.quote-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 540px;
  margin-bottom: 10px;
}

.service-tabs {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tab-list {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #edf7f6;
}

.tab,
.case-item {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.tab {
  min-height: 44px;
  padding: 10px 16px;
}

.tab:hover,
.case-item:hover {
  border-color: rgba(34, 184, 168, 0.5);
  color: var(--ink);
}

.tab.is-active,
.case-item.is-selected {
  color: var(--white);
  background: var(--navy);
}

.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  min-height: 410px;
}

.tab-panel.is-active {
  display: grid;
}

.tab-panel > div:first-child {
  padding: clamp(24px, 5vw, 54px);
}

.tab-panel p {
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, var(--white) 0 28%, transparent 30%),
    var(--teal);
}

.panel-visual {
  min-height: 320px;
  background-position: center;
  background-size: cover;
}

.panel-visual-a {
  background-image:
    linear-gradient(rgba(16, 47, 85, 0.08), rgba(16, 47, 85, 0.2)),
    url("assets/hero-solar-crop.jpg");
  background-position: 68% 72%;
}

.panel-visual-b {
  background-image:
    linear-gradient(rgba(8, 20, 31, 0.1), rgba(8, 20, 31, 0.16)),
    url("assets/business-solar-clean.jpg");
  background-position: 12% 28%;
}

.panel-visual-c {
  background-image:
    linear-gradient(rgba(8, 20, 31, 0.06), rgba(8, 20, 31, 0.12)),
    url("assets/business-solar-clean.jpg");
  background-position: 86% 88%;
}

.process {
  padding-top: 34px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-step {
  position: relative;
  min-height: 230px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(19, 36, 51, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.process-step:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 184, 168, 0.6);
  box-shadow: var(--shadow);
}

.process-step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.process-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.saving-board {
  display: grid;
  gap: 10px;
}

.saving-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  text-align: left;
  box-shadow: 0 8px 18px rgba(19, 36, 51, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.saving-row:hover,
.saving-row.is-active {
  transform: translateX(6px);
  border-color: var(--teal);
  background: #eefaf8;
}

.saving-row strong {
  color: var(--navy);
  white-space: nowrap;
}

.finance-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 50, 87, 0.94), rgba(34, 184, 168, 0.76)),
    url("assets/business-solar-clean.jpg") center 78% / cover no-repeat;
}

.finance-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(28px, 6vw, 72px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 110px) 0;
}

.finance-inner .section-kicker,
.contact .section-kicker {
  color: #c8fff6;
}

.finance-inner p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.finance-stats {
  display: grid;
  gap: 12px;
}

.finance-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.finance-stats strong {
  color: #fff1bd;
  font-size: 22px;
}

.simulator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calc-panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.calc-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.calc-head h3 {
  margin-bottom: 0;
}

.calc-head output {
  min-width: 92px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.calc-panel label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.result-grid div {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #edf7f6;
}

.result-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.result-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.case-track {
  margin-bottom: 16px;
}

.case-item {
  min-width: 130px;
  padding: 16px;
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 8px 22px rgba(19, 36, 51, 0.06);
}

.case-detail {
  padding: clamp(24px, 5vw, 40px);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.case-detail strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.case-detail p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.faq {
  padding-top: 20px;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion button {
  width: 100%;
  min-height: 64px;
  padding: 18px 34px 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 900;
  font-size: 19px;
}

.accordion button::after {
  float: right;
  margin-right: -30px;
  content: "+";
  color: var(--teal);
  font-size: 24px;
}

.accordion button[aria-expanded="true"]::after {
  content: "-";
}

.accordion div {
  padding: 0 0 20px;
}

.accordion p {
  margin: 0;
}

.contact {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #0b2236;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 34, 54, 0.96), rgba(11, 34, 54, 0.62)),
    url("assets/hero-solar-crop.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  gap: clamp(28px, 6vw, 72px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 120px) 0;
}

.contact p {
  color: rgba(255, 255, 255, 0.82);
}

address {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  font-weight: 800;
}

address a {
  width: fit-content;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(0, 0, 0, 0.16);
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.contact-form select option {
  color: var(--ink);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: #c8fff6;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 48px);
  color: #dbe8ee;
  background: #081a2b;
}

.site-footer a {
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .metric-strip,
  .process-grid,
  .simulator-grid,
  .split,
  .finance-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .process-grid {
    gap: 12px;
  }

  .process-step {
    min-height: 0;
  }

  .tab-panel,
  .tab-panel.is-active {
    grid-template-columns: 1fr;
  }

  .panel-visual {
    min-height: 260px;
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 78svh;
    background-position: center;
    background-size: cover;
  }

  .hero-inner {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(36px, 11vw, 54px);
  }

  .hero-copy {
    width: 100%;
    max-width: 360px;
    font-size: 17px;
  }

  h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .metric-strip,
  .section,
  .finance-inner,
  .contact-inner {
    width: calc(100vw - 32px);
    max-width: var(--max);
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .hero-actions .btn,
  .tab,
  .case-item {
    width: 100%;
  }

  .calc-head,
  .finance-stats span,
  .saving-row {
    align-items: start;
    flex-direction: column;
  }

  .calc-head output {
    width: 100%;
  }

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

  .quote-panel,
  .contact-form {
    padding: 22px;
  }

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

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