/* ============================================
   FrameForge - Landing Page Styles
   ============================================ */

/* Hero Section Enhancement */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(ellipse at center, rgb(99 102 241 / 15%) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;

    /* Grid Pattern */
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9Im5vbmUiLz4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJncmlkIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPgo8cGF0aCBkPSJNMCA0MGw0MC00ME0wIDBsNDAgNDAiIHN0cm9rZT0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjAzKSIgc3Ryb2tlLXdpZHRoPSIxIi8+CjwvcGF0dGVybj4KPC9kZWZzPgo8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIi8+Cjwvc3ZnPg==') repeat;
    opacity: 0.5;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 24px 0 16px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

@media (width <= 768px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
}

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

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

@media (width <= 768px) {
    .hero .lead {
        font-size: 1.1rem;
    }
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgb(99 102 241 / 10%);
    border: 1px solid rgb(99 102 241 / 20%);
    border-radius: 30px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.badge-pill:hover {
    background: rgb(99 102 241 / 20%);
    border-color: rgb(99 102 241 / 40%);
    transform: translateY(-2px);
}

.badge-pill .material-symbols-rounded {
    font-size: 18px;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgb(99 102 241 / 40%);
}

.btn-hero.primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(99 102 241 / 60%);
}

.btn-hero.secondary {
    background: var(--bg-surface);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: var(--glass-blur);
}

.btn-hero.secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

/* Features Grid */
.features-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;

    /* Optional fade-in bg line for sections */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgb(99 102 241 / 10%) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
    box-shadow: 0 10px 30px rgb(0 0 0 / 20%);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgb(99 102 241 / 20%) 0%, rgb(6 182 212 / 20%) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-light);
    position: relative;
    z-index: 1;
}

.feature-icon .material-symbols-rounded {
    font-size: 28px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* How It Works Section */
.workflow-section {
    padding: 80px 20px 120px;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgb(18 18 26 / 50%) 100%);
    border-top: 1px solid var(--border);
}

.workflow-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
    margin-top: 60px;
}

@media (width <= 768px) {
    .workflow-container {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
}

.workflow-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.workflow-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--border-light) 15%,
            var(--primary) 50%,
            var(--border-light) 85%,
            transparent 100%);
    z-index: 0;
}

@media (width <= 768px) {
    .workflow-container::before {
        display: none;
    }
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    box-shadow: 0 0 20px rgb(99 102 241 / 20%);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px dashed rgb(99 102 241 / 40%);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 250px;
    margin: 0 auto;
}

/* Base Animations for hero load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero>* {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero .badge-pill {
    animation-delay: 0.1s;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero .lead {
    animation-delay: 0.3s;
}

.hero .cta-group {
    animation-delay: 0.4s;
}