:root {
  --bg: #f4f8fc;
  --bg-soft: #e8f1fa;
  --surface: #ffffff;
  --ink: #0f2744;
  --muted: #5a7190;
  --blue: #1a6fd4;
  --blue-deep: #0d4f9e;
  --blue-soft: #d6e8fb;
  --line: rgba(15, 39, 68, 0.1);
  --shadow: 0 18px 50px rgba(13, 79, 158, 0.1);
  --radius: 14px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans KR", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 111, 212, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(91, 168, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 40%, #eef5fb 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-deep);
}

.nav-links form {
  margin: 0;
}

.nav-account {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links button.nav-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.nav-links button.nav-link-btn:hover {
  color: var(--blue-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 28, 56, 0.72) 0%, rgba(13, 79, 158, 0.45) 42%, rgba(26, 111, 212, 0.2) 100%),
    url("../img/junconnect.webp") center / cover no-repeat;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
  animation: riseIn 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  max-width: 28ch;
  animation: riseIn 0.9s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  animation: riseIn 1s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 1.05s ease 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  color: var(--blue-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-solid {
  background: var(--blue);
  color: #fff;
}

.btn-solid:hover {
  background: var(--blue-deep);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--blue-deep);
  border: 1px solid var(--blue);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 1.25rem;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

.service-index {
  font-family: var(--font-display);
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 2rem;
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.service-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.visitor-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.visitor-stats strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.flash {
  max-width: 1120px;
  margin: 1rem auto 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.flash-ok {
  background: #e8f7ef;
  color: #146c43;
}

.flash-err {
  background: #fdecea;
  color: #b42318;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.5rem 0 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .hero-inner {
    padding-top: 4rem;
  }
}

/* Shared inner pages */
.page-banner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 1.25rem;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
}

.page-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.page-body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.content-grid {
  display: grid;
  gap: 1.25rem;
}

.content-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
}

.panel h2,
.panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.feature-list li:last-child {
  border-bottom: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.layer-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.layer-item p {
  margin: 0;
  font-size: 0.95rem;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.hint code {
  background: var(--blue-soft);
  color: var(--blue-deep);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.85em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.data-table th {
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table .end {
  text-align: right;
}

.number-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.number-ball {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 8px 18px rgba(13, 79, 158, 0.25);
}

.center-actions {
  text-align: center;
  margin-top: 0.5rem;
}

.login-box {
  max-width: 420px;
  margin: 3rem auto;
  text-align: center;
}

.login-box input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  margin-bottom: 0.75rem;
  background: #fbfcfe;
}

.login-error {
  color: #b42318;
  margin-bottom: 0.75rem;
  display: none;
}

.login-error.active {
  display: block;
}

.stock-main {
  display: none;
}

.stock-main.active {
  display: block;
}

.positive-change {
  color: #0f7a4c;
  font-weight: 600;
}

.negative-change {
  color: #c0392b;
  font-weight: 600;
}

.plot-box {
  min-height: 280px;
}

@media (max-width: 900px) {
  .content-grid.two,
  .content-grid.three,
  .layer-grid {
    grid-template-columns: 1fr;
  }
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid #0d4f9e;
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .nav-links.open {
    align-items: flex-start;
  }

  .nav-account {
    max-width: 100%;
  }
}

.home-page {
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  background: #f4f6f8;
  color: #0f2744;
}

.home-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-hero {
  background: #0f2744;
  color: #ffffff;
}

.home-hero-inner {
  padding: 4.5rem 1.25rem 3.5rem;
}

.home-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d5deea;
}

.home-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.home-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #e6edf5;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.home-btn-primary {
  background: #ffffff;
  color: #0f2744;
}

.home-btn-primary:hover {
  background: #e8eef5;
  color: #0f2744;
}

.home-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: transparent;
}

.home-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.home-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.home-note {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: #d5deea;
  font-size: 0.98rem;
  line-height: 1.6;
}

.home-note-dark {
  color: #3d4d63;
  margin-bottom: 1.25rem;
}

.home-section {
  padding: 3.25rem 0;
}

.home-section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  line-height: 1.3;
}

.home-section-muted {
  background: #e9edf2;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-step {
  background: #ffffff;
  border: 1px solid #d9e0ea;
  border-radius: 16px;
  padding: 1.25rem;
}

.home-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.home-step p {
  margin: 0 0 0.75rem;
  color: #3d4d63;
  line-height: 1.6;
}

.home-step p:last-child {
  margin-bottom: 0;
}

.home-step-no {
  margin: 0 0 0.35rem;
  color: #0d4f9e;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.pricing-card {
  background: #ffffff;
  border: 1px solid #d9e0ea;
  border-radius: 16px;
  padding: 1.5rem;
}

.pricing-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.pricing-price {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f2744;
}

.pricing-facts {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: #24364d;
  line-height: 1.6;
}

.pricing-status {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f4f6f8;
  color: #3d4d63;
  line-height: 1.5;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-page a:focus-visible {
  outline: 2px solid #0d4f9e;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .home-steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-inner {
    padding-top: 3rem;
  }
}

.offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.offer-btn:disabled,
.offer-btn[aria-disabled="true"] {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.45;
}

.offer-btn-open {
  margin-top: 0.9rem;
  color: #fff;
  background: linear-gradient(180deg, #2b86e6 0%, #0d4f9e 100%);
  box-shadow: 0 10px 24px rgba(13, 79, 158, 0.28);
}

.offer-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.offer-hero {
  padding: 2.2rem 2rem;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(255, 214, 120, 0.35), transparent 60%),
    linear-gradient(135deg, #0b2344 0%, #1458a8 70%, #1d7ae0 100%);
  box-shadow: 0 24px 50px rgba(11, 35, 68, 0.22);
}

.offer-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #ffe7a3;
}

.offer-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.offer-hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
}

.offer-panel {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e4ebf5;
  box-shadow: 0 16px 40px rgba(15, 39, 68, 0.08);
}

.offer-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.offer-steps li {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #f5f8fc;
  color: #24364d;
  font-weight: 600;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.offer-btn-file {
  color: #7a4b00;
  background: #fff8e8;
  border: 1px solid #e6c36a;
  box-shadow: inset 0 -2px 0 #f0d48a;
}

.offer-btn-start {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #163a66 0%, #0b2344 100%);
  box-shadow: 0 12px 24px rgba(11, 35, 68, 0.28);
}

.offer-btn-get {
  color: #fff;
  background: linear-gradient(180deg, #1f9d62 0%, #0d7a45 100%);
  box-shadow: 0 12px 24px rgba(13, 122, 69, 0.24);
}

.offer-file,
.offer-error,
.offer-progress p {
  margin: 0.9rem 0 0;
}

.offer-error {
  color: #9f1239;
}

.offer-bar {
  height: 0.6rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #e7eef8;
  overflow: hidden;
}

.offer-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f0c14b, #1a6fd4);
}

@media (max-width: 800px) {
  .offer-steps {
    grid-template-columns: 1fr;
  }
}

.pdf-job {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}

.pdf-job-drop {
  display: block;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.pdf-job-drop input {
  display: block;
  margin-top: 0.75rem;
}

.pdf-job-file,
.pdf-job-status p {
  margin: 0;
}

.pdf-job-error {
  margin: 0;
  color: #9f1239;
}

.pdf-job-bar {
  height: 0.55rem;
  border-radius: 999px;
  background: #e7eef8;
  overflow: hidden;
}

.pdf-job-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
}
