/* Byzantine Purple Design System for Kindly API */
:root {
    /* Byzantine Colors */
    --byzantine-primary: #703C8B;
    --byzantine-dark: #4A2659;
    --byzantine-light: #9B5FB8;
    --byzantine-glow: #B47DD4;
    --royal-gold: #FFD700;
    --warm-gold: #FFA500;
    --pearl: #FAF7FF;
    --midnight: #1A0F26;
    --silver: #E8E2F0;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--midnight);
    background: var(--pearl);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xl);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--byzantine-primary);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-menu a {
    color: var(--midnight);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--byzantine-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--warm-gold) 0%, var(--royal-gold) 100%);
    color: var(--midnight);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--byzantine-primary);
    border: 2px solid var(--byzantine-primary);
}

.btn-secondary:hover {
    background: var(--byzantine-primary);
    color: white;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, rgba(112, 60, 139, 0.05) 0%, rgba(255, 215, 0, 0.03) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--byzantine-primary) 0%, var(--byzantine-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--midnight);
    opacity: 0.8;
    margin-bottom: var(--spacing-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-3xl);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--byzantine-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--midnight);
    opacity: 0.7;
}

/* Sections */
section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--byzantine-primary);
}

.section-description {
    font-size: 1.25rem;
    text-align: center;
    color: var(--midnight);
    opacity: 0.8;
    margin-bottom: var(--spacing-2xl);
}

/* Pricing Section */
.pricing {
    background: white;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

/* Savings Badge */
.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--warm-gold) 0%, var(--royal-gold) 100%);
    color: var(--midnight);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Value Proposition */
.value-prop {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--pearl);
    border-radius: 20px;
    margin-bottom: var(--spacing-3xl);
    border: 1px solid rgba(112, 60, 139, 0.1);
}

.value-prop h3 {
    font-size: 1.5rem;
    color: var(--byzantine-primary);
    margin-bottom: var(--spacing-sm);
}

/* Cost Comparison */
.cost-comparison {
    margin-bottom: var(--spacing-3xl);
}

.cost-comparison h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--byzantine-primary);
    margin-bottom: var(--spacing-2xl);
}

/* Pricing Graphs */
.pricing-graphs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

/* Graph Card */
.graph-card {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--silver);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.graph-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--warm-gold) 0%, var(--royal-gold) 100%);
}

.graph-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(112, 60, 139, 0.15);
}

.tier-header {
    margin-bottom: var(--spacing-xl);
}

.tier-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--byzantine-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.tier-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: var(--byzantine-light);
    color: white;
    border-radius: 100px;
    font-weight: 500;
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--midnight);
}

.tier-price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.6;
}

/* Bar Graph */
.bar-graph {
    position: relative;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, rgba(232, 226, 240, 0.2) 100%);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.bar-container {
    position: absolute;
    bottom: var(--spacing-md);
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-container.current {
    left: 10%;
}

.bar-container.kindly {
    right: 10%;
}

.bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bar.current {
    background: linear-gradient(135deg, var(--byzantine-primary) 0%, var(--byzantine-dark) 100%);
}

.bar.kindly {
    background: linear-gradient(45deg, var(--warm-gold) 0%, var(--royal-gold) 100%);
    box-shadow: 0 -4px 20px rgba(255, 215, 0, 0.3);
}

.bar:hover {
    transform: scaleY(1.05);
    filter: brightness(1.1);
}

.bar-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.bar-value {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.bar-title {
    margin-top: 10px;
    font-size: 0.75rem;
    text-align: center;
    color: var(--midnight);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Savings Info */
.savings-info {
    background: var(--pearl);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.savings-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
}

.savings-row span:first-child {
    color: var(--midnight);
    opacity: 0.7;
}

.savings-row span:last-child {
    font-weight: 600;
    color: var(--byzantine-dark);
}

.savings-row.total {
    border-top: 2px solid var(--silver);
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    font-size: 1rem;
}

.savings-row.total span:last-child {
    color: var(--byzantine-primary);
    font-size: 1.125rem;
}

/* ROI Indicator */
.roi-indicator {
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--warm-gold) 0%, var(--royal-gold) 100%);
    border-radius: 12px;
    font-weight: 700;
    color: var(--midnight);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

/* Pricing Features */
.pricing-features {
    margin-top: var(--spacing-3xl);
}

.pricing-features h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--byzantine-primary);
    margin-bottom: var(--spacing-2xl);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

/* Pricing Card */
.pricing-card {
    background: white;
    border: 2px solid var(--silver);
    border-radius: 16px;
    padding: var(--spacing-2xl);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--royal-gold);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--royal-gold);
    color: var(--midnight);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--byzantine-primary);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--midnight);
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.6;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.pricing-card li {
    padding: var(--spacing-sm) 0;
    color: var(--midnight);
    opacity: 0.8;
}

/* Features Section */
.features {
    background: white;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--pearl);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(112, 60, 139, 0.1);
    border-color: var(--byzantine-light);
    background: white;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(112, 60, 139, 0.1) 0%, rgba(180, 125, 212, 0.1) 100%);
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--byzantine-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--midnight);
    opacity: 0.8;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--byzantine-primary) 0%, var(--byzantine-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-2xl);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.btn-light {
    background: white;
    color: var(--byzantine-primary);
}

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

/* Footer */
.footer {
    background: var(--midnight);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer h4 {
    margin-bottom: var(--spacing-md);
    color: var(--royal-gold);
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: var(--spacing-sm);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--royal-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .pricing-graphs {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
}

/* Performance Metrics */
.performance-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-2xl);
}

.metric-card {
    text-align: center;
    position: relative;
}

.metric-chart {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: var(--silver);
    stroke-width: 4;
}

.circle {
    fill: none;
    stroke: url(#purple-gradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 12.56;
    animation: fillCircle 2s ease-out forwards;
}

@keyframes fillCircle {
    to {
        stroke-dashoffset: 12.56;
    }
}

.metric-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--byzantine-primary) 0%, var(--byzantine-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--midnight);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Free Trial Badge */
.free-trial-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--byzantine-primary) 0%, var(--byzantine-glow) 100%);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(112, 60, 139, 0.3);
}

/* Pricing Calculator */
.pricing-calculator {
    margin: var(--spacing-3xl) 0;
}

.pricing-calculator h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--byzantine-primary);
    margin-bottom: var(--spacing-2xl);
}

.calculator-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.calc-example, .pricing-benefits {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--silver);
}

.calc-example h4, .pricing-benefits h4 {
    color: var(--byzantine-primary);
    margin-bottom: var(--spacing-lg);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--silver);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row strong {
    color: var(--byzantine-primary);
    font-size: 1.25rem;
}

.calc-row small {
    color: var(--midnight);
    opacity: 0.6;
    margin-left: var(--spacing-sm);
}

.pricing-benefits ul {
    list-style: none;
}

.pricing-benefits li {
    padding: var(--spacing-sm) 0;
    color: var(--midnight);
}

/* Value Props Cards */
.pricing-value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-3xl) 0;
}

.value-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--silver);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(112, 60, 139, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.value-card h3 {
    color: var(--byzantine-primary);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--midnight);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}