:root {
    /* Light mode colors */
    --primary: hsl(230, 85%, 25%);
    --primary-foreground: hsl(230, 5%, 98%);
    --secondary: hsl(230, 15%, 95%);
    --secondary-foreground: hsl(230, 15%, 15%);
    --accent: hsl(145, 70%, 45%);
    --accent-foreground: hsl(145, 10%, 15%);
    --background: hsl(230, 5%, 98%);
    --foreground: hsl(230, 15%, 15%);
    --muted: hsl(230, 6%, 86%);
    --muted-foreground: hsl(230, 15%, 35%);
    --border: hsl(230, 10%, 88%);
    --card: hsl(230, 5%, 96%);
    --card-foreground: hsl(230, 15%, 15%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: hsl(230, 80%, 65%);
        --primary-foreground: hsl(230, 5%, 8%);
        --secondary: hsl(230, 8%, 20%);
        --secondary-foreground: hsl(230, 10%, 90%);
        --accent: hsl(145, 60%, 55%);
        --accent-foreground: hsl(145, 10%, 85%);
        --background: hsl(230, 5%, 8%);
        --foreground: hsl(230, 10%, 90%);
        --muted: hsl(230, 6%, 16%);
        --muted-foreground: hsl(230, 10%, 65%);
        --border: hsl(230, 10%, 18%);
        --card: hsl(230, 5%, 10%);
        --card-foreground: hsl(230, 10%, 90%);
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    font-display: swap;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    height: 4rem;
}

.header .container {
    height: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--foreground);
}

.logo img {
    height: 20px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav {
    display: none;
    gap: 2rem;
}

.nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--foreground);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--muted);
}

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

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero.homepage-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .hero.homepage-hero .overlay {
        background: rgba(30, 30, 30, 0.8);
    }
}

.hero.homepage-hero {
    position: relative;
    background-image: url('images/hero-bg2.png');
    background-size: contain;
    background-position: center 85px;
    background-repeat: no-repeat;
}

.hero .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem;
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-display: swap;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

/* Feature Comparison */
.comparison {
    padding: 4rem 0;
    background-color: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-display: swap;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.plan-card.popular .limited {
    position: absolute;
    top: -0.95rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.plan-price-original {
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: normal;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.plan-period {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.plan-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 1.5rem;
}

.comparison-table {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    background-color: var(--muted);
    text-align: center;
    font-weight: 600;
}

.table-content {
    padding: 1.5rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-weight: 600;
    background-color: var(--muted);
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
    text-align: center;
}

.x-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--muted-foreground);
}

/* Final CTA */
.final-cta {
    padding: 4rem 0;
    background: linear-gradient(
        135deg,
        hsl(230, 85%, 25%, 0.1) 0%,
        hsl(145, 70%, 45%, 0.1) 100%
    );
    text-align: center;
}

.final-cta h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-display: swap;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    background-color: var(--muted);
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--muted-foreground);
    max-width: 24rem;
}

.footer-section h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--foreground);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .features-list {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

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

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Enterprise and Partnership Sections */
.contact-section,
.enterprise-section,
.partnership-section {
    padding: 4rem 0;
    background-color: var(--card);
    border-top: 1px solid var(--border);
}

.enterprise-section {
    background: linear-gradient(
        135deg,
        hsl(230, 85%, 25%, 0.03) 0%,
        hsl(145, 70%, 45%, 0.03) 100%
    );
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(230, 85%, 25%, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-submit {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.form-submit:hover {
    opacity: 0.9;
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-success {
    display: none;
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Dark mode support for elements that need it */
@media (prefers-color-scheme: dark) {
    .header {
        background-color: rgba(0, 0, 0, 0.95);
    }
}

/* Responsive Design for Forms */
@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}
