/* Custom Premium Styling for FitSteward Website */
:root {
    --bg-color: #0b0f17;
    --card-bg: rgba(22, 28, 45, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #10b981;
    --accent-light: #52e3b7;
    --accent-glow: rgba(16, 185, 129, 0.25);
    --success: #10b981;
    --error: #ef4444;
    --input-bg: rgba(15, 23, 42, 0.6);
    --glass-blur: blur(20px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header {
    background-color: rgba(11, 15, 23, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--accent);
    font-weight: 500;
    font-size: 16px;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
}

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

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #ffffff;
}

.nav-qq {
    color: var(--accent) !important;
}

.nav-qq:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #0b0f17;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #0b0f17 !important;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-success {
    background-color: #10b981;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #059669;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.badge-new {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #d2d6dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-badge {
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: rgba(11, 15, 23, 0.4);
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
}

/* Pricing & Checkout Section */
.pricing-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.product-info-card {
    padding: 48px;
    background-color: rgba(255, 255, 255, 0.01);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-info-card .badge {
    align-self: flex-start;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.package-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-list li span {
    color: var(--accent);
    font-weight: 700;
}

.product-logo-show {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
}

.product-logo-show img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.product-logo-show strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
}

.product-logo-show span {
    color: var(--text-secondary);
    font-size: 12px;
}

.checkout-form-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-form-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.plan-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-option {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.01);
}

.plan-option:hover {
    border-color: rgba(16, 185, 129, 0.4);
    background-color: rgba(16, 185, 129, 0.02);
}

.plan-option.active {
    border-color: var(--accent);
    background-color: rgba(16, 185, 129, 0.05);
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff;
}

.plan-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.price-period {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-badge {
    background: var(--accent);
    color: #0b0f17;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.error-tip {
    display: none;
    color: var(--error);
    font-size: 12px;
    margin-top: 6px;
}

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 15, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    background-color: #121824;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}

.pay-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.pay-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.pay-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.qr-container {
    text-align: center;
    margin-bottom: 24px;
}

.mock-qr {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px auto;
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.qr-box {
    width: 100%;
    height: 100%;
    border: 4px solid #1f2937;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #10b981;
    animation: qr-scan 2.5s ease-in-out infinite alternate;
}

@keyframes qr-scan {
    0% { top: 0%; }
    100% { top: 96%; }
}

.qr-icon {
    font-size: 32px;
}

.pay-instructions {
    font-size: 14px;
    color: var(--text-secondary);
}

.sandbox-banner {
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.sandbox-banner h4 {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 700;
}

.sandbox-banner p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Success Container */
.success-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.success-container.open {
    display: block;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.key-box {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: left;
}

.key-box label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.key-box textarea {
    width: 100%;
    height: 70px;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-family: monospace;
    font-size: 11px;
    resize: none;
    outline: none;
    margin-bottom: 12px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    background-color: #090c13;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }
    .product-info-card {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 32px;
    }
    .checkout-form-card {
        padding: 32px;
    }
    .hero-title {
        font-size: 36px;
    }
    .nav {
        display: none;
    }
}
