:root {
    --primary-color: #4F46E5;
    /* A trust-inspiring, modern Indigo */
    --primary-hover: #4338CA;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --text-dark: #F9FAFB;
    --text-muted: #94A3B8;
    --bg-light: #1E293B;
    /* Slightly lighter for contrast */
    --white: #0F172A;
    --border-color: #334155;
    /* More visible border */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

main {
    flex: 1;
}


html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
}

.btn-text {
    color: var(--text-muted);
    font-weight: 600;
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 300px;
}

/* Navigation */
.dev-banner {
    background-color: #FEF3C7;
    color: #92400E;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #FDE68A;
    word-break: break-word;
    overflow-wrap: break-word;
}

[data-theme="dark"] .dev-banner {
    background-color: #451A03;
    color: #FDE68A;
    border-bottom: 1px solid #78350F;
}

.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.lang-switch a {
    transition: color 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    background-color: #E0E7FF;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

[data-theme="dark"] .badge {
    background-color: rgba(79, 70, 229, 0.2);
    color: #818CF8;
}

.dev-badge {
    background-color: #FEF3C7;
    color: #92400E;
}

[data-theme="dark"] .dev-badge {
    background-color: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.floating-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    width: 80%;
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
}

.card-right {
    align-self: flex-end;
    animation-delay: 1s;
}

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

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

.floating-card p {
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* How it works */
.how-it-works {
    padding: 20px 0 100px 0;
    margin-top: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .step-card {
    border-color: var(--border-color);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.step-card p {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 0;
}

/* Benefits */
.benefits {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px auto 24px auto;
    width: 100%;
    max-width: 360px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

select.form-input option {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background-color: var(--white);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.25);
}

.signup-form .btn {
    width: 100%;
    max-width: none;
    margin-top: 8px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
}

.icon-box {
    background: #E0E7FF;
    color: var(--primary-color);
    padding: 16px;
    border-radius: 12px;
    height: fit-content;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .icon-box {
    background: rgba(79, 70, 229, 0.2);
    color: #818CF8;
}

.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-item p {
    color: var(--text-muted);
}

/* CTA / Pricing */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 40px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.pricing-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.specs {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.price {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.currency {
    font-size: 2rem;
    margin-top: 8px;
}

.one-time {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
}

.guarantee {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .btn-text {
        margin-top: 10px;
    }

    .hero-image {
        display: none;
        /* Hide on small screens for simplicity */
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    /* Navbar mobile adjustments */
    .navbar {
        padding: 15px 0;
    }

    .logo {
        font-size: 1.1rem;
        gap: 6px;
    }

    .nav-actions {
        gap: 12px;
    }

    .lang-switch {
        font-size: 0.85rem;
        gap: 4px;
    }

    .btn-outline {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .logo span {
        display: none;
        /* Hide brand name text on extremely small screens, keep icon */
    }
}

/* Step 1 Visualization */
.step-viz {
    margin-top: 16px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    border: 2px dashed var(--border-color);
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

/* Success Message Override */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: successFadeIn 0.4s ease-out forwards;
}

@keyframes successFadeIn {
    0% {
        transform: scale(0.95) translateY(10px);
        opacity: 0;
    }

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

[data-theme="dark"] .success-message {
    background: rgba(10, 10, 10, 0.6);
}

.success-message h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.success-message p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

[data-theme="dark"] .step-viz {
    background: rgba(0, 0, 0, 0.2);
}

.viz-server-box {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.viz-server-box i {
    width: 32px;
    height: 32px;
}

.viz-file {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    top: -40px;
    z-index: 1;
    animation: dropIn 3s infinite ease-in;
}

[data-theme="dark"] .viz-file {
    background: #1E293B;
}

.viz-file i {
    width: 16px;
    height: 16px;
}

.viz-file-1 {
    left: calc(50% - 40px);
    animation-delay: 0s;
}

.viz-file-2 {
    left: calc(50% + 10px);
    animation-delay: 1s;
}

.viz-file-3 {
    left: calc(50% - 15px);
    animation-delay: 2s;
}

@keyframes dropIn {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        transform: translateY(110px) rotate(45deg);
        opacity: 1;
    }

    70% {
        opacity: 0;
        transform: translateY(110px) rotate(45deg);
    }

    100% {
        transform: translateY(110px) rotate(45deg);
        opacity: 0;
    }
}

/* Step 2 Visualization */
.step-viz-2 {
    align-items: center;
}

.viz-phone {
    position: relative;
    width: 48px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 2;
}

.viz-phone i {
    width: 24px;
    height: 24px;
}

.viz-scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    top: 0;
    left: 0;
    animation: scan 2s infinite ease-in-out;
}

@keyframes scan {

    0%,
    100% {
        top: 10%;
    }

    50% {
        top: 90%;
    }
}

.viz-tag {
    position: absolute;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 1;
    opacity: 0;
    animation: popUp 4s infinite;
}

[data-theme="dark"] .viz-tag {
    background: #1E293B;
}

.viz-tag-1 {
    top: 25px;
    left: 10%;
    animation-delay: 0.5s;
}

.viz-tag-2 {
    bottom: 25px;
    right: 5%;
    animation-delay: 2.5s;
}

@keyframes popUp {
    0% {
        transform: scale(0.8) translateY(10px);
        opacity: 0;
    }

    10% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    40% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    50% {
        transform: scale(0.8) translateY(-10px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Step 3 Visualization */
.step-viz-3 {
    align-items: center;
}

.viz-folder {
    position: relative;
    width: 72px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 2;
}

.viz-folder i {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.viz-folder-label {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.viz-linked-file {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--bg-light);
    border: 1px dashed var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    z-index: 1;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

[data-theme="dark"] .viz-linked-file {
    background: #1E293B;
}

.viz-linked-file i {
    width: 14px;
    height: 14px;
}

.viz-linked-1 {
    top: 20px;
    left: 15%;
    animation-delay: 0s;
    animation-name: magnetPull1;
}

.viz-linked-2 {
    bottom: 20px;
    left: 25%;
    animation-delay: 1s;
    animation-name: magnetPull2;
}

.viz-linked-3 {
    top: 30px;
    right: 15%;
    animation-delay: 0.5s;
    animation-name: magnetPull3;
}

@keyframes magnetPull1 {
    0% {
        transform: translate(-10px, -10px) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: translate(15px, 10px) scale(1.1);
        opacity: 1;
    }
}

@keyframes magnetPull2 {
    0% {
        transform: translate(-15px, 15px) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: translate(20px, -10px) scale(1.1);
        opacity: 1;
    }
}

@keyframes magnetPull3 {
    0% {
        transform: translate(15px, -15px) scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: translate(-20px, 10px) scale(1.1);
        opacity: 1;
    }
}