/* Homepage Modern Styles - Auth0 Inspired */

/* Color Variables */
:root {
    --simezu-purple: #667eea;
    --simezu-purple-dark: #764ba2;
    --simezu-blue: #2563eb;
    --simezu-blue-light: #3b82f6;
}

/* Hero Section */
.homepage-main {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

/* Extend colorful header background beyond hero and fade to white */
.homepage-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 92rem;
    background:
        radial-gradient(72rem 38rem at 15% 6%, rgba(255, 214, 102, 0.36) 0%, rgba(255, 214, 102, 0) 70%),
        radial-gradient(68rem 34rem at 85% 10%, rgba(149, 117, 255, 0.34) 0%, rgba(149, 117, 255, 0) 72%),
        radial-gradient(64rem 30rem at 50% 22%, rgba(92, 214, 168, 0.30) 0%, rgba(92, 214, 168, 0) 74%),
        linear-gradient(
            180deg,
            #fffdf5 0%,
            #f5f7ff 28%,
            #eef8f3 52%,
            rgba(244, 248, 255, 0.55) 76%,
            rgba(255, 255, 255, 0) 100%
        );
    pointer-events: none;
    z-index: 0;
}

.homepage-main > * {
    position: relative;
    z-index: 1;
}

.hero-modern {
    padding: 8rem 0 7rem;
    text-align: center;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-modern .container {
    position: relative;
    z-index: 2;
}

.hero-modern::before {
    content: none;
}

.hero-modern::after {
    content: none;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #1A1A1A;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666666;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--simezu-purple);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--simezu-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #FFFFFF;
    color: #2C2C2C;
    border: 1px solid #E5E5E5;
}

.btn-secondary:hover {
    background: #FAFAFA;
    border-color: var(--simezu-purple);
    color: var(--simezu-purple);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: #FFFFFF;
    border-top: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--simezu-purple);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-description {
    font-size: 1rem;
    color: #666666;
}

/* Section Backgrounds */
.section-alt {
    background: #FAFAFA;
}

/* Concept Cards Section */
.concept-cards-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
}

.concept-cards-section .container {
    position: relative;
    z-index: 2;
}

.concept-cards-section::before {
    content: none;
}

.concept-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.concept-card {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #E0E0E0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--simezu-purple), var(--simezu-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.concept-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(37, 99, 235, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.concept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--simezu-purple);
}

.concept-card:hover::before {
    transform: scaleX(1);
}

.concept-card:hover::after {
    opacity: 1;
}

.concept-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A1A1A;
    position: relative;
    z-index: 2;
}

.concept-card-subtitle {
    color: #666666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.concept-card-content {
    text-align: left;
    position: relative;
    z-index: 2;
}

.concept-item {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 0.875rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1rem;
}

.concept-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--simezu-purple);
    font-weight: 600;
    font-size: 1.125rem;
    top: 0;
}

.concept-card-conclusion {
    color: #1A1A1A;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #F0F0F0;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Image-only concept card (e.g. office / team photo) – photo fills block, no hover */
.concept-card--image {
    padding: 0;
    overflow: hidden;
    transition: none;
}

.concept-card--image::before,
.concept-card--image::after {
    display: none;
}

.concept-card--image:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border-color: #E0E0E0;
}

.concept-card--image .concept-card-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.concept-card--image .concept-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

/* Code Example Highlighted Section */
.code-example-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.code-example-section .container {
    position: relative;
    z-index: 2;
}

.code-example-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.code-example-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

.code-example-section .code-header h2 {
    color: #1A1A1A;
}

.code-example-note {
    text-align: center;
    color: #2C2C2C;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Combined Features Section */
.features-combined-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: #FFFFFF;
}

.features-combined-section .container {
    position: relative;
    z-index: 2;
}

.features-combined-grid {
    padding: 0 1rem;
}

.features-combined-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 35s ease-in-out infinite;
}

.features-combined-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card-combined {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #E0E0E0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.feature-card-combined::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--simezu-purple), var(--simezu-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card-combined:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--simezu-purple);
}

.feature-card-combined:hover::before {
    transform: scaleX(1);
}

.feature-card-combined h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1A1A1A;
    position: relative;
    z-index: 2;
}

.feature-card-subtitle {
    color: #666666;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.feature-card-list {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-card-list p {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.feature-card-list p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--simezu-purple);
    font-weight: 600;
    font-size: 1.25rem;
}

.feature-card-footer {
    color: #1A1A1A;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
    padding-top: 1.5rem;
    border-top: 2px solid #F0F0F0;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.docs-cta-link {
    margin-top: 1rem;
}

.code-integration {
    max-width: 900px;
    margin: 0 auto;
}

.code-header {
    text-align: center;
    margin-bottom: 3rem;
}

.code-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.code-header p {
    font-size: 1.125rem;
    color: #666666;
}

.code-example {
    background: #1A1A1A;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.code-tabs {
    display: flex;
    background: #2C2C2C;
    padding: 0.5rem;
    gap: 0.5rem;
}

.code-tab {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: none;
    color: #999999;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.code-tab:hover {
    color: #FFFFFF;
    background: #3C3C3C;
}

.code-tab.active {
    background: var(--simezu-purple);
    color: #FFFFFF;
}

.code-content {
    padding: 2rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    color: #F8F8F2;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-content code {
    color: #F8F8F2;
}

/* Section Background Graphics */
.section {
    position: relative;
    overflow: hidden;
}

.section-alt::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.section-header p {
    font-size: 1.125rem;
    color: #666666;
}

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

.feature-card-modern {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #E5E5E5;
    transition: all 0.3s;
}

.feature-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: var(--simezu-purple);
}

.feature-icon {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--simezu-purple);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: var(--simezu-purple);
    font-size: 1.25rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-modern h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.feature-card-modern > p {
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #666666;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--simezu-purple);
    font-weight: 600;
}

/* Applications Showcase */
.apps-showcase {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    position: relative;
    z-index: 1;
}

.app-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-showcase-item.reverse {
    direction: rtl;
}

.app-showcase-item.reverse > * {
    direction: ltr;
}

.app-screenshot {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
}

.screenshot-placeholder {
    width: 100%;
    padding-top: 62.5%; /* 16:10 aspect ratio */
    background: linear-gradient(135deg, var(--simezu-purple) 0%, var(--simezu-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* When placeholder contains a screenshot image */
.screenshot-placeholder .showcase-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-placeholder:has(.showcase-img) {
    background: #f0f0f0;
}

.screenshot-placeholder:has(.showcase-img)::before {
    display: none;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.screenshot-placeholder:hover {
    transform: scale(1.02);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.app-showcase-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.app-showcase-item:nth-child(1) {
    animation-delay: 0.1s;
}

.app-showcase-item:nth-child(2) {
    animation-delay: 0.2s;
}

.app-showcase-item:nth-child(3) {
    animation-delay: 0.3s;
}

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

.app-content {
    padding: 1rem 0;
}

.app-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--simezu-purple);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.app-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.app-content p {
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-content ul li {
    padding: 0.5rem 0;
    color: #666666;
    position: relative;
    padding-left: 1.5rem;
}

.app-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--simezu-purple);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--simezu-purple) 0%, var(--simezu-blue) 100%);
    color: #FFFFFF;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-foundation-text {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    color: #1A1A1A;
}

.cta-section {
    margin-bottom: 0;
}

/* Remove footer gap specifically on homepage */
.homepage-main + footer {
    margin-top: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: #FFFFFF;
    color: var(--simezu-purple);
}

.cta-section .btn-primary:hover {
    background: #FAFAFA;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

/* Add subtle animations to cards */
.concept-card,
.feature-card-combined {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.concept-card:nth-child(1),
.feature-card-combined:nth-child(1) {
    animation-delay: 0.1s;
}

.concept-card:nth-child(2),
.feature-card-combined:nth-child(2) {
    animation-delay: 0.2s;
}

.concept-card:nth-child(3),
.feature-card-combined:nth-child(3) {
    animation-delay: 0.3s;
}

.concept-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 968px) {
    .concept-cards-grid,
    .features-combined-grid {
        grid-template-columns: 1fr;
    }
    .concept-cards-section,
    .features-combined-section,
    .code-example-section,
    .cta-section {
        padding: 4rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .app-showcase-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-showcase-item.reverse {
        direction: ltr;
    }

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

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

    .concept-cards-grid,
    .features-combined-grid {
        gap: 1.25rem;
        padding: 0 0.5rem;
    }

    .features-grid {
        gap: 1.25rem;
    }

    .concept-card,
    .feature-card-combined,
    .feature-card-modern {
        padding: 2rem;
        margin-bottom: 1rem;
    }

    .app-showcase-item {
        margin-bottom: 1.5rem;
    }

    .section-header h2,
    .code-header h2,
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-modern {
        padding: 3.25rem 0 2.25rem;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .concept-cards-section,
    .features-combined-section,
    .code-example-section,
    .cta-section,
    .stats-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .concept-cards-grid,
    .features-combined-grid,
    .features-grid {
        gap: 1rem;
        padding: 0 0.25rem;
    }

    .concept-card,
    .feature-card-combined,
    .feature-card-modern {
        padding: 1.5rem;
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }

    .app-showcase-item {
        gap: 1.25rem;
        margin-bottom: 1rem;
    }

    .code-content {
        padding: 1.25rem;
    }
}
