/* Krystallize Marketing Site Styles */

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}


.section:nth-child(even) {
    background: var(--color-background-secondary);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-brand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-primary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-brand-500), var(--color-brand-600));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
    border-color: var(--color-brand-500);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-item {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-primary);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-brand-500);
}

.benefit-item h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-item p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* About Content */
.about-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Use Cases Section */
.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.use-cases-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.use-case-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-primary);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.use-case-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.use-case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: var(--color-brand-500);
}

.use-case-item:hover::before {
    opacity: 1;
}

.use-case-item-reverse {
    grid-template-columns: 1fr 120px;
}

.use-case-item-reverse .use-case-icon {
    order: 2;
}

.use-case-item-reverse .use-case-content {
    order: 1;
}

.use-case-icon {
    font-size: 4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border-radius: 1rem;
    padding: 1.5rem;
    width: 120px;
    height: 120px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.use-case-item:hover .use-case-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.2));
}

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

.use-case-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-brand-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-case-content p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0;
}

/* Carousel Section */
.carousel-wrapper {
    max-width: 840px;
    margin: 2rem auto;
    position: relative;
    padding: 1.4rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 400px;
    overflow: hidden;
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('laptop_realistic.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

.carousel-slides {
    position: absolute;
    top: 23px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4% calc(11% + 10px) 12% calc(11% + 10px);
    box-sizing: border-box;
    z-index: 1;
}

.carousel-slide {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    visibility: hidden;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
    visibility: visible;
}

.carousel-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 92, 246, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-button:hover {
    background: rgba(139, 92, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: white;
    width: 12px;
    height: 12px;
}

/* Demo Video Section (kept for backward compatibility) */
.demo-video-wrapper {
    background: var(--color-background-secondary);
    border-radius: 1rem;
    padding: 0;
    margin: 2rem 0;
    border: 1px solid var(--color-border-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
}

.demo-video-wrapper iframe {
    transform: scale(1.3);
    transform-origin: 0 0;
}

.demo-placeholder {
    background: var(--color-background-tertiary);
    border: 2px dashed var(--color-border-accent);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin: 1rem 0;
}

.demo-placeholder-content {
    color: var(--color-text-secondary);
}

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

.demo-placeholder h3 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.demo-specs {
    margin-top: 1rem;
    color: var(--color-text-tertiary);
}

.demo-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.demo-gif {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Demo Booking */
.demo-booking {
    text-align: center;
    margin: 2rem 0;
}

/* Contact Section */
#contact {
    text-align: center;
}

.demo-button {
    background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.demo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.demo-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.demo-button:hover::before {
    left: 100%;
}

.demo-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4), 0 5px 15px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, var(--color-brand-400), var(--color-brand-500));
}

.demo-button:active {
    transform: translateY(-1px) scale(1.02);
}

.demo-button:active::after {
    width: 300px;
    height: 300px;
}


.demo-note {
    margin-top: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Section CTAs */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.site-footer {
    background: var(--color-background-secondary);
    border-top: 1px solid var(--color-border-primary);
    padding: 3rem 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-text-primary);
}

.site-footer p {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-background-secondary);
    border-top: 1px solid var(--color-border-primary);
    padding: 1rem 2rem;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-content p {
    color: var(--color-text-secondary);
    margin: 0;
    flex: 1;
}

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

.feature-card,
.benefit-item {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.1s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .benefit-item {
        padding: 1.5rem;
    }
    
    .use-case-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .use-case-item-reverse {
        grid-template-columns: 1fr;
    }
    
    .use-case-item-reverse .use-case-icon,
    .use-case-item-reverse .use-case-content {
        order: 0;
    }
    
    .use-case-icon {
        margin: 0 auto;
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .use-case-content h3 {
        font-size: 1.5rem;
    }
    
    .use-case-content p {
        font-size: 1rem;
    }
    
    .section-intro {
        margin-bottom: 2.5rem;
        font-size: 1rem;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
    
    .carousel-dots {
        bottom: 0.5rem;
    }
    
    .carousel-wrapper {
        padding: 1rem;
    }
    
    .carousel-slides {
        top: 8px;
        transform: scale(1.1);
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .calendly-wrapper {
        padding: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 30vh; /* 30% of viewport height for higher positioning */
}

/* Focus styles for accessibility */
.button:focus,
.menu-toggle:focus,
.nav a:focus {
    outline: 2px solid var(--color-brand-500);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Founder Section Styles */
.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-brand-500);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.founder-info {
    text-align: left;
}

.founder-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.founder-title {
    font-size: 1.1rem;
    color: var(--color-brand-500);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.founder-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.founder-quote {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-primary);
    font-style: italic;
    position: relative;
    margin: 2rem 0;
    padding: 0 1rem;
}

.quote-mark {
    font-size: 4rem;
    line-height: 0;
    color: white;
    opacity: 0.6;
    display: inline-block;
    vertical-align: middle;
    font-style: normal;
}

.quote-mark-start {
    margin-right: 0.5rem;
    margin-left: -1rem;
    transform: translateY(-0.3em);
}

.quote-mark-end {
    float: right;
    margin-left: 0.5rem;
    margin-right: -1rem;
    transform: translateY(0.3em);
}

.founder-cta {
    margin-top: 2rem;
}

.linkedin-button {
    background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.linkedin-button:hover {
    background: linear-gradient(135deg, var(--color-brand-600), var(--color-brand-700));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.linkedin-button span {
    font-size: 1.2rem;
}

/* Responsive Design for Founder Section */
@media (max-width: 768px) {
    .founder-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .founder-info {
        text-align: center;
    }
    
    .founder-photo {
        width: 150px;
        height: 150px;
    }
    
    .founder-info h3 {
        font-size: 1.5rem;
    }
    
    .founder-quote {
        font-size: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .quote-mark {
        font-size: 2.8rem;
    }
    
    .quote-mark-start {
        margin-left: -0.5rem;
    }
    
    .quote-mark-end {
        margin-right: -0.5rem;
    }
}

/* Sparkle Button Styles - Star Button */
.sparkle-button {
    position: relative;
    background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    overflow: visible;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.sparkle-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4), 0 5px 15px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, var(--color-brand-400), var(--color-brand-500));
}

.sparkle-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Star positioning and animation - 3 stars only */
.sparkle-button .star-1,
.sparkle-button .star-2,
.sparkle-button .star-3 {
    position: absolute;
    pointer-events: none;
    font-size: 1.2rem;
    color: white;
    opacity: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sparkle-button .star-1 {
    top: 20%;
    left: 20%;
    animation: sparkle1 4s ease-in-out infinite;
    will-change: transform, opacity;
}

.sparkle-button .star-2 {
    top: 80%;
    left: 80%;
    animation: sparkle2 4s ease-in-out infinite 0.5s;
    will-change: transform, opacity;
}

.sparkle-button .star-3 {
    top: 50%;
    left: 10%;
    animation: sparkle3 4s ease-in-out infinite 1s;
    will-change: transform, opacity;
}


/* Sparkles visible on hover for all sparkle buttons */
.sparkle-button:hover .star-1,
.sparkle-button:hover .star-2,
.sparkle-button:hover .star-3 {
    opacity: 1;
}

/* Sparkles always visible on final CTA in use-cases section */
#use-cases .sparkle-button .star-1,
#use-cases .sparkle-button .star-2,
#use-cases .sparkle-button .star-3 {
    opacity: 1;
}

@keyframes sparkle1 {
    0%, 100% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(-30px, -30px) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-60px, -60px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkle2 {
    0%, 100% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(30px, 30px) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(60px, 60px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkle3 {
    0%, 100% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(-40px, 0) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-80px, 0) scale(0) rotate(360deg);
        opacity: 0;
    }
}

