:root {
  color-scheme: dark;
  --ink: #07090b;
  --surface: #101419;
  --panel: #151a20;
  --line: #2b343d;
  --paper: #f4efe8;
  --muted: #aeb7c2;
  --green: #9de6c4;
  --blue: #91d7ff;
  --violet: #b2a8ff;
  --max: 1180px;
}

body.share-route {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(157, 230, 196, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(145, 215, 255, 0.08), transparent 32%),
    var(--ink);
}

.share-page {
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
}

.share-shell {
  width: min(100%, 440px);
  min-height: calc(100svh - 42px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.share-header {
  display: flex;
  align-items: center;
  padding: 4px 2px 2px;
}

.share-logo {
  width: 176px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.share-hero {
  padding-top: 8px;
}

.share-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.share-hero h1,
.share-expired h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(42px, 12vw, 58px);
  line-height: 0.94;
  font-weight: 950;
}

.share-expiry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 800;
}

.share-expiry strong {
  min-width: 72px;
  padding: 5px 10px;
  border: 1px solid rgba(157, 230, 196, 0.28);
  border-radius: 999px;
  background: rgba(157, 230, 196, 0.12);
  color: var(--green);
  text-align: center;
  font-size: 15px;
}

.share-result {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: #0c1014;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.share-result img,
.share-sources img {
  width: 100%;
  height: auto;
  background: #0c1014;
}

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

.share-sources article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.share-sources span {
  display: block;
  padding: 12px 14px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.share-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, rgba(157, 230, 196, 0.12), rgba(145, 215, 255, 0.08)), #0d1114;
}

.share-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.share-cta,
.share-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 950;
}

.share-cta {
  background: var(--paper);
  color: var(--ink);
}

.share-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

.share-expired {
  justify-content: center;
}

.share-alert {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 140, 114, 0.18);
  color: #ff8c72;
  font-size: 34px;
  font-weight: 950;
}

.share-expired p:not(.share-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(145deg, rgba(157, 230, 196, 0.1), transparent 34rem),
    linear-gradient(235deg, rgba(145, 215, 255, 0.08), transparent 32rem),
    var(--ink);
  color: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
}

.brand-logo {
  width: 176px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav .nav-cta {
  margin-left: 2px;
  background: rgba(157, 230, 196, 0.14);
  color: var(--green);
}

.hero,
.section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 76px);
  padding: 48px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 6.8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(31px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 23px;
  line-height: 1.1;
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: linear-gradient(135deg, var(--green), var(--blue), var(--violet));
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(143, 216, 255, 0.22);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hero-transform,
.case-card,
.steps article {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-transform {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.08fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

figure {
  margin: 0;
}

.hero-transform figure,
.case-inputs figure,
.case-result {
  min-width: 0;
}

.hero-transform img,
.case-inputs img,
.case-result img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel);
}

.hero-transform .result img,
.case-result img {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.operator,
.arrow {
  color: var(--green);
  font-size: 32px;
  font-weight: 950;
}

figcaption {
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.section {
  padding: 84px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefits-grid article,
.steps {
  min-width: 0;
}

.benefits-grid article {
  min-height: 238px;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}

.benefits-grid span {
  color: var(--green);
  font-weight: 950;
}

.benefits-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.steps article {
  min-height: 190px;
  padding: 24px;
}

.steps span {
  color: var(--green);
  font-weight: 950;
}

.steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.case-list {
  display: grid;
  gap: 18px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) auto minmax(0, 0.62fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

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

.case-result img,
.result-card {
  aspect-ratio: 3 / 4;
}

.app-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.phone-shot {
  min-width: 0;
}

.phone-frame {
  position: relative;
  width: min(100%, 316px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    #050608;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.04),
    inset 0 0 0 8px rgba(0, 0, 0, 0.52),
    0 34px 92px rgba(0, 0, 0, 0.56);
}

.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.phone-frame::before {
  top: 96px;
  left: -3px;
  height: 46px;
}

.phone-frame::after {
  top: 150px;
  right: -3px;
  height: 74px;
}

.phone-speaker {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 74px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #050608;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 29px;
  background: #080a0d;
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-shot.featured .phone-frame {
  border-color: rgba(157, 230, 196, 0.36);
  box-shadow:
    inset 0 0 0 2px rgba(157, 230, 196, 0.05),
    inset 0 0 0 8px rgba(0, 0, 0, 0.52),
    0 36px 100px rgba(157, 230, 196, 0.14),
    0 34px 92px rgba(0, 0, 0, 0.56);
}

.detail-screen {
  color: #f4efe8;
  font-size: 13px;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 18px 14px 10px;
  background: rgba(8, 10, 13, 0.94);
  font-weight: 950;
}

.detail-topbar div {
  display: flex;
  gap: 6px;
}

.detail-topbar div span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-screen main {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.detail-result {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.detail-source-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-source-panel div {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.detail-source-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
}

.detail-source-panel span {
  display: block;
  padding-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.detail-feedback {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(157, 230, 196, 0.1);
}

.detail-feedback strong {
  font-size: 14px;
}

.detail-feedback div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.detail-feedback span {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.compose-screen {
  color: #f4efe8;
}

.compose-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 25px 16px 12px;
  background: rgba(8, 10, 13, 0.94);
}

.compose-topbar img {
  width: 126px;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
}

.compose-topbar span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(157, 230, 196, 0.3);
  border-radius: 999px;
  background: rgba(157, 230, 196, 0.1);
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.compose-screen main {
  padding: 26px 18px;
}

.compose-screen h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
}

.compose-screen p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
}

.compose-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.compose-picker article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
}

.compose-picker button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f4efe8;
  color: #07090b;
  font-size: 28px;
  line-height: 1;
  cursor: default;
}

.compose-picker img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.compose-picker strong,
.compose-picker span {
  display: block;
  padding-inline: 12px;
}

.compose-picker strong {
  padding-top: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.compose-picker span {
  padding-top: 4px;
  padding-bottom: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.compose-ready {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(157, 230, 196, 0.12);
}

.compose-ready strong {
  color: #fff;
  font-size: 15px;
}

.compose-ready span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.cta-section {
  padding-top: 72px;
  padding-bottom: 92px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-section h2 {
  max-width: 820px;
}

.cta-section p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.footer-logo {
  width: 128px;
  max-height: 32px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 1050px) {
  .hero,
  .case-card {
    grid-template-columns: 1fr;
  }

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

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

  .app-shots {
    display: flex;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
  }

  .app-shots figure {
    flex: 0 0 min(78vw, 316px);
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    align-items: center;
    gap: 10px;
    padding: 14px 0;
  }

  .brand {
    max-width: 148px;
  }

  .brand-logo {
    width: 148px;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
  }

  .nav a {
    padding: 7px 8px;
  }

  .nav a:nth-child(2),
  .nav a:nth-child(3),
  .nav a:nth-child(6) {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 22px;
    padding: 26px 0 48px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
  }

  .lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero-points {
    gap: 6px;
    margin-top: 18px;
  }

  .hero-points span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .button {
    min-height: 48px;
    width: 100%;
  }

  .hero-transform {
    position: relative;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "person outfit"
      "equals equals"
      "result result";
    gap: 10px;
    padding: 10px;
  }

  .hero-transform figure:first-child {
    grid-area: person;
  }

  .hero-transform figure:nth-of-type(2) {
    grid-area: outfit;
  }

  .hero-transform .result {
    grid-area: result;
    position: relative;
    display: block;
    margin-top: 2px;
    padding: 10px;
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(157, 230, 196, 0.12), rgba(255, 255, 255, 0.035));
  }

  .hero-transform img,
  .case-inputs img,
  .case-result img {
    border-radius: 7px;
  }

  .hero-transform figure:not(.result) img {
    aspect-ratio: 1 / 1;
  }

  .hero-transform .result img {
    width: min(100%, 290px);
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(157, 230, 196, 0.18);
  }

  .hero-transform .result figcaption {
    position: absolute;
    bottom: 22px;
    left: 24px;
    right: 24px;
    width: auto;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid rgba(157, 230, 196, 0.22);
    border-radius: 8px;
    background: rgba(7, 9, 11, 0.68);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    text-align: left;
  }

  .hero-transform .result figcaption::before {
    content: "완성 결과";
    display: block;
    margin-bottom: 4px;
    color: var(--green);
    font-size: 12px;
    font-weight: 950;
  }

  .hero-transform figure:not(.result) figcaption {
    padding-top: 7px;
    font-size: 12px;
  }

  .operator {
    justify-self: center;
    align-self: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(157, 230, 196, 0.12);
    font-size: 22px;
    line-height: 26px;
    text-align: center;
  }

  .hero-transform .operator:first-of-type {
    position: absolute;
    left: 50%;
    margin-top: 35%;
    transform: translateX(-50%);
  }

  .operator.equals {
    grid-area: equals;
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    transform: none;
  }

  .case-card {
    gap: 12px;
    padding: 12px;
  }

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

  .case-inputs img {
    aspect-ratio: 4 / 5;
  }

  .case-result {
    position: relative;
    display: block;
    margin-top: 2px;
    padding: 10px;
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(157, 230, 196, 0.12), rgba(255, 255, 255, 0.035));
  }

  .case-result img {
    width: min(100%, 290px);
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(157, 230, 196, 0.18);
  }

  .case-result figcaption {
    position: absolute;
    bottom: 22px;
    left: 24px;
    right: 24px;
    width: auto;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid rgba(157, 230, 196, 0.22);
    border-radius: 8px;
    background: rgba(7, 9, 11, 0.68);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    text-align: left;
  }

  .case-result figcaption::before {
    content: "완성 결과";
    display: block;
    margin-bottom: 4px;
    color: var(--green);
    font-size: 11px;
    font-weight: 950;
  }

  .steps,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 66px 0;
  }

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