/* 
  DiffSii Branding Styles
  Premium SaaS UI/UX
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --bg-main: #0a0a0a;
    --bg-accent: #111111;
    --primary: #5c62ec; /* Adjusted Indigo */
    --primary-glow: rgba(92, 98, 236, 0.35);
    --secondary: #9333ea; /* More vibrant violet */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-hero: linear-gradient(135deg, var(--primary), var(--secondary));
    
    /* Spacing */
    --section-pad: 100px 5%;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.glow-1 {
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    animation: glowFloat1 15s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    animation: glowFloat2 18s infinite alternate-reverse ease-in-out;
}

@keyframes glowFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, 100px) scale(1.2); }
    100% { transform: translate(50px, -50px) scale(1); }
}

@keyframes glowFloat2 {
    0% { transform: translate(0, 0) scale(1.1); }
    50% { transform: translate(120px, -120px) scale(0.9); }
    100% { transform: translate(-80px, 40px) scale(1.1); }
}

h1, h2, h3, .brand-font {
    font-family: 'Outfit', sans-serif;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section {
    padding: var(--section-pad);
}

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

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 5%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transform: scale(3.4);
    transform-origin: left center;
    display: block;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-nav {
    padding: 10px 24px;
    background: var(--gradient-hero);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-nav:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    padding: 16px 32px;
    background: var(--gradient-hero);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* --- Features Section --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.feature-card.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(10, 10, 10, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card.bento-large h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.feature-card.bento-large p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-card.bento-wide {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card.bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .feature-card.bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .feature-card.bento-large,
    .feature-card.bento-wide {
        grid-column: span 1;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .feature-card.bento-wide .feature-icon {
        margin-bottom: 20px !important;
    }
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-glow);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- Showcase Section --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 650px;
    margin: 0 auto;
    perspective: 1500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-slide {
    position: absolute;
    width: 75%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7) translateZ(-400px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.carousel-slide.active {
    transform: translate(-50%, -50%) scale(1) translateZ(0);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 40px 100px rgba(99, 102, 241, 0.3), 0 0 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(99, 102, 241, 0.4);
}

.carousel-slide.prev {
    transform: translate(-90%, -50%) scale(0.8) translateZ(-200px) rotateY(30deg);
    opacity: 0.4;
    z-index: 2;
}

.carousel-slide.next {
    transform: translate(-10%, -50%) scale(0.8) translateZ(-200px) rotateY(-30deg);
    opacity: 0.4;
    z-index: 2;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    z-index: 10;
}

.nav-dot {
    width: 30px;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.nav-dot.active {
    background: var(--primary);
    width: 60px;
    box-shadow: 0 0 15px var(--primary);
}

@media (max-width: 768px) {
    .carousel-container {
        height: auto;
        perspective: none;
    }
    .carousel-track {
        transform-style: flat;
        position: relative;
    }
    .carousel-slide {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        transform: none !important;
        opacity: 1 !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
        pointer-events: auto !important;
        display: none;
    }
    .carousel-slide.slide-1 {
        display: block;
    }
    .carousel-nav {
        display: none;
    }
}

/* --- Payment Section --- */
.payment-section {
    background: radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.1), transparent 40%);
}

.payment-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.payment-text {
    flex: 1;
}

.webpay-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                inset 0 0 20px rgba(99, 102, 241, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), transparent, transparent);
    z-index: -1;
    border-radius: 42px;
    opacity: 0.3;
}

.input-container {
    position: relative;
    margin-bottom: 25px;
}

.input-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    width: 20px;
    pointer-events: none;
}

.input-container input, 
.input-container textarea {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-container textarea {
    padding-top: 18px;
}

.input-container input:focus, 
.input-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.input-container input:focus + i,
.input-container textarea:focus + i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* --- Footer --- */
footer {
    padding: 60px 5% 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .contact-grid, .payment-content {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}
