:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(99, 102, 241, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

header {
    padding: 1.5rem 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

main {
    flex: 1;
    padding: 0;
}

.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.21;
    background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.shortener-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(40px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}

.shortener-container:focus-within {
    border-color: var(--primary-color);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="url"],
input[type="text"] {
    flex: 1;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

input[type="url"]:focus,
input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.result-area {
    margin-top: 2rem;
    display: none;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.short-url-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.short-url {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.copy-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 10px;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active {
    background: white;
    color: var(--bg-dark);
}

/* Features Section */
.section {
    padding: 100px 0;
    text-align: center;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 2rem; /* Added auto margin for centering */
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Upgrade */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    align-items: stretch;
}
.price-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.price-card.popular {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
}

.price-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.price-card ul {
    list-style: none;
    margin-bottom: 3rem;
    text-align: left;
    padding-left: 0;
    width: 100%;
    max-width: 200px; /* Constraints the list to center better */
}

.price-card .btn-primary {
    margin-top: auto;
}

.price-card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.price-card li i {
    color: #10b981;
}

footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    text-align: left;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.alias-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.alias-group input {
    flex: 1;
}

.alias-group .btn-primary {
    padding: 1.1rem 2.5rem;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .feature-grid, .pricing-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .shortener-container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .alias-group {
        flex-direction: column;
    }
    .alias-group button {
        width: 100%;
    }
    .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
}

/* Premium Pricing Switcher - Matched with Lang Switcher Style */
.pricing-switcher-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pricing-switcher {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 10px;
    width: 240px;
    border: none;
}

.pricing-switcher button {
    flex: 1;
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.pricing-switcher button.active {
    color: var(--bg-dark);
}

.pricing-switcher .slider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    height: calc(100% - 0.5rem);
    background: white;
    border-radius: 8px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.pricing-switcher.yearly-active .slider {
    left: 50%;
}

.save-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.4rem;
    border-radius: 26px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    animation: scaleUp 0.3s forwards;
}

@keyframes scaleUp {
    to { transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: white;
}

.modal-icon {
    font-size: 3.2rem;
    color: #10b981;
    margin-bottom: 1.2rem;
}

.modal-url-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 10px;
    margin: 1.6rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
    word-break: break-all;
}
