/* Reset & Base Styles */
:root {
    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-light: #818cf8;
    /* Indigo 400 */
    --primary-dark: #3730a3;
    /* Indigo 800 */

    --accent: #0ea5e9;
    /* Sky 500 */
    --success: #10b981;
    /* Emerald 500 */
    --success-light: #d1fae5;
    /* Emerald 100 */
    --warning: #f59e0b;
    /* Amber 500 */
    --danger: #ef4444;
    /* Red 500 */

    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    /* Slate 50 */

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #0f172a;
    /* Slate 500 */

    --border-color: #e2e8f0;
    /* Slate 200 */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.4), rgba(167, 139, 250, 0.4));
    top: -150px;
    left: -150px;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, rgba(14, 165, 233, 0.3), rgba(56, 189, 248, 0.3));
    top: 15%;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

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

code {
    font-family: 'Consolas', monospace;
    background: var(--bg-alt);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: var(--primary-dark);
    border: 1px solid var(--border-color);
}

.success-color {
    color: var(--success);
}

.primary-color {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo i {
    font-size: 1.75rem;
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top center, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-alt);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 1rem;
}

.secure-badge i {
    color: var(--success);
}

/* Hero Visuals */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.mockup-window {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-window:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.mockup-body {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: #fafaf9;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.file-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.file-item i {
    font-size: 3rem;
}

.txt-file i {
    color: var(--text-muted);
}

.key-file {
    border-color: var(--success);
    background: var(--success-light);
}

.key-file i {
    color: var(--success);
}

.filename {
    font-family: 'Consolas', monospace;
    font-size: 0.875rem;
    font-weight: 600;
}

.process-arrow {
    color: var(--primary);
    font-size: 2rem;
    animation: pulse-arrow 2s infinite ease-in-out;
}

@keyframes pulse-arrow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Glass Cards (Floating Elements) */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10;
}

.glass-card i {
    font-size: 1.25rem;
}

.float-anim-1 {
    top: -20px;
    right: -20px;
    animation: float 6s infinite ease-in-out;
}

.float-anim-2 {
    bottom: -30px;
    left: -20px;
    animation: float 5s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Guide Section */
.guide-section {
    padding: 6rem 0;
    background: var(--bg-alt);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connecting Line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color) 0%, var(--primary-light) 50%, var(--border-color) 100%);
    z-index: 0;
}

.step-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.3);
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.1;
    user-select: none;
}

.step-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.step-icon-wrapper.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.step-icon-wrapper.indigo {
    background: #e0e7ff;
    color: #4f46e5;
}

.step-icon-wrapper.emerald {
    background: #d1fae5;
    color: #059669;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-desc {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 2rem;
}

.step-image {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-top: auto;
}

/* Specific Step Visuals */
.fake-folder {
    font-size: 0.8rem;
    font-family: 'Consolas', monospace;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}

.folder-header {
    background: #f1f5f9;
    padding: 0.5rem;
    border-bottom: 1px solid #cbd5e1;
    color: #64748b;
}

.folder-content {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.f-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #334155;
}

.f-item.highlight {
    background: #fef3c7;
    border-left: 2px solid #f59e0b;
}

.f-item.new-highlight {
    background: #d1fae5;
    border-left: 2px solid #10b981;
    animation: pulse-bg 2s infinite;
}

@keyframes pulse-bg {

    0%,
    100% {
        background: #d1fae5;
    }

    50% {
        background: #a7f3d0;
    }
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
    transition: var(--transition-short);
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: #f5f3ff;
    color: var(--primary);
}

.upload-zone .upload-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.upload-zone .upload-icon.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    border-radius: var(--radius-xl);
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 500px;
}

/* Footer */
.footer {
    background: white;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.footer-text {
    color: var(--text-muted);
}

/* Animations classes for JS Observer */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .steps-container {
        gap: 1rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .cta-container {
        padding: 3rem;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-content p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav {
        display: none;
    }

    /* Simplified for mobile */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        align-items: center;
        margin: 0 auto;
    }

    .secure-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .mockup-body {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

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

    .steps-container::before {
        display: none;
    }

    .step-card {
        text-align: center;
    }

    .step-icon-wrapper {
        margin: 0 auto 1.5rem;
    }

    .step-number {
        top: 1rem;
        left: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}