/* ==========================================================================
   OFISYO - Modern SaaS Landing Page Styles
   ========================================================================== */

/* --- Variables (Based on Desktop App Theme) --- */
:root {
    /* Colors */
    --bg-color: #F1F5F9;        /* Slate 100 */
    --card-bg: #FFFFFF;         /* White */
    --accent: #FF8A00;          /* Orange */
    --accent-hover: #E67A00;    /* Darker Orange */
    --dark: #383F51;            /* Dark matte blue */
    --secondary: #648DAF;       /* Light blue */
    --text-main: #0F172A;       /* Slate 900 */
    --text-muted: #64748B;      /* Slate 500 */
    --border: #E2E8F0;          /* Slate 200 */
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 10px 25px -5px rgba(255, 138, 0, 0.4);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.text-left {
    text-align: left !important;
}

.why-us-desc {
    margin: 0 0 24px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background-color: var(--card-bg);
}

.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

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

.logo-text {
    color: var(--dark);
}

.logo-accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-only-btn {
    display: none;
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-color) 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 138, 0, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    position: relative;
}

/* Abstract Mockup Placeholder */
.mockup-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.mockup-placeholder:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    height: 40px;
    background-color: #F8FAFC;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.mockup-body {
    display: flex;
    flex: 1;
}

.mockup-sidebar {
    width: 80px;
    background-color: var(--dark);
}

.mockup-content {
    flex: 1;
    padding: 24px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-card {
    height: 100px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.mockup-grid {
    display: flex;
    gap: 16px;
    flex: 1;
}

.mockup-box {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* --- Features Section --- */
.features {
    background-color: var(--card-bg);
}

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

.feature-card {
    background-color: var(--bg-color);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--card-bg);
    border-color: var(--accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 138, 0, 0.1);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* --- Stats Section --- */
.stats {
    background-color: var(--dark);
    color: #FFFFFF;
}

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

.stat-number {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1.125rem;
    color: #94A3B8;
    font-weight: 500;
}

/* --- Why Us Section --- */
.why-us {
    background-color: var(--bg-color);
}

.why-us-container {
    display: flex;
    align-items: center;
    gap: 64px;
}

.why-us-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.abstract-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 5rem;
    box-shadow: var(--shadow-xl);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.why-us-content {
    flex: 1;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 500;
}

.benefits-list i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 2px;
}

/* --- CTA Section --- */
.cta {
    background-color: var(--card-bg);
}

.cta-box {
    background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: var(--shadow-xl);
}

.cta-title {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 0.875rem;
    color: #64748B;
}

/* --- Footer --- */
.footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

.footer-desc {
    color: var(--text-muted);
    margin: 16px 0 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    color: var(--text-main);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent);
    color: #FFFFFF;
}

.footer-links h4 {
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container, .why-us-container {
        gap: 40px;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-container, .why-us-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    .benefits-list {
        align-items: flex-start;
        text-align: left;
        display: inline-flex;
        margin: 0 auto;
    }
    
    .section-desc, .section-title.text-left, .text-left {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .nav-menu {
        display: none; /* Mobile menu logic in JS */
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border);
        text-align: center;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 1.125rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-only-btn {
        display: inline-flex;
        margin-top: 16px;
    }

    .nav-actions .btn {
        display: none;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

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

    .cta-box {
        padding: 40px 24px;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-desc {
        margin: 16px auto 24px;
    }

    .logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .abstract-shape {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }
    
    .mockup-placeholder {
        height: 300px;
        transform: none; /* Disable 3D transform on mobile for better fit */
    }
    
    .mockup-placeholder:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .stat-number {
        font-size: 2.75rem;
    }

    .abstract-shape {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}
