/* Page-specific styles extracted from app/Views/home.php */

.hero-section {
    align-items: center;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    padding: 120px 0 80px;
    position: relative;
}

.hero-section::before {
    animation: float 6s ease-in-out infinite;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15), transparent 70%);
    border-radius: 50%;
    content: "";
    height: 800px;
    position: absolute;
    right: -20%;
    top: -50%;
    width: 800px;
}

.hero-section .container {
    align-items: center;
    display: grid;
    gap: 4rem;
    grid-template-columns: 1fr 1fr;
}

.hero-badge {
    align-items: center;
    background: rgba(250, 248, 245, 0.05);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 100px;
    color: var(--text-secondary);
    display: inline-flex;
    font-size: 0.9375rem;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--luxury-red-light);
    display: inline-block;
    position: relative;
}

.highlight-text::after {
    animation: underline 0.6s ease forwards;
    background: var(--luxury-red);
    border-radius: 2px;
    bottom: 2px;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    width: 100%;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-description strong {
    color: var(--milk);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.floating {
    animation: buttonFloat 3s ease-in-out infinite;
}

.hero-stats {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    color: var(--milk);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.stat-divider {
    background: rgba(250, 248, 245, 0.1);
    height: 40px;
    width: 1px;
}

.hero-visual {
    position: relative;
}

.hero-floating-card {
    overflow: hidden;
    padding: 0;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-floating-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-card-header {
    align-items: center;
    background: rgba(10, 25, 41, 0.5);
    border-bottom: 1px solid rgba(250, 248, 245, 0.1);
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.hero-dots {
    display: flex;
    gap: 6px;
}

.hero-dots span {
    border-radius: 50%;
    height: 12px;
    width: 12px;
}

.hero-card-title {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 250px;
    padding: 1.5rem;
}

.chat-bubble {
    animation: slideIn 0.5s ease forwards;
    display: flex;
    gap: 0.75rem;
    opacity: 0;
}

.chat-bubble:nth-child(1) {
    animation-delay: 0.2s;
}

.chat-bubble:nth-child(2) {
    animation-delay: 1.2s;
}

.chat-bubble:nth-child(3) {
    animation-delay: 2.2s;
}

.ai-avatar, .user-avatar {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.bubble-content {
    background: rgba(250, 248, 245, 0.08);
    border-radius: 1rem;
    border-top-left-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.75rem 1rem;
}

.user-bubble {
    flex-direction: row-reverse;
}

.user-bubble .bubble-content {
    background: rgba(196, 30, 58, 0.2);
    border-top-left-radius: 1rem;
    border-top-right-radius: 4px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.typing-dots span {
    animation: typingBounce 1.4s infinite;
    background: var(--luxury-red);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.flexibility-section {
    background: var(--navy-secondary);
    position: relative;
}

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

.section-header .badge {
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.flexibility-showcase {
    display: grid;
    gap: 2rem;
}

.flex-card {
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.flex-card:hover {
    border-color: var(--luxury-red);
    transform: translateY(-8px);
}

.flex-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.flex-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.flex-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--luxury-red-light);
    font-weight: 600;
}

.highlight-card {
    background: rgba(196, 30, 58, 0.05);
    border: 2px solid rgba(196, 30, 58, 0.3);
    position: relative;
}

.flex-badge {
    background: var(--gradient-luxury);
    border-radius: 100px;
    color: var(--milk);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.5rem;
    position: absolute;
    right: 2rem;
    top: -14px;
}

.flex-example {
    background: rgba(10, 25, 41, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
}

.example-item {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.example-check {
    color: #48c78e;
    margin-right: 0.5rem;
}

.example-ai {
    color: var(--luxury-red-light);
}

.flex-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.mini-stat {
    align-items: center;
    background: rgba(10, 25, 41, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.75rem;
}

.mini-number {
    color: var(--milk);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.mini-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.correction-flow {
    align-items: center;
    background: rgba(10, 25, 41, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    gap: 0.5rem;
    padding: 1.25rem;
}

.flow-arrow {
    color: var(--luxury-red);
    font-weight: 700;
}

.defense-section {
    position: relative;
}

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

.defense-card {
    padding: 2.5rem;
}

.defense-card-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.defense-icon {
    font-size: 2.5rem;
}

.defense-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.defense-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.defense-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    list-style: none;
    margin-bottom: 2rem;
}

.defense-list li {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
}

.list-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.defense-list strong {
    color: var(--milk);
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.defense-list p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.voice-note-preview {
    align-items: center;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.voice-note-preview:hover {
    background: rgba(196, 30, 58, 0.2);
}

.play-icon {
    align-items: center;
    background: var(--luxury-red);
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    font-size: 0.75rem;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.defense-cta {
    margin-top: 1.5rem;
}

.preview-label {
    color: var(--text-muted);
    display: block;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.defense-tip {
    align-items: flex-start;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
}

.tip-icon {
    font-size: 1.25rem;
}

.defense-tip p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.pricing-section {
    background: var(--navy-secondary);
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 3rem;
}

.pricing-card {
    padding: 0;
    position: relative;
    text-align: center;
}

.pricing-header {
    border-bottom: 1px solid rgba(250, 248, 245, 0.1);
    padding: 2.5rem 2rem 1.5rem;
}

.pricing-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    align-items: baseline;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.currency {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    color: var(--milk);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.period {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.pricing-features li {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    font-size: 0.9375rem;
    gap: 0.75rem;
    text-align: left;
}

.feature-check {
    color: #48c78e;
    flex-shrink: 0;
}

.feature-disabled {
    opacity: 0.5;
}

.pricing-card .btn {
    margin: 0 2rem 2rem;
}

.btn-block {
    justify-content: center;
    width: calc(100% - 4rem);
}

.pricing-popular {
    background: rgba(196, 30, 58, 0.05);
    border: 2px solid var(--luxury-red);
    position: relative;
    transform: scale(1.05);
    z-index: 1;
}

.popular-badge {
    background: var(--gradient-luxury);
    border-radius: 100px;
    color: var(--milk);
    font-size: 0.75rem;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0.05em;
    padding: 0.5rem 2rem;
    position: absolute;
    top: -14px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.glowing {
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.4);
}

.pricing-trust {
    text-align: center;
}

.trust-card {
    align-items: center;
    background: rgba(250, 248, 245, 0.03);
    border: 1px solid rgba(250, 248, 245, 0.1);
    border-radius: 100px;
    display: inline-flex;
    gap: 1rem;
    padding: 1.25rem 2rem;
}

.trust-icon {
    font-size: 1.5rem;
}

.trust-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.trust-card strong {
    color: var(--milk);
}

.cta-card {
    overflow: hidden;
    padding: 4rem;
    position: relative;
    text-align: center;
}

.cta-card::before {
    animation: rotate 20s linear infinite;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.1), transparent 60%);
    content: "";
    height: 200%;
    left: -50%;
    position: absolute;
    top: -50%;
    width: 200%;
}

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

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

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

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

.cta-emoji-party {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {

    .hero-section .container {
        gap: 3rem;
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }

    .pricing-popular {
        transform: scale(1);
    }

    .correction-flow {
        font-size: 0.75rem;
    }

}

@media (max-width: 480px) {

    .hero-title {
        font-size: 1.75rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    .flex-stats {
        flex-direction: column;
    }

}


/* Animations */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(196, 30, 58, 0); }
}

@keyframes underline {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes buttonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
