:root {
  color-scheme: dark;
  --bg: #0b110d;
  --panel: rgba(24, 34, 27, 0.86);
  --panel-strong: #18231b;
  --line: rgba(222, 238, 226, 0.13);
  --text: #eef5ef;
  --muted: #9baa9e;
  --green: #b8f051;
  --green-dark: #1f361a;
  --orange: #ffad68;
  --danger: #ff8c83;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(74, 110, 64, 0.22), transparent 42%),
    linear-gradient(180deg, #0e1610 0%, var(--bg) 72%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.13;
  pointer-events: none;
}
.ambient-one { width: 340px; height: 340px; right: -130px; top: 24%; background: var(--green); }
.ambient-two { width: 260px; height: 260px; left: -120px; bottom: 12%; background: #52936e; }

.site-header, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { height: 84px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 10px 10px 3px; background: var(--green); color: #13200e; font-weight: 900; }
.privacy-pill { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.77rem; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

main { width: min(960px, calc(100% - 40px)); margin: 56px auto 0; }
.view { animation: reveal 400ms ease both; }
.hidden { display: none !important; }

.hero { max-width: 770px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; }
h1 { margin: 0; font-size: clamp(3rem, 7.5vw, 6.15rem); line-height: 0.94; letter-spacing: -0.065em; font-weight: 770; }
h1 span { color: var(--green); }
.lede { max-width: 650px; margin: 27px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.65; }
.home-hero { margin-bottom: 0; }
.start-sharing { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 190px; margin-top: 28px; padding: 0 24px; text-decoration: none; }
.home-security-note { margin: 12px 0 0; color: var(--muted); font-size: 0.76rem; }

.card { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.setup-card, .session-card, .receive-card { padding: clamp(20px, 4vw, 38px); }
.drop-zone { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed rgba(184, 240, 81, 0.35); border-radius: 17px; background: rgba(184, 240, 81, 0.025); text-align: center; transition: 180ms ease; cursor: pointer; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--green); background: rgba(184, 240, 81, 0.06); transform: translateY(-1px); }
.drop-zone strong { font-size: 1.16rem; }
.drop-zone > span:last-child { color: var(--muted); font-size: 0.9rem; }
.setup-alternatives { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 0.78rem; }
.setup-alternatives .text-button { padding: 4px; color: var(--green); }
.upload-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 50%; background: var(--green); color: #13200e; font-size: 1.5rem; font-weight: 700; }

.file-row, .incoming-file { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.025); }
#selected-file { margin: 18px 0 0; }
#create-link { margin-top: 18px; }
.file-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--green-dark); color: var(--green); font-size: 0.8rem; }
.file-copy, .incoming-file > div:last-child, .transfer-title > div { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 5px; }
.file-copy strong, .incoming-file strong, .transfer-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-copy span, .incoming-file span, .transfer-title span { color: var(--muted); font-size: 0.86rem; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.5rem; }
.icon-button:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.primary-button, .secondary-button { border-radius: 12px; font-weight: 760; transition: 160ms ease; }
.primary-button { width: 100%; min-height: 52px; border: 0; background: var(--green); color: #15200f; }
.primary-button:not(:disabled):hover { transform: translateY(-1px); background: #c6fb62; box-shadow: 0 9px 28px rgba(184, 240, 81, 0.15); }
.secondary-button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.035); color: var(--text); }
.secondary-button:hover { border-color: rgba(184, 240, 81, 0.4); }
.text-button { border: 0; background: transparent; font-weight: 700; }
.danger { color: var(--danger); }
.fine-print, .security-note { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 0.78rem; line-height: 1.5; }
.human-check { margin-top: 16px; text-align: center; }
.human-check > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.78rem; }
.human-check iframe { width: 100%; height: 78px; border: 0; overflow: hidden; }

.card-heading, .transfer-title, .transfer-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.card-heading { margin-bottom: 24px; }
.card-heading h2 { margin: 0; font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: -0.035em; }
.status-badge { flex: none; padding: 7px 11px; border-radius: 999px; font-size: 0.73rem; font-weight: 800; }
.status-badge.waiting { color: var(--orange); background: rgba(255, 173, 104, 0.1); }
.status-badge.connected { color: var(--green); background: rgba(184, 240, 81, 0.1); }
.status-badge.failed { color: var(--danger); background: rgba(255, 140, 131, 0.1); }
.share-row { display: flex; gap: 9px; }
.share-row input { min-width: 0; flex: 1; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0e1611; color: var(--muted); }
.share-row input:focus { border-color: rgba(184, 240, 81, 0.5); }
.security-note { text-align: left; }
.recovery-action { width: 100%; margin-top: 14px; }
.recovery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.recovery-actions .secondary-button { flex: 1; }
.recovery-actions .text-button { color: var(--green); }

.app-promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 34px 0 0; padding: 20px 22px; width: min(100%, 760px); border: 1px solid rgba(184, 240, 81, 0.18); border-radius: 16px; background: rgba(184, 240, 81, 0.045); }
.app-promo-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.app-promo-kicker { color: var(--green); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.13em; }
.app-promo-copy strong { font-size: 1rem; }
.app-promo-copy small { color: var(--muted); line-height: 1.45; }
.app-status { flex: none; padding: 8px 11px; border-radius: 999px; background: rgba(184, 240, 81, 0.1); color: var(--green); font-size: 0.7rem; font-weight: 800; text-decoration: none; }
.app-status:hover { background: rgba(184, 240, 81, 0.16); }

.adsense-banner { margin: 52px auto 0; width: min(100%, 760px); min-height: 100px; text-align: center; }
.adsense-banner .adsbygoogle { display: block; min-height: 90px; }
.ad-label { display: block; margin-bottom: 8px; color: #738078; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }

.home-page .adsense-banner,
.home-page .app-promo,
.home-page .trust-strip {
  width: min(100%, 770px);
  margin-left: 0;
  margin-right: auto;
}

.transfer-panel { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.transfer-title > strong { color: var(--green); font-variant-numeric: tabular-nums; }
.progress-track { height: 8px; margin: 18px 0; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,0.07); }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #84ba3e, var(--green)); transition: width 180ms linear; }
.transfer-actions { justify-content: flex-start; }

.receiver-hero { max-width: 700px; }
.receive-card { max-width: 760px; }
.incoming-file { min-height: 100px; margin-bottom: 18px; }
.incoming-file.muted { opacity: 0.7; }
.incoming-files { display: grid; gap: 9px; margin: 0 0 18px; }
.incoming-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,0.02); }
.incoming-choice input { width: 18px; height: 18px; accent-color: var(--green); }
.incoming-choice-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.incoming-choice-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.incoming-choice-copy small { color: var(--muted); font-size: 0.72rem; }
.preview-button { min-height: 34px; padding: 0 11px; font-size: 0.72rem; }
.preview-panel { margin: 0 0 18px; padding: 14px; border: 1px solid rgba(184, 240, 81, 0.22); border-radius: 14px; background: #080d0a; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.preview-heading strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-heading .text-button { color: var(--green); }
.preview-panel video { display: block; width: 100%; max-height: 420px; border-radius: 9px; background: #000; }
.preview-panel p { margin: 9px 0 0; color: var(--muted); font-size: 0.72rem; }
.large-file-icon { display: grid; place-items: center; flex: 0 0 58px; height: 58px; border-radius: 16px; background: var(--green-dark); color: var(--green); font-size: 1.45rem; }
.notice { margin: 0 0 18px; padding: 13px 15px; border: 1px solid rgba(255,173,104,0.22); border-radius: 12px; background: rgba(255,173,104,0.06); color: #efc7a5; font-size: 0.84rem; line-height: 1.5; }
.kakao-browser-note { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.kakao-browser-note strong { color: var(--text); }
.kakao-browser-note .secondary-button { min-height: 38px; margin-top: 2px; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 78px 0 50px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.trust-strip div { min-height: 145px; display: flex; flex-direction: column; padding: 24px; background: #0f1711; }
.trust-strip span { color: var(--green); font-size: 0.68rem; font-weight: 800; }
.trust-strip strong { margin: auto 0 7px; }
.trust-strip small { color: var(--muted); line-height: 1.45; }

footer { min-height: 80px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { color: var(--green); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.document-main { width: min(820px, calc(100% - 40px)); margin-top: 38px; }
.document-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.document-nav a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.75rem; text-decoration: none; }
.document-nav a:hover, .document-nav a[aria-current="page"] { border-color: rgba(184, 240, 81, 0.4); color: var(--green); }
.document-card { padding: clamp(22px, 5vw, 46px); }
.document-card h1 { font-size: clamp(2.25rem, 7vw, 4.4rem); line-height: 1; }
.document-card h2 { margin: 38px 0 12px; font-size: 1.25rem; letter-spacing: -0.025em; }
.document-card h3 { margin: 24px 0 8px; font-size: 1rem; }
.document-card p, .document-card li { color: var(--muted); line-height: 1.7; }
.document-card li + li { margin-top: 7px; }
.document-card a { color: var(--green); }
.document-card strong { color: var(--text); }
.document-meta { margin: 18px 0 30px; color: var(--muted); font-size: 0.78rem; }
.draft-notice { margin-bottom: 28px; padding: 15px 17px; border: 1px solid rgba(255, 173, 104, 0.28); border-radius: 13px; background: rgba(255, 173, 104, 0.07); color: #efc7a5; line-height: 1.5; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.review-link { display: flex; min-height: 120px; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,0.025); color: var(--text); text-decoration: none; }
.review-link:hover { border-color: rgba(184, 240, 81, 0.4); }
.review-link small { color: var(--muted); line-height: 1.45; }
.review-check { padding: 0; list-style: none; }
.review-check li::before { content: "□"; margin-right: 9px; color: var(--orange); }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; background: #202c23; box-shadow: var(--shadow); color: var(--text); opacity: 0; pointer-events: none; transition: 180ms ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.download-frame { position: fixed; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.performance-debug { position: fixed; z-index: 6; right: 14px; bottom: 14px; width: min(390px, calc(100% - 28px)); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 13, 10, 0.96); color: var(--muted); font-size: 0.7rem; }
.performance-debug summary { color: var(--green); cursor: pointer; font-weight: 800; }
.performance-debug pre { overflow: auto; margin: 10px 0 0; color: var(--text); font: 0.68rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 680px) {
  .site-header, footer, main { width: min(100% - 28px, 960px); }
  .site-header { height: 70px; }
  main { margin-top: 38px; }
  .privacy-pill { font-size: 0; }
  .privacy-pill .dot { margin: 0; }
  .hero { margin-bottom: 30px; }
  h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .drop-zone { min-height: 190px; }
  .share-row { flex-wrap: wrap; }
  .share-row input { flex-basis: 100%; }
  .share-row button { flex: 1; }
  .card-heading { align-items: flex-start; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { min-height: 116px; }
  .transfer-actions { flex-wrap: wrap; }
  .app-promo { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 24px; }
  .adsense-banner { margin-top: 34px; }
  .document-main { width: min(100% - 28px, 820px); margin-top: 24px; }
  .review-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-wrap: wrap; gap: 10px 18px; }
  .footer-links { order: 3; width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
