/* home.css - Premium Landing Page Styles */

/* Base Layout */
#appBarContainer {
    flex-shrink: 0;
    z-index: 100;
}

.home-page-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    padding-bottom: 40px;
}

/* Ambient Background Glow (Glassmorphism) */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

[data-theme="light"] .ambient-bg {
    opacity: 0.4;
}

.glow-1, .glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    bottom: 20%;
    right: -150px;
    animation-delay: -5s;
}

[data-theme="light"] .glow-2 {
    background: radial-gradient(circle, rgba(13, 148, 136, 0.4) 0%, transparent 70%);
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 60px) scale(0.9); }
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 52px 24px 44px;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: 100%;
    gap: 20px;
}

/* Badge pill above title */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: badgeShimmer 3s ease-in-out infinite;
}

[data-theme="light"] .hero-badge {
    border-color: rgba(13, 148, 136, 0.25);
    background: rgba(13, 148, 136, 0.07);
    color: #0D9488;
}

.hero-badge i {
    font-size: 0.7rem;
    opacity: 0.85;
}

@keyframes badgeShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-main);
    margin-bottom: 0;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

[data-theme="light"] .hero-title span {
    background: linear-gradient(135deg, var(--primary), #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.88rem, 2vw, 1rem);
    color: var(--text-sec);
    max-width: 600px;
    width: 100%;
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 400;
    text-wrap: balance;
}

/* Primary CTA button — premium pill with glow */
.cta-btn-primary {
    all: unset;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

/* Animated glow ring on hover */
.cta-btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary), #7c3aed, var(--primary));
    background-size: 200% 200%;
    animation: btnGlowSpin 3s linear infinite;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.22s ease;
}

/* Shimmer sweep */
.cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
}

.cta-btn-primary:hover::after { opacity: 1; }
.cta-btn-primary:hover::before { left: 140%; }
.cta-btn-primary:active { transform: translateY(1px); }

[data-theme="light"] .cta-btn-primary {
    background: linear-gradient(135deg, #0D9488 0%, #0891b2 100%);
}

[data-theme="light"] .cta-btn-primary::after {
    background: linear-gradient(135deg, #0D9488, #0891b2, #0D9488);
    background-size: 200% 200%;
}

[data-theme="light"] .cta-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.4);
}

@keyframes btnGlowSpin {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-btn-primary i {
    font-size: 0.78rem;
    transition: transform 0.22s ease;
}
.cta-btn-primary:hover i { transform: translateX(4px); }

/* Ghost / secondary (kept for potential reuse, hidden by default) */
.cta-btn-ghost { display: none; }
.hero-actions { display: contents; }
.cta-btn-large { display: none; }

/* Features Section — horizontal step layout, visually separated */
.features-section {
    padding: 48px 32px 60px;
    max-width: 860px;
    margin: 0 auto 0;
    width: calc(100% - 40px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    border: 1px solid var(--border-light);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .features-section {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.features-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.features-grid {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    position: relative;
}

/* Connector line */
.features-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66%);
    right: calc(16.66%);
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary), rgba(139,92,246,0.25), var(--primary));
    z-index: 0;
}

[data-theme="light"] .features-grid::before {
    background: linear-gradient(90deg, #0D9488, rgba(13,148,136,0.15), #0D9488);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    position: relative;
    z-index: 2;
    margin-bottom: 4px;
}

[data-theme="light"] .step-num {
    background: #0D9488;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.feature-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

[data-theme="light"] .feature-icon {
    background: rgba(13, 148, 136, 0.08);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05) rotate(-5deg);
}

.feature-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0;
    line-height: 1.3;
}

.feature-card-desc {
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.55;
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

@media (min-width: 768px) {
    .site-footer {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1100px;
        margin: auto auto 0;
        width: 100%;
        border-top: none;
    }
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-sec);
}

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

.footer-link {
    font-size: 0.85rem;
    color: var(--text-sec);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* ── Mobile: scale down the step layout ── */
@media (max-width: 767px) {
    .features-section {
        padding: 32px 16px 60px;
    }

    .features-title {
        font-size: 1.15rem;
        margin-bottom: 32px;
    }

    .features-grid::before {
        top: 22px;
        height: 1px;
    }

    .step-num {
        width: 44px;
        height: 44px;
        font-size: 0.75rem;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }

    .feature-card {
        padding: 0 8px 0;
        gap: 10px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    .feature-card-title {
        font-size: 0.82rem;
    }

    .feature-card-desc {
        font-size: 0.72rem;
        line-height: 1.45;
    }
}
