/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary-color: #06b6d4;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

html, body {
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.875rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-medium);
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2px;
}

.logo-text {
    color: var(--text-medium);
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1;
    padding-bottom: 2px;
}

.btn-login {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-login:active {
    transform: translateY(0);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 4px;
    -webkit-overflow-scrolling: touch;
}

/* Hero Section */
.hero-section {
    position: relative;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 16px;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    letter-spacing: -1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: #38bdf8;
    text-shadow: 2px 2px 8px rgba(56, 189, 248, 0.5);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    line-height: 1.6;
    padding: 0 16px;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    top: 2px;
    white-space: nowrap;
    touch-action: manipulation;
    min-width: fit-content;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    min-height: auto;
    padding-bottom: 0;
}


.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Features Carousel */
.features-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 4px;
}

.features-carousel {
    overflow: hidden;
    width: 100%;
}

.features-grid {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.feature-card {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 0;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
    touch-action: manipulation;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.feature-card {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.feature-description {
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 0.9375rem;
}

/* About Section */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 8px 0 4px;
}

.about-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding: 0 16px;
}

/* Contacts Section */
.contacts-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 8px 0 4px;
}

.contact-description {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 16px;
}

.contact-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-icon {
    margin-bottom: 0.75rem;
}

.discord-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    word-break: break-word;
}

/* Paid Services Section */
.services-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 8px 0 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.service-card {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--gradient-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-period {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-features {
    text-align: left;
}

.service-feature {
    font-size: 0.875rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 0.25rem;
    padding-left: 1.25rem;
    position: relative;
}

.service-feature::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-feature.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.service-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.4;
    padding: 0 16px;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Features List Section */
.features-list-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 8px 0 4px;
}

.features-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.features-text {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.features-text p {
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    padding: 0;
}

.features-text p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 0;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    padding: 0 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.modal-note {
    color: var(--text-medium);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group input:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.btn-login.logged-in {
    background: var(--primary-color);
    color: white;
}

.btn-login.logged-in:hover {
    background: var(--primary-dark);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    touch-action: manipulation;
}

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.25rem;
        gap: 10px;
    }

    .logo img {
        height: 34px;
    }

    .btn-login {
        padding: 0.5625rem 1rem;
        font-size: 0.8125rem;
    }

    .hero-section {
        padding: 60px 16px;
        margin-bottom: 24px;
        min-height: 350px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section .main-logo-image {
        max-width: 350px;
    }

    .tab-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .tab-content {
        min-height: 350px;
    }

    .hero-section .main-logo-image {
        max-width: 350px;
    }

    .features-carousel-wrapper {
        padding: 0 45px;
    }

    .feature-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 0;
        padding: 1.5rem;
    }

    .features-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .feature-icon {
        font-size: 2.25rem;
    }

    .feature-title {
        font-size: 1.0625rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

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

    .about-text {
        font-size: 0.9375rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 0.625rem 0;
    }

    .logo-text {
        display: none;
    }

    .logo img {
        height: 32px;
    }

    .btn-login {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .hero-section {
        padding: 40px 12px;
        margin-bottom: 20px;
        min-height: 300px;
    }

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

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-section .main-logo-image {
        max-width: 280px;
    }

    .tabs {
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .tab-content {
        min-height: 320px;
    }

    .hero-section .main-logo-image {
        max-width: 280px;
    }

    .features-carousel-wrapper {
        padding: 0 40px;
    }

    .feature-card {
        flex: 0 0 100%;
        min-width: 0;
        padding: 1.25rem;
    }

    .features-columns {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .features-text {
        padding: 1.25rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.8125rem;
    }

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

    .about-content {
        padding: 16px 0;
    }

    .about-text {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    .footer {
        padding: 0.875rem 0;
    }

    .footer p {
        font-size: 0.75rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .tab-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.375rem;
    }
}
