/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: #0b1120;
    /* Matching --bg-main */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    --bg-main: #0b1120;
    --bg-card: #151e32;
    --bg-card-inner: #1e293b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --success-border: #059669;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --border-light: rgba(255, 255, 255, 0.05);
}

.vp-terminal-wrapper {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05), transparent 25%), radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08), transparent 25%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
    /* Removed padding-bottom to avoid white gaps with footer */
}

/* Navbar */
.t-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border-light);
}

.t-nav-logo {
    font-size: 1.2rem;
    font-weight: 500;
}

.t-nav-logo strong {
    color: var(--success);
}

.t-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.t-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.t-nav-links a:hover {
    color: #fff;
}

.t-nav-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

/* Hero */
.t-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    gap: 15px;
    max-width: 800px;
}

.t-hero-icon {
    font-size: 2.5rem;
}

.t-hero-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.t-hero-text p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.t-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Card Panels */
.t-card {
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 850px;
    margin: 0 auto 30px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Step Header */
.t-step-header,
.t-success-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.t-step-number {
    background: #6366f1;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.t-check-icon {
    background: var(--success);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.t-step-header h2,
.t-success-header h2 {
    margin: 0 0 5px;
    font-size: 1.4rem;
    color: #fff;
}

.t-step-header p,
.t-success-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Selectors */
.t-lang-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.t-lang-col {
    flex: 1;
}

.t-lang-col label {
    display: block;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-weight: 600;
}

.t-select {
    width: 100%;
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
}

.t-select-active {
    border-color: var(--success-border);
}

.t-arrow {
    color: var(--text-muted);
    font-weight: bold;
    margin-top: 25px;
}

/* Upload / Input Area */
.t-input-area {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.t-input-area.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.t-folder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.t-upload-title {
    margin: 0 0 5px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.t-upload-sub {
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.t-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.t-btn-outline {
    background: transparent;
    border-color: var(--border);
    color: #e2e8f0;
}

.t-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.t-btn-primary {
    background: var(--primary);
    color: #fff;
}

.t-btn-primary:hover {
    background: var(--primary-hover);
}

.t-btn-success {
    background: var(--success);
    color: #fff;
}

.t-btn-success:hover {
    background: var(--success-border);
}

.t-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--border);
    font-size: 0.8rem;
}

.t-divider::before,
.t-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
    margin: 0 15px;
}

.t-textarea {
    width: 100%;
    height: 120px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    padding: 15px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
}

.t-textarea:focus {
    border-color: var(--primary);
}

/* Stats Grid */
.t-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.t-stat-box {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.t-stat-active {
    border-color: var(--success-border);
}

.t-stat-box h3 {
    margin: 0 0 5px;
    font-size: 1.8rem;
    color: var(--success);
}

.t-stat-box p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.t-stat-box:first-child h3 {
    color: #fff;
}

/* Settings Box */
.t-settings-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.t-settings-box h4 {
    margin: 0 0 15px;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-settings-row {
    display: flex;
    gap: 15px;
}

.t-setting-col {
    flex: 1;
}

.t-setting-col label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* Result Textarea */
.t-textarea-result {
    width: 100%;
    height: 300px;
    background: #fff;
    border: none;
    border-radius: 8px;
    color: #1e293b;
    padding: 20px;
    font-family: 'Times New Roman', serif;
    font-size: 12pt;
    resize: vertical;
    outline: none;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Actions */
.t-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Progress */
.t-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.t-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.t-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s ease;
}

/* Global Footer */
.vp-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    /* Removed margin-top to close the gap between sections */
    margin-top: 0;
    color: var(--text-muted);
}

.t-footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.t-footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.t-footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

.t-footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

/* Stunning Landing Page */
.t-landing-wrapper {
    background: var(--bg-main);
    color: #fff;
    overflow-x: hidden;
}

.t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.t-hero-section {
    padding: 100px 0;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 40%);
}

.t-hero-section .t-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.t-hero-content {
    flex: 1;
}

.t-badge-new {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.t-main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.t-main-title span {
    background: linear-gradient(90deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.t-lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.t-hero-actions {
    display: flex;
    gap: 20px;
}

.t-btn-glow {
    background: var(--primary);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s;
}

.t-btn-glow:hover {
    transform: translateY(-3px);
}

.t-btn-outline-glow {
    border: 1px solid var(--border);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.t-btn-outline-glow:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Floating Terminal Animation */
.t-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.t-floating-terminal {
    width: 100%;
    max-width: 500px;
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.t-terminal-header {
    background: #0f172a;
    padding: 12px 15px;
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.t-terminal-body {
    padding: 25px;
    font-family: 'Courier New', Courier, monospace;
}

.t-typing {
    color: #10b981;
    margin: 0 0 10px;
    font-size: 0.9rem;
    border-right: 2px solid #10b981;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(40, end) forwards infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* Features Grid */
.t-features-section {
    padding: 100px 0;
    background: #0f172a;
}

.t-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.t-section-title span {
    color: var(--primary);
}

.t-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.t-feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.t-feature-card:hover {
    border-color: var(--primary);
}

.t-f-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.t-feature-card h3 {
    margin: 0 0 15px;
    font-size: 1.5rem;
}

.t-feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Showcase Section */
.t-showcase-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
}

.t-showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.t-showcase-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

.t-contact-pills {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.t-contact-pills span {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid var(--border);
    font-weight: 600;
}

@media (max-width: 992px) {
    .t-hero-section .t-container {
        flex-direction: column;
        text-align: center;
    }

    .t-main-title {
        font-size: 3rem;
    }

    .t-hero-actions {
        justify-content: center;
    }

    .t-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .t-features-grid {
        grid-template-columns: 1fr;
    }
}