/**
 * Minzah™ - Custom Fluent CSS Stylesheet
 * Inspired by Microsoft Fluent Design Language.
 */

:root {
    --primary: #0078d4;
    --primary-hover: #005a9e;
    --primary-light: #eff6fc;
    --accent: #107c41;
    --dark: #201f1e;
    --light: #f3f2f1;
    --white: #ffffff;
    --border: #edebe9;
    --border-hover: #a19f9d;
    --text-main: #323130;
    --text-secondary: #605e5c;
    --text-light: #f3f2f1;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.1);
    --radius: 4px;
    --transition: all 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
    --font-heading: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Developer Notification Banner */
.dev-banner {
    background: linear-gradient(90deg, #fff2cc, #ffe599);
    border-bottom: 1px solid #f1c232;
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
    color: #7f6000;
    position: relative;
    z-index: 1000;
}
.dev-banner a {
    color: #385723;
    font-weight: 700;
    text-decoration: underline;
}

/* Typographical Standards */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
}

/* General Layout helpers */
.section {
    padding: 80px 0;
}
.section-light {
    background-color: var(--light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-secondary {
    background-color: transparent;
    border-color: var(--border-hover);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--light);
    border-color: var(--dark);
    transform: translateY(-2px);
}
.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background-color: #0b592e;
    color: var(--white);
    transform: translateY(-2px);
}

/* Main Navigation Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Brand Logo Styling */
.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.brand-name .tm {
    font-size: 12px;
    vertical-align: super;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--dark);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu Layout */
.dropdown-item {
    position: relative;
}
.arrow-down {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--text-secondary);
    border-bottom: 1.5px solid var(--text-secondary);
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 3px;
    transition: var(--transition);
}
.dropdown-item:hover .arrow-down {
    transform: rotate(-135deg);
    margin-bottom: -1px;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    list-style: none;
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
}
.dropdown-menu li a:hover {
    background-color: var(--light);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.btn-nav-cta {
    padding: 8px 18px;
    font-size: 13px;
    background-color: var(--primary-light);
    color: var(--primary);
}
.btn-nav-cta:hover {
    background-color: var(--primary);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}
.mobile-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f6 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content {
    max-width: 540px;
}
.badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-content h1 {
    font-size: 48px;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 16px;
}
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card-stack {
    width: 100%;
    max-width: 460px;
    height: 380px;
    position: relative;
}
.hero-card {
    position: absolute;
    width: 85%;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}
.hero-card-1 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 244, 250, 0.95));
    top: 10px;
    left: 10px;
    z-index: 2;
    border-left: 4px solid var(--primary);
}
.hero-card-2 {
    background: linear-gradient(135deg, rgba(245, 248, 252, 0.95), rgba(230, 238, 248, 0.95));
    bottom: 20px;
    right: 10px;
    z-index: 1;
    border-left: 4px solid var(--accent);
}
.hero-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    object-fit: contain;
}
.hero-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.hero-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Home Products Section */
.section-title-area {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}
.section-title-area h2 {
    font-size: 36px;
    margin-bottom: 16px;
}
.section-title-area p {
    font-size: 16px;
    color: var(--text-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.product-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}
.product-card.prod-accounting::before, .product-card.prod-dashboard::before {
    background: var(--accent);
}
.product-card:hover::before {
    opacity: 1;
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.product-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.product-meta h3 {
    font-size: 22px;
    margin-bottom: 4px;
}
.product-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.product-card-body p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}
.product-features-preview {
    list-style: none;
    margin-bottom: 30px;
}
.product-features-preview li {
    font-size: 13.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.product-features-preview li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}
.product-card.prod-accounting .product-features-preview li::before, .product-card.prod-dashboard .product-features-preview li::before {
    color: var(--accent);
}
.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

/* Features Grid Page / Segment */
.features-segment {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-box {
    background: var(--white);
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.feature-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: bold;
}
.feature-box h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.feature-box p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Cloud Banner segment */
.cloud-banner {
    background: linear-gradient(135deg, #102a43 0%, #243b53 100%);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    border-radius: 6px;
}
.cloud-banner-content {
    max-width: 700px;
    margin: 0 auto;
}
.cloud-banner h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 16px;
}
.cloud-banner p {
    color: #bcccdc;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Product Detail Page */
.product-detail-hero {
    background-color: var(--light);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.prod-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.prod-detail-visual {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
}
.prod-detail-visual img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}
.prod-detail-info h1 {
    font-size: 40px;
    margin-bottom: 12px;
}
.prod-release {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.prod-detail-info p.lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}
.prod-detail-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}
.prod-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.product-detail-body {
    padding: 80px 0;
}
.detail-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}
.detail-full-desc h2 {
    font-size: 28px;
    margin-bottom: 20px;
}
.detail-full-desc p {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.7;
}

.features-sidebar {
    background-color: var(--light);
    padding: 40px;
    border-radius: 6px;
    border: 1px solid var(--border);
    align-self: start;
}
.features-sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}
.features-list {
    list-style: none;
}
.features-list li {
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.features-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}

/* About Us Page Layout */
.about-hero {
    background: linear-gradient(135deg, #0078d4, #005a9e);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.about-hero h1 {
    color: var(--white);
    font-size: 44px;
    margin-bottom: 16px;
}
.about-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-intro-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.about-intro-text p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.about-intro-visual {
    background-color: var(--light);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}
.about-intro-visual img {
    max-width: 180px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.value-card {
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}
.value-card h3 {
    margin-bottom: 12px;
}
.value-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Legal Pages (EULA & Privacy) */
.legal-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 24px;
}
.legal-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 40px;
}
.legal-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.legal-meta {
    font-size: 13px;
    color: var(--text-secondary);
}
.legal-content h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
}
.legal-content p, .legal-content li {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 16px;
}
.legal-content ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}
.contact-sidebar h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.contact-sidebar p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}
.contact-details {
    list-style: none;
}
.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-details-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.contact-form-wrapper {
    background-color: var(--light);
    padding: 40px;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Main Footer Layout */
.main-footer {
    background-color: var(--light);
    border-top: 1px solid var(--border);
    padding: 80px 0 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}
.brand-col {
    max-width: 280px;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 20px;
}
.footer-contact-info p {
    font-size: 13px;
    color: var(--text-secondary);
}
.footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links li a {
    font-size: 13px;
    color: var(--text-secondary);
}
.footer-links li a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    background-color: #faf9f8;
}
.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.copyright {
    font-size: 12px;
    color: var(--text-secondary);
}
.footer-extra-links {
    display: flex;
    gap: 20px;
}
.footer-extra-links a {
    font-size: 12px;
    color: var(--text-secondary);
}
.footer-extra-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-grid, .product-grid, .features-segment, .prod-detail-grid, .detail-body-grid, .about-intro-grid, .values-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    
    .features-sidebar {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: relative;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .nav-menu.open {
        max-height: 300px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        padding-left: 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
    }
    .dropdown-item.open .dropdown-menu {
        max-height: 100px;
    }
    
    .btn-nav-cta {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 34px;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
