* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 50;
    padding: 0 24px;
}
.nav-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    color: #111;
}
.nav-logo-img { border-radius: 7px; }
.nav-code-btn {
    padding: 8px 18px;
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.nav-code-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

/* MAIN */
.main {
    padding: 48px 24px 56px;
}
.main-inner {
    max-width: 520px;
    margin: 0 auto;
}

/* HERO TEXT */
.hero-text {
    text-align: center;
    margin-bottom: 32px;
}
.hero-text h1 {
    font-size: 30px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.hero-sub {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

/* DROPZONE */
.dropzone {
    border: 2px dashed #ddd;
    border-radius: 16px;
    padding: 56px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: #fafafa;
    margin-bottom: 12px;
}
.dropzone:hover,
.dropzone.dragover {
    border-color: #f97316;
    background: #fff8f3;
}
.dropzone-icon {
    color: #ccc;
    margin-bottom: 16px;
    transition: color 0.15s;
}
.dropzone:hover .dropzone-icon { color: #f97316; }
.dropzone-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.dropzone-hint {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.dropzone-limit {
    font-size: 12px;
    color: #bbb;
}

/* FILE LIST */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
}
.file-item-name {
    font-size: 13px;
    color: #333;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-item-size {
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0;
}
.file-item-remove {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.file-item-remove:hover { color: #e11d48; }

/* BUTTONS */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover { background: #ea580c; }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }

.btn-outline {
    width: 100%;
    padding: 13px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 8px;
}
.btn-outline:hover { border-color: #aaa; color: #333; }

.btn-back-upload {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    margin-top: 16px;
}
.btn-back-upload:hover { background: #f9f9f9; border-color: #aaa; }

/* STATUS / UPLOADING */
.status-box {
    text-align: center;
    padding: 56px 0;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #eee;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}
.progress-track {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}
.progress-bar {
    height: 100%;
    background: #f97316;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s;
}

/* CODE DISPLAY */
.code-box {
    text-align: center;
    padding: 32px 0;
}
.code-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}
.code-display {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 18px;
    color: #f97316;
    margin-bottom: 12px;
    padding-left: 18px;
    font-variant-numeric: tabular-nums;
}
.code-hint {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 24px;
}
.code-hint strong { color: #666; }
.code-actions {
    max-width: 320px;
    margin: 0 auto;
}

/* RECEIVE */
.receive-card {
    max-width: 340px;
    margin: 0 auto;
}
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.code-digit {
    width: 64px;
    height: 76px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    font-family: inherit;
    background: #fafafa;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    color: #111;
    caret-color: #f97316;
    outline: none;
    transition: border-color 0.15s;
}
.code-digit:focus {
    border-color: #f97316;
    background: #fff;
}
.error-msg {
    text-align: center;
    color: #e11d48;
    font-size: 13px;
    margin-top: 14px;
    padding: 10px 14px;
    background: #fff1f2;
    border-radius: 10px;
}

/* FOUND FILES */
.found-card {
    max-width: 400px;
    margin: 0 auto;
}
.found-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}
.found-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}
.found-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
}
.found-file-name {
    font-size: 13px;
    color: #333;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}
.found-file-size {
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0;
}

/* SECTIONS */
.section {
    padding: 64px 24px;
}
.section-gray { background: #fafafa; }
.section-inner {
    max-width: 720px;
    margin: 0 auto;
}
.section h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin-bottom: 6px;
}
.section-sub {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 36px;
}

/* STEPS */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.step {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
}
.section-gray .step { background: #fff; }
.step-num {
    width: 36px;
    height: 36px;
    background: #f97316;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin: 0 auto 12px;
}
.step h3 { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 6px; }
.step p { font-size: 13px; color: #777; line-height: 1.5; }

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.feature {
    padding: 22px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
}
.feature h3 { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 4px; }
.feature p { font-size: 13px; color: #777; line-height: 1.5; }

/* CASES */
.cases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.case {
    padding: 22px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 14px;
}
.case h3 { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 6px; }
.case p { font-size: 13px; color: #777; line-height: 1.5; }

/* FAQ */
.faq-list {
    max-width: 560px;
    margin: 0 auto;
}
.faq {
    border-bottom: 1px solid #eee;
}
.faq:last-child { border-bottom: none; }
.faq summary {
    padding: 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p {
    padding: 0 0 16px;
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* SEO */
.seo-section { background: #fafafa; }
.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.seo-block {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}
.seo-block strong {
    font-size: 12px;
    color: #f97316;
    display: block;
    margin-bottom: 4px;
}
.seo-block p {
    font-size: 11px;
    color: #aaa;
    line-height: 1.6;
}

/* FOOTER */
.footer {
    background: #111;
    color: #888;
    padding: 40px 24px 28px;
}
.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
}
.footer-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}
.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}
.footer-links a:hover { color: #f97316; }
.footer-copy { font-size: 11px; color: #444; }

/* TOAST */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 11px 22px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.25s;
    z-index: 100;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .main { padding: 32px 20px 40px; }
    .hero-text h1 { font-size: 24px; }
    .hero-sub { font-size: 14px; }
    .steps { grid-template-columns: 1fr; gap: 10px; }
    .features { grid-template-columns: 1fr; }
    .cases { grid-template-columns: 1fr; }
    .seo-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 20px; }
    .code-display { font-size: 44px; letter-spacing: 14px; padding-left: 14px; }
    .code-digit { width: 56px; height: 66px; font-size: 28px; }
    .dropzone { padding: 40px 20px; }
}
