/* --- TeamGreetings Custom Styles --- */
:root {
    --tg-primary: #6366F1;
    --tg-primary-dark: #4F46E5;
    --tg-primary-light: #A5B4FC;
    --tg-accent: #F59E0B;
    --tg-accent-dark: #D97706;
    --tg-text-main: #1F2937;
    --tg-text-muted: #6B7280;
    --tg-text-light: #9CA3AF;
    --tg-bg-light: #F9FAFB;
    --tg-bg-white: #FFFFFF;
    --tg-border: #E5E7EB;
    --tg-border-light: #F3F4F6;
    --tg-radius: 12px;
    --tg-radius-lg: 20px;
    --tg-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tg-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tg-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --tg-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, var(--tg-primary) 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-dark {
    background: linear-gradient(135deg, var(--tg-text-main) 0%, var(--tg-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-light {
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E7EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Section Styling --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 160px 20px 100px;
    background: linear-gradient(180deg, #F5F3FF 0%, #EEF2FF 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.15);
    top: -10%;
    right: -10%;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.12);
    bottom: 10%;
    left: -10%;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.1);
    top: 40%;
    left: 5%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

/* --- Badge Pill --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--tg-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-pill-light {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Hero Preview Card --- */
.hero-preview {
    margin-top: 80px;
    border-radius: var(--tg-radius-lg);
    box-shadow: var(--tg-shadow-xl), 0 0 0 1px rgba(99, 102, 241, 0.1);
    overflow: hidden;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border: 1px solid var(--tg-border);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-preview:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.hero-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.preview-header {
    background: #1F2937;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #EF4444; }
.preview-dot.yellow { background: #F59E0B; }
.preview-dot.green { background: #10B981; }

.preview-content {
    background: linear-gradient(135deg, #FDF4FF 0%, #FAF5FF 50%, #F5F3FF 100%);
    padding: 50px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-card {
    background: white;
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: var(--tg-shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 450px;
}

/* --- Sticky Notes --- */
.sticky-notes {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.sticky-note {
    width: 120px;
    height: 120px;
    padding: 14px;
    font-size: 0.8rem;
    border-radius: 6px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.sticky-note:hover {
    transform: rotate(0deg) scale(1.05) !important;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
    z-index: 10;
}

.sticky-note:nth-child(1) { transform: rotate(-2deg); }
.sticky-note:nth-child(2) { transform: rotate(2deg); }
.sticky-note:nth-child(3) { transform: rotate(-1deg); }
.sticky-note:nth-child(4) { transform: rotate(1.5deg); }

.sticky-note.yellow { background: #FEF3C7; }
.sticky-note.pink { background: #FCE7F3; }
.sticky-note.blue { background: #DBEAFE; }
.sticky-note.green { background: #D1FAE5; }

.sticky-note .author {
    font-size: 0.65rem;
    color: var(--tg-text-light);
    margin-top: auto;
}

/* --- Social Proof --- */
.social-proof {
    padding: 40px 0;
    background: var(--tg-bg-light);
    border-top: 1px solid var(--tg-border-light);
    border-bottom: 1px solid var(--tg-border-light);
}

.company-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tg-text-light);
    letter-spacing: -0.5px;
    opacity: 0.5;
}

/* --- How It Works Section --- */
.how-it-works-section {
    background: var(--tg-bg-white);
    position: relative;
}

.steps-connector {
    position: absolute;
    top: 45px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--tg-primary-light), var(--tg-primary), var(--tg-primary-light));
    z-index: 0;
    border-radius: 3px;
}

.step-number {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--tg-primary) 0%, var(--tg-primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 28px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
    border: 4px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.step-item:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* --- Templates Section --- */
.templates-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F3FF 50%, #EEF2FF 100%);
    position: relative;
    overflow: hidden;
}

.template-card {
    background: white;
    border-radius: var(--tg-radius-lg);
    overflow: hidden;
    box-shadow: var(--tg-shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.template-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--tg-shadow-xl);
}

.template-card::after {
    content: 'Use Template';
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover::after {
    opacity: 1;
}

.template-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.template-preview.birthday { background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%); }
.template-preview.farewell { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); }
.template-preview.anniversary { background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%); }
.template-preview.congratulations { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); }
.template-preview.welcome { background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%); }
.template-preview.thankyou { background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%); }
.template-preview.holiday { background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%); }
.template-preview.babyshower { background: linear-gradient(135deg, #ECFEFF 0%, #CFFAFE 100%); }

.template-info {
    padding: 16px;
    text-align: center;
}

/* --- Features Section --- */
.features-section {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    position: relative;
}

.feature-card {
    background: white;
    padding: 36px;
    border-radius: var(--tg-radius-lg);
    border: 1px solid var(--tg-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tg-primary), var(--tg-primary-dark));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tg-shadow-lg);
    border-color: var(--tg-primary-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--tg-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tg-radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-primary) 0%, #A855F7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

/* --- Pricing Section --- */
.pricing-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.price-card {
    background: white;
    padding: 40px;
    border-radius: var(--tg-radius-lg);
    border: 2px solid var(--tg-border);
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tg-shadow-lg);
}

.price-card.popular {
    border-color: var(--tg-primary);
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F3FF 100%);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--tg-primary) 0%, var(--tg-primary-dark) 100%);
    color: white;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

/* --- FAQ Section --- */
.faq-section {
    background: var(--tg-bg-light);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--tg-primary) 0%, #7C3AED 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* --- Footer --- */
.footer-section {
    padding: 80px 0 40px;
    background: #111827;
    color: #9CA3AF;
}

.footer-brand-text {
    color: #9CA3AF;
    max-width: 300px;
    line-height: 1.7;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #9CA3AF;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--tg-primary);
    transform: translateY(-2px);
    color: white;
}

.footer-link {
    color: #9CA3AF;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    padding-left: 4px;
}

.legal-line {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Button Enhancements --- */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--tg-primary) 0%, var(--tg-primary-dark) 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-gradient-accent {
    background: linear-gradient(135deg, var(--tg-accent) 0%, var(--tg-accent-dark) 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
}

.btn-gradient-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.5);
}

/* --- Blazor Error UI --- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .hero-section {
        padding: 120px 16px 60px;
    }

    .hero-blob {
        display: none;
    }

    .section-padding {
        padding: 60px 0;
    }

    .steps-connector {
        display: none;
    }

    .template-preview {
        height: 140px;
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .sticky-notes {
        gap: 10px;
    }

    .sticky-note {
        width: 90px;
        height: 90px;
        font-size: 0.7rem;
        padding: 10px;
    }
}