:root {
  color: #171717;
  background: #f6f6f4;
  font-family:
    Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #171717;
  --muted: #62625e;
  --subtle: #898984;
  --line: #dcdcd6;
  --soft-line: #e9e9e4;
  --canvas: #f6f6f4;
  --surface: #ffffff;
  --dark: #191a18;
  --green: #0b765b;
  --green-dark: #075844;
  --green-soft: #e5f2ed;
  --red: #ad302b;
  --red-soft: #fae9e7;
  --amber: #805410;
  --amber-soft: #f6edda;
  --focus: rgba(20, 105, 205, 0.3);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.section-shell,
.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 220, 214, 0.88);
  background: rgba(246, 246, 244, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: var(--dark);
  font-size: 1.08rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

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

.site-nav a {
  color: #494945;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #a7a7a1;
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover:not(:disabled) {
  border-color: #777773;
  background: #f2f2ef;
}

.button-primary {
  border-color: var(--dark);
  color: #fff;
  background: var(--dark);
}

.button-primary:hover:not(:disabled) {
  border-color: #353633;
  background: #353633;
}

.button-compact {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.84rem;
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.hero {
  padding: clamp(72px, 8vw, 118px) 0 clamp(76px, 9vw, 132px);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr);
  align-items: center;
  gap: clamp(44px, 5vw, 70px);
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 26px;
  font-size: clamp(2.75rem, 5.3vw, 5.2rem);
  line-height: 1.05;
  word-break: keep-all;
}

.hero-description {
  max-width: 600px;
  margin-bottom: 30px;
  color: #51514d;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.8;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.text-link {
  padding: 10px 2px;
  color: #3d3d39;
  font-size: 0.91rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero-footnote {
  margin: 20px 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.6;
}

.product-preview {
  width: 700px;
  max-width: 100%;
  border: 1px solid #343531;
  border-radius: 18px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 26px 70px rgba(19, 20, 18, 0.16);
  transform: rotate(0.5deg);
}

.preview-topbar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 15px;
  gap: 6px;
  color: #c9cac5;
  background: #252624;
}

.preview-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64655f;
}

.preview-topbar p {
  margin: 0 0 0 10px;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

.preview-body {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  min-height: 420px;
  background: #f7f7f5;
}

.preview-library {
  display: flex;
  flex-direction: column;
  padding: 23px 14px;
  border-right: 1px solid #deded8;
  background: #f0f0ed;
  gap: 11px;
}

.preview-library b,
.preview-heading b,
.preview-columns b {
  font-size: 0.64rem;
}

.preview-new {
  display: grid;
  place-items: center;
  height: 29px;
  margin: 5px 0 7px;
  border-radius: 6px;
  color: #fff;
  background: #20211f;
  font-size: 0.55rem;
  font-weight: 700;
}

.preview-row {
  display: block;
  width: 100%;
  height: 21px;
  border-radius: 5px;
  background: #deded9;
}

.preview-row.is-active {
  background: #d3e7df;
}

.preview-row-short {
  width: 68%;
}

.preview-workspace {
  min-width: 0;
  padding: 27px 28px;
}

.preview-heading span,
.preview-heading b {
  display: block;
}

.preview-heading span {
  margin-bottom: 6px;
  color: #7a7a74;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-heading b {
  font-size: 0.88rem;
}

.preview-tabs {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  border-bottom: 1px solid #deded8;
}

.preview-tabs span {
  padding: 0 1px 9px;
  color: #777771;
  font-size: 0.56rem;
  font-weight: 700;
}

.preview-tabs .is-active {
  border-bottom: 2px solid #171817;
  color: #171817;
}

.preview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(130px, 0.75fr);
  gap: 18px;
  margin-top: 22px;
}

.preview-columns article,
.preview-columns aside {
  padding: 18px;
  border: 1px solid #dfdfda;
  border-radius: 9px;
  background: #fff;
}

.preview-columns article i {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 13px;
  border-radius: 3px;
  background: var(--green);
}

.preview-columns article > span,
.preview-columns aside > span {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 9px;
  border-radius: 3px;
  background: #e2e2dd;
}

.preview-columns .line-short {
  width: 58%;
}

.preview-columns .line-mid {
  width: 76%;
}

.preview-columns em {
  display: block;
  margin-top: 25px;
  color: var(--green);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 750;
}

.preview-image {
  height: 80px;
  margin-top: 18px;
  border: 1px solid #d9d9d3;
  border-radius: 6px;
  background:
    linear-gradient(145deg, transparent 49%, #d8e8e1 50%, #d8e8e1 66%, transparent 67%),
    #eff3f0;
}

.quick-facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.quick-facts p {
  min-width: 0;
  margin: 0;
  padding: 28px 32px;
  border-right: 1px solid var(--soft-line);
}

.quick-facts p:first-child {
  padding-left: 0;
}

.quick-facts p:last-child {
  padding-right: 0;
  border-right: 0;
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  margin-bottom: 7px;
  font-size: 0.9rem;
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.content-section {
  padding: clamp(88px, 10vw, 144px) 0;
  scroll-margin-top: 76px;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px 60px;
  margin-bottom: 58px;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -5px;
}

.section-intro h2,
.privacy-heading h2,
.access-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.13;
}

.section-intro > p:last-child,
.access-copy > p {
  margin-bottom: 3px;
  color: var(--muted);
  line-height: 1.75;
  word-break: keep-all;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  min-height: 285px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.feature-number {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin-bottom: 13px;
  font-size: 1.16rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
  word-break: keep-all;
}

.feature-card-caution {
  background: var(--amber-soft);
}

.feature-card-caution .feature-number {
  color: var(--amber);
}

.workflow-section {
  color: #fff;
  background: var(--dark);
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
  gap: 80px;
}

.workflow-intro {
  display: block;
  margin: 0;
}

.workflow-intro h2 {
  margin-bottom: 24px;
  color: #fff;
}

.workflow-intro > p:last-child {
  max-width: 450px;
  color: #bcbdb7;
}

.workflow-section .eyebrow {
  color: #70c9aa;
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 27px 0;
  border-top: 1px solid #3b3c38;
}

.workflow-list li:last-child {
  border-bottom: 1px solid #3b3c38;
}

.workflow-list li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #565752;
  border-radius: 50%;
  color: #d4d5d0;
  font-size: 0.72rem;
  font-weight: 750;
}

.workflow-list h3 {
  margin: 4px 0 9px;
  color: #fff;
  font-size: 1.08rem;
}

.workflow-list p {
  margin: 0;
  color: #bcbdb7;
  font-size: 0.85rem;
  line-height: 1.7;
}

.privacy-section {
  background: var(--surface);
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: 90px;
}

.privacy-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.privacy-heading h2 {
  max-width: 520px;
}

.privacy-details article {
  padding: 29px 0 32px;
  border-top: 1px solid var(--line);
}

.privacy-details article:last-child {
  border-bottom: 1px solid var(--line);
}

.privacy-details h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.privacy-details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  word-break: keep-all;
}

.access-section {
  padding: clamp(88px, 10vw, 140px) 0;
  scroll-margin-top: 76px;
  background: #e9eee9;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.access-copy h2 {
  margin-bottom: 26px;
}

.access-copy > p {
  max-width: 580px;
}

.access-copy ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.access-copy li {
  position: relative;
  margin-top: 12px;
  padding-left: 21px;
  color: #555650;
  font-size: 0.82rem;
  line-height: 1.6;
}

.access-copy li::before {
  position: absolute;
  top: 0.55em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.access-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid #d4d9d3;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(25, 32, 27, 0.09);
}

.access-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 32px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--soft-line);
}

.lock-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 38px;
  margin-top: 6px;
  border-radius: 8px;
  background: var(--green-soft);
}

.lock-mark::before {
  position: absolute;
  top: -8px;
  left: 12px;
  width: 16px;
  height: 17px;
  border: 3px solid var(--green);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  content: "";
}

.lock-mark::after {
  position: absolute;
  top: 14px;
  left: 19px;
  width: 5px;
  height: 9px;
  border-radius: 3px;
  background: var(--green);
  content: "";
}

.access-card-heading h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
}

.connection-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.connection-status[data-state="authenticated"] {
  color: var(--green);
  font-weight: 700;
}

.access-form {
  display: grid;
  gap: 11px;
}

.access-form[aria-busy="true"] {
  cursor: wait;
}

.access-form label {
  font-size: 0.81rem;
  font-weight: 750;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 72px 0 14px;
  border: 1px solid #9b9b95;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}

.password-field input:hover:not(:disabled) {
  border-color: #6e6e68;
}

.password-field input:disabled {
  color: var(--subtle);
  background: #f2f2ef;
  cursor: not-allowed;
}

.password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 57px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: #50504c;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.password-toggle:hover:not(:disabled) {
  background: #efefeb;
}

.password-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.field-help {
  margin: -1px 0 7px;
  color: var(--subtle);
  font-size: 0.7rem;
  line-height: 1.5;
}

.access-submit {
  width: 100%;
  margin-top: 4px;
}

.access-message {
  min-height: 1.4em;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.access-message:empty {
  min-height: 0;
}

.access-message[data-kind="error"] {
  color: var(--red);
  font-weight: 650;
}

.access-message[data-kind="locked"] {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--amber);
  background: var(--amber-soft);
  font-weight: 650;
}

.access-message[data-kind="success"] {
  color: var(--green);
  font-weight: 700;
}

.authenticated-panel p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.authenticated-panel strong {
  color: var(--green-dark);
}

.authenticated-panel .button {
  width: 100%;
}

.noscript-message {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 7px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer {
  color: #e6e7e3;
  background: var(--dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  gap: 32px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner strong {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.footer-inner span {
  color: #a9aaa5;
  font-size: 0.72rem;
}

.footer-inner a {
  color: #d7d8d3;
  font-size: 0.76rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero-layout,
  .workflow-layout,
  .privacy-layout,
  .access-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 64px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .product-preview {
    width: 100%;
    transform: none;
  }

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

  .workflow-layout,
  .privacy-layout {
    gap: 56px;
  }

  .privacy-heading {
    position: static;
  }

  .access-layout {
    align-items: start;
  }

  .access-copy {
    max-width: 700px;
  }
}

@media (max-width: 700px) {
  .section-shell,
  .header-inner {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .header-access-link {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.76rem;
  }

  .hero {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero-description {
    line-height: 1.7;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .preview-body {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 330px;
  }

  .preview-library {
    padding: 16px 8px;
  }

  .preview-workspace {
    padding: 19px 14px;
  }

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

  .preview-columns aside {
    display: none;
  }

  .quick-facts-grid,
  .section-intro,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts p,
  .quick-facts p:first-child,
  .quick-facts p:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .quick-facts p:last-child {
    border-bottom: 0;
  }

  .section-intro {
    align-items: start;
    gap: 20px;
    margin-bottom: 38px;
  }

  .section-intro .eyebrow {
    margin-bottom: -1px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 34px;
  }

  .workflow-layout,
  .privacy-layout,
  .access-layout {
    gap: 44px;
  }

  .workflow-list li {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .workflow-list li > span {
    width: 34px;
    height: 34px;
  }

  .access-card {
    padding: 27px 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
  }
}

@media (max-width: 390px) {
  .brand strong {
    font-size: 0.88rem;
  }

  .header-access-link {
    padding-inline: 10px;
  }

  .preview-tabs {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .button-primary,
  .preview-new {
    border: 1px solid ButtonText;
  }

  .access-copy li::before,
  .lock-mark::after {
    background: CanvasText;
  }
}
