﻿/* Buttons - works for both <button> and <a> elements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    line-height: 1.2;
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: white !important;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--accent-violet);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    line-height: 1.2;
}

.btn-secondary:hover {
    background: var(--accent-violet);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    line-height: 1.2;
    box-sizing: border-box;
}


.btn-outline:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Reusable inline highlight (#60A5FA block; inherits font-size from parent) */
.grawlr-text-highlight,
.pricing-trial-highlight {
    display: inline;
    background-color: #60a5fa;
    color: #f8fafc;
    font-weight: 700;
    padding: 0.18em 0.45em 0.22em;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Hero Section */
.hero {
    background: var(--light-bg);
    padding: 120px 0 80px;
    color: var(--text-dark);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Rotating Text Animation */
.hero-headline {
    margin-bottom: 1.5rem;
}

.rotating-text-container {
    height: 6rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 3rem;
}

.rotating-text-container:hover {
    transform: scale(1.02);
}

.text-slide {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.35;
    display: none;
    padding: 0.4rem 0;
    /* Fallback color first */
    color: var(--primary-purple);
    /* Progressive enhancement with gradient text */
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    background-size: 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
}

.text-slide.active {
    display: block;
}

/* Fallback for older browsers */
@supports not (background-clip: text) {
    .text-slide {
        background: none;
        color: var(--primary-purple);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    /* color alpha instead of opacity so .grawlr-text-highlight stays full-strength */
    color: rgba(55, 65, 81, 0.92);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-container {
    width: 500px;
    height: 350px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
    animation: float 3s ease-in-out infinite;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1563206767-5b18f218e8de?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover no-repeat;
    filter: blur(3px);
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-image-logo {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: logoPulse 2s infinite;
}

.hero-image-icon {
    color: white;
    font-size: 4rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.9;
        filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
    50% { 
        transform: scale(1.15); 
        opacity: 1;
        filter: brightness(0) invert(1) drop-shadow(0 6px 12px rgba(139, 92, 246, 0.6));
    }
}

/* Features Section */
.features {
    background: var(--section-bg);
    padding: 100px 0;
}

.features h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 2rem;
    margin-top: 3rem;
    color: var(--text-dark);
}

.features h2:first-of-type {
    margin-top: 0;
}

.features-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.features-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-content p {
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.5;
}

