/* ========================================
   CSS Variables & Reset
   ======================================== */

:root {
    --color-primary-orange: #ea8d31;
    /* Refined orange */
    --color-primary-hover: #d57b22;
    --color-icon-teal: #43bdab;
    --color-stats-blue: #4e8ecb;
    --color-background: #ffffff;
    --color-text: #111827;
    /* Darker, sharper text */
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-white: #ffffff;
    --color-gray: #f9fafb;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.75rem;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* ========================================
   Layout
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========================================
   Header
   ======================================== */

.header {
    background-color: rgba(255, 255, 255, 1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav {
    display: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0 auto;
}

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

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

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

/* ========================================
   Buttons
   ======================================== */

.btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border-color: var(--color-primary-orange);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 141, 49, 0.2);
}

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

.btn-outline:hover {
    background-color: #fffaf5;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ========================================
   Hero Section
   ======================================== */

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

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #111827;
    letter-spacing: -0.025em;
}

.hero-content>p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

/* v0 block tag style */
.hero-tag {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }

    .hero-content h1 {
        font-size: 3.75rem;
    }
}

.dashboard-preview {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    line-height: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Stats Section
   ======================================== */

.stats {
    background-color: #fafbfc;
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4e8ecb;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }

    .stat-number {
        font-size: 3.5rem;
    }
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: 6rem 0;
}

.features h2,
.how-it-works h2,
.benefits h2,
.partner-websites h2,
.pricing h2,
.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
    letter-spacing: -0.025em;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
    background-color: var(--color-white);
}

.feature-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-icon-teal);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

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

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
    padding: 6rem 0;
    background-color: var(--color-gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
}

.step-number {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--color-text-muted);
}

/* ========================================
   Partner Websites Section
   ======================================== */

.partner-websites {
    padding: 4rem 0;
    background: linear-gradient(to bottom right, #ffffff, rgba(239, 246, 255, 0.3), rgba(236, 254, 255, 0.3));
    text-align: center;
}

.partner-websites h2 {
    text-align: center;
}

.partner-websites .section-subtitle {
    text-align: center;
}

.partner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.partner-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-white);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-icon-teal);
}

.partner-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f3f4f6;
    position: relative;
}

.partner-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-image img {
    transform: scale(1.02);
}

.partner-info {
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.partner-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.partner-info p {
    font-size: 0.9375rem;
    color: var(--color-icon-teal);
    font-weight: 500;
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits {
    padding: 6rem 0;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.checkmark {
    color: var(--color-icon-teal);
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing {
    width: 100%;
    border-top: 1px solid #e5e7eb;
    background-color: #f5f5f5;
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .pricing {
        padding: 5rem 0;
    }
}

@media (min-width: 768px) {
    .pricing {
        padding: 7rem 0;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    background-color: var(--color-white);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-card-featured {
    border: 2px solid var(--color-primary-orange);
    position: relative;
    transform: none;
}

.pricing-card-featured:hover {
    transform: none;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 1.5rem 0 0.5rem;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text);
}

.period {
    color: var(--color-text-muted);
}

.plan-description {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex: 1;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list li:before {
    content: "✓";
    color: var(--color-primary-orange);
    font-weight: 700;
    margin-right: 0;
}

.pricing-card .btn {
    width: 100%;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    border-top: 1px solid #e5e7eb;
    padding: 4rem 0;
    text-align: center;
    background-color: #ffffff;
}

@media (min-width: 640px) {
    .cta-section {
        padding: 5rem 0;
    }
}

@media (min-width: 768px) {
    .cta-section {
        padding: 6rem 0;
    }
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
    letter-spacing: -0.025em;
}

.cta-section p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin: 0 auto 2rem;
    max-width: 600px;
}

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

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    color: var(--color-text);
    padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 300px;
}

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

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

.footer-section ul li a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--color-text);
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ========================================
   Responsive Typography
   ======================================== */

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features h2,
    .how-it-works h2,
    .benefits h2,
    .partner-websites h2,
    .pricing h2,
    .cta-section h2 {
        font-size: 1.875rem;
    }
}