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

:root {
    --bg: #F8F8F6;
    --white: #FFFFFF;
    --black: #1D1D1F;
    --gray-1: #86868B;
    --gray-2: #AEAEB2;
    --gray-3: #D1D1D6;
    --gray-4: #E8E8ED;
    --gray-5: #F2F2F7;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
}

html {
    scroll-behavior: smooth;
}

.hidden {
    display: none !important;
}

body {
    font-family: "Inter", -apple-system, system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ====== NAVBAR ====== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--gray-4);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-logo {
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.3px;
}

.navbar-video-btn {
    display: inline-block;
    background: #D4652A;
    padding: 10px 24px;
    transform: skewX(-8deg);
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.navbar-video-btn:hover {
    opacity: 0.9;
    transform: skewX(-8deg) translateY(-1px);
}

.navbar-video-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: skewX(8deg);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.navbar-video-inner svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-1);
    text-decoration: none;
    transition: color 0.2s;
}

.navbar-link:hover {
    color: var(--black);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--black);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-user.hidden {
    display: none;
}

.navbar-user-email {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    background: transparent;
    border: 1.5px solid var(--gray-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    border-color: var(--gray-1);
    background: var(--white);
}

/* ====== HERO ====== */

.hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 144px 24px 96px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    background: var(--black);
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 22px;
    margin-bottom: 32px;
    letter-spacing: 0.2px;
}

.hero-headline {
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--black);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 17px;
    color: var(--gray-1);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto;
}

/* ====== MAIN CONTENT ====== */

.main-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 96px;
}

/* ====== TOOL CARD ====== */

.tool-card {
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--gray-4);
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tool-card-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tool-card-sub {
    font-size: 14px;
    color: var(--gray-1);
    margin-bottom: 28px;
}

/* ====== UPLOAD ZONE ====== */

.upload-zone {
    border: 2px dashed var(--gray-3);
    border-radius: 0;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    margin-bottom: 24px;
}

.upload-zone:hover {
    border-color: var(--gray-1);
    background: var(--gray-5);
}

.upload-zone.dragging {
    border-color: var(--gray-1);
    background: var(--gray-5);
}

.upload-zone-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-5);
    border-radius: var(--radius-sm);
}

.upload-zone-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--gray-1);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upload-zone-text {
    font-size: 15px;
    color: var(--black);
}

.upload-zone-text strong {
    font-weight: 600;
}

.upload-zone-formats {
    font-size: 15px;
    color: var(--gray-2);
    margin-top: 6px;
}

.file-input-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.file-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    padding: 12px 0;
    text-align: center;
}

.result-area {
    margin-top: 24px;
    padding: 20px;
    background: #E8F5E8;
    border: 1px solid #C3E6C3;
    border-radius: 8px;
    text-align: center;
}

.result-text {
    font-size: 15px;
    color: #2D6A2D;
    margin-bottom: 12px;
}

.result-download {
    display: inline-block;
    margin-top: 4px;
}

/* ====== PROGRESS BAR ====== */

.progress-container {
    margin-top: 24px;
}

.progress-status {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    text-align: center;
    margin-bottom: 16px;
}

.progress-track {
    width: 100%;
    height: 32px;
    background: var(--gray-4);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #D4652A;
    transition: width 0.3s ease;
}

.progress-pct {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
}

.progress-pct.light {
    color: var(--white);
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.progress-footer-text {
    font-size: 15px;
    color: var(--gray-2);
}

/* ====== MODE TOGGLE ====== */

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.mode-toggle-label {
    flex: 1;
}

.mode-toggle-label-left {
    text-align: right;
}

.mode-toggle-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.mode-toggle-title.active {
    color: var(--black);
}

.mode-toggle-title.inactive {
    color: var(--gray-3);
}

.mode-toggle-desc {
    font-size: 12px;
    transition: color 0.3s ease;
}

.mode-toggle-desc.active {
    color: var(--gray-1);
}

.mode-toggle-desc.inactive {
    color: var(--gray-3);
}

.toggle-track {
    width: 64px;
    min-width: 64px;
    height: 34px;
    border-radius: 34px;
    background: var(--black);
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-track.on {
    background: #D4652A;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    transition: left 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.toggle-track.on .toggle-thumb {
    left: 33px;
}

/* ====== MODE INFO BOXES ====== */

.mode-info {
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.mode-info.hidden {
    display: none;
}

.mode-info-ai {
    background: #E8F0FE;
    border: 1px solid #B8D0F0;
}

.mode-info-ai .mode-info-title {
    color: #1A4B8E;
}

.mode-info-ai .mode-info-item {
    color: #2E6ABF;
}

.mode-info-all {
    background: #FDF0E8;
    border: 1px solid #F0C8A8;
}

.mode-info-all .mode-info-title {
    color: #8E3A0A;
}

.mode-info-all .mode-info-item {
    color: #B85C1A;
}

.mode-info-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.mode-info-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mode-info-item {
    font-size: 13px;
    font-weight: 500;
}

.mode-info-item::after {
    content: " · ";
}

.mode-info-item:last-child::after {
    content: "";
}

.tool-card-action {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    gap: 10px;
}

.tool-card-action svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
    flex-shrink: 0;
}

/* ====== VIDEO CARD ====== */

.video-card {
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--gray-4);
    display: flex;
    align-items: center;
    gap: 16px;
}

.video-card-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.video-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--gray-1);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-card-text {
    flex: 1;
    min-width: 0;
}

.video-card-title {
    font-size: 14px;
    font-weight: 600;
}

.video-card-desc {
    font-size: 12px;
    color: var(--gray-1);
}

.video-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: var(--black);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
}

.video-card-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.video-card-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ====== SECTION ====== */

.section {
    max-width: 960px;
    margin: 0 auto;
    padding: 96px 24px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-2);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--gray-1);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 48px;
}

.section-flush-top {
    padding-top: 0;
}

/* ====== FEATURE GRID ====== */

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

.feature-card {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--gray-4);
    border-radius: var(--radius-md);
    transition: box-shadow 0.25s;
}

.feature-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.feature-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-5);
    border-radius: 8px;
    margin-bottom: 16px;
}

.feature-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--black);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card-text {
    font-size: 13px;
    color: var(--gray-1);
    line-height: 1.55;
}

/* ====== PRESERVED ROW ====== */

.preserved-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.preserved-item {
    text-align: center;
    padding: 28px 12px;
    background: var(--white);
    border: 1px solid var(--gray-4);
    border-radius: var(--radius-md);
    transition: box-shadow 0.25s;
}

.preserved-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.preserved-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-5);
    border-radius: 10px;
    margin: 0 auto 12px;
}

.preserved-item-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--black);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.preserved-item-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.preserved-item-desc {
    font-size: 12px;
    color: var(--gray-2);
}

/* ====== COMING SOON ====== */

.cta-card {
    padding: 56px;
    background: var(--white);
    border: 1px solid var(--gray-4);
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.cta-content .section-label,
.cta-content .section-title {
    margin-bottom: 12px;
}

.cta-content .section-desc {
    margin-bottom: 32px;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--black);
}

.cta-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-5);
    border-radius: 50%;
    flex-shrink: 0;
}

.cta-check svg {
    width: 12px;
    height: 12px;
    stroke: var(--black);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta-email-row {
    display: flex;
    gap: 10px;
}

.cta-email-input {
    flex: 1;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 14px;
    background: var(--gray-5);
    border: 1.5px solid var(--gray-4);
    border-radius: var(--radius-full);
    color: var(--black);
    outline: none;
    transition: border-color 0.2s;
}

.cta-email-input::placeholder {
    color: var(--gray-2);
}

.cta-email-input:focus {
    border-color: var(--black);
}

.cta-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--gray-5);
    border: 1px solid var(--gray-4);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-preview svg {
    width: 48px;
    height: 48px;
    stroke: var(--gray-2);
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cta-preview-label {
    font-size: 12px;
    color: var(--gray-2);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ====== AUTH MODAL ====== */

.auth-pill-row {
    padding: 0 28px 18px;
    display: flex;
    gap: 10px;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    color: var(--gray-2);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-pill.active {
    background: var(--gray-5);
    border-color: var(--gray-3);
    color: var(--black);
}

.auth-pill svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-panel {
    padding: 28px;
}

.auth-panel.hidden {
    display: none;
}

.auth-panel-desc {
    font-size: 15px;
    color: var(--gray-1);
    line-height: 1.7;
    margin-bottom: 24px;
}

.auth-divider {
    border-top: 1px solid var(--gray-4);
}

/* ====== CONTACT MODAL ====== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.visible {
    display: flex;
}

.modal {
    background: var(--white);
    width: 100%;
    max-width: 580px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--gray-4);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 0.6;
}

.modal-close svg {
    width: 32px;
    height: 32px;
    fill: var(--black);
}

.modal-header-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
}

.modal-body {
    padding: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-1);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    border: 1px solid var(--gray-3);
    border-radius: 8px;
    outline: none;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: var(--gray-2);
}

.form-input:focus {
    border-color: var(--black);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    margin-top: 24px;
}

.form-link {
    font-size: 15px;
    color: var(--gray-1);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    text-align: right;
    margin-bottom: 8px;
}

.form-link-center {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.form-status {
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.form-status.hidden {
    display: none;
}

.form-status.success {
    background: #E8F5E8;
    color: #2D6A2D;
    border: 1px solid #C3E6C3;
}

.form-status.error {
    background: #FDE8E8;
    color: #8B2020;
    border: 1px solid #F0C3C3;
}

/* ====== FOOTER ====== */

.footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-4);
}

.footer-text {
    font-size: 13px;
    color: var(--gray-2);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--gray-2);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--black);
}

/* ====== RESPONSIVE ====== */

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar-video-btn {
        display: none;
    }

    .navbar-right {
        gap: 16px;
    }

    .hero {
        padding: 120px 20px 64px;
    }

    .main-content {
        padding: 0 20px 72px;
    }

    .tool-card {
        padding: 28px;
    }

    .video-card {
        flex-wrap: wrap;
    }

    .video-card-btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 72px 20px;
    }

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

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

    .cta-card {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }

    .cta-visual {
        display: none;
    }

    .cta-email-row {
        flex-direction: column;
    }

    .mode-toggle-title {
        font-size: 13px;
    }

    .mode-toggle-desc {
        font-size: 11px;
    }

    .footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .preserved-row {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        letter-spacing: -1px;
    }
}
/* ====== BOT CONFIRMATION BANNER ====== */

.bot-banner {
    margin: 0 28px 18px;
    padding: 18px 22px;
    background: #E8F0FE;
    border: 1px solid #B8D0F0;
    border-radius: 16px;
}

.bot-banner-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A4B8E;
    margin-bottom: 6px;
}

.bot-banner-text {
    font-size: 15px;
    color: #2E6ABF;
    line-height: 1.6;
}
