/* Senderwizard Homepage - 简约高级风格 */

/* Gabarito - for the logo "senderwizard" */
@font-face {
    font-family: 'Gabarito';
    src: url('./fonts/Gabarito-Medium-subset.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --purple: #3e2491;
    --light-purple: #e1dbf0;
    --light-gray-purple: #eceaf0;
    --dark-purple: #2a1a5e;
    --black: #1a1a2e;
    --dark-gray: #4a4a5a;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #3e2491 0%, #5a3cb0 100%);
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    line-height: 1.6;
    background: var(--white);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(62, 36, 145, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: 'Gabarito', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}

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

.btn-login {
    background: var(--purple) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 8px;
    font-weight: 500 !important;
}

.btn-login:hover {
    background: var(--dark-purple) !important;
}

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    background: linear-gradient(180deg, var(--light-gray-purple) 0%, var(--white) 100%);
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--dark-gray);
    margin-bottom: 48px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(62, 36, 145, 0.3);
}

.btn-primary:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(62, 36, 145, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--purple);
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid var(--purple);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--light-gray-purple);
}

.hero-visual {
    margin-top: 80px;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.flow-node {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
}

.flow-node.worker {
    background: var(--light-purple);
    color: var(--purple);
}

.flow-node.vhost {
    background: var(--purple);
    color: var(--white);
}

.flow-node.client {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--light-purple);
}

.flow-arrow {
    color: var(--purple);
    font-size: 24px;
    opacity: 0.5;
}

/* 功能特性 */
.features {
    padding: 120px 40px;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 18px;
    color: var(--dark-gray);
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--light-gray);
    padding: 40px 32px;
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--light-gray-purple);
    transform: translateY(-4px);
}

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

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* 架构图 */
.architecture {
    padding: 120px 40px;
    background: var(--light-gray);
}

.arch-diagram {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.arch-layer {
    display: flex;
    gap: 24px;
    justify-content: center;
    width: 100%;
}

.arch-layer.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.arch-box {
    background: var(--white);
    border: 1px solid var(--light-purple);
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
    flex: 1;
    max-width: 600px;
}

.arch-box.routing {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(62, 36, 145, 0.05) 0%, rgba(62, 36, 145, 0.02) 100%);
}

.arch-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--black);
    margin-bottom: 8px;
}

.arch-desc {
    font-size: 14px;
    color: var(--dark-gray);
}

.arch-connector {
    color: var(--purple);
    font-size: 24px;
    opacity: 0.3;
}

/* 定价方案 */
.pricing {
    padding: 120px 40px;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card.featured {
    background: var(--purple);
    color: var(--white);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f7be10;
    color: var(--black);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-tier {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 32px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card.featured .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--purple);
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--purple);
    transition: all 0.2s;
}

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

.pricing-card.featured .btn-primary {
    background: var(--white);
    color: var(--purple);
}

.pricing-card.featured .btn-primary:hover {
    background: var(--light-gray);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 48px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-links .divider {
    opacity: 0.3;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.5;
}

/* 响应式 */
@media (max-width: 900px) {
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .arch-layer.dual {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
