:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    padding-top: 64px; /* To prevent content from hiding behind fixed header */
}

.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.25rem;
}

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

.header-cta {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 4rem;
}

.hero {
    text-align: center;
    padding: 40px 0 80px;
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.command {
    background: var(--dark);
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Monaco', monospace;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.command::before {
    content: '$';
    color: var(--secondary);
    margin-right: 10px;
}

.section {
    padding: 1rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
}

.features, .plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature, .plan {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Added for button alignment */
}

.feature:hover, .plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.feature h3, .plan h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.pricing-header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
    color: white;
    margin: -40px -20px 60px;
}

.pricing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.price span {
    font-size: 1rem;
    opacity: 0.8;
}

.plan ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan ul li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

.plan.popular {
    background: linear-gradient(to bottom right, #4F46E5, #10B981);
    color: white;
    position: relative; /* Ensure positioning context */
    overflow: hidden;
}

.plan.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: 27px;
    right: -36px;
    background: var(--secondary);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg); /* Adjust rotation */
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plan.popular ul li::before {
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    width: 100%;
    margin-top: auto; /* Push button to the bottom */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.plan.popular .btn {
    background: white;
    color: var(--primary);
}

.plan.popular .btn:hover {
    background: var(--light);
}

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

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item .feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Tooltip Styles */
.copy-btn {
    position: absolute;
    top: 20px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.copy-btn .tooltip {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -35px;
    right: 50%;
    margin-right: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-btn:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.copy-icon {
    width: 20px;
    height: 20px;
}

/* Optional: Change cursor on focus for better UX */
.copy-btn:focus {
    outline: none;
    color: var(--primary-dark);
}


@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .command {
        font-size: 0.9rem;
        padding: 1rem;
    }

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

    .container {
        padding: 20px;
    }

    .plans, .features {
        grid-template-columns: 1fr;
    }

    .pricing-header {
        padding: 40px 20px;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }
}
