/* KSeFBOX V5 (Merged: V1 Structure + Brand Colors) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');
/* Using V5 font 'Outfit' */

:root {
    /* Brand Colors (V5) */
    --bg-color: #ffffff;
    --text-color: #1C232B;
    /* Dark Anthracite */
    --accent-color: #c0392b;
    /* Red */
    --secondary-color: #4b5563;

    /* Processed for Light Mode Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    /* Frosted glass white */
    --glass-border: rgba(28, 35, 43, 0.08);
    /* Subtle dark border */

    /* Gradients adapted */
    --gradient-1: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    --gradient-2: linear-gradient(135deg, #1C232B 0%, #c0392b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: url('logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    color: var(--text-color);
    /* No gradient text on white usually, or use Anthracite */
    background: none;
    -webkit-text-fill-color: initial;
}

/* Optional: Keyword gradient */
.text-gradient span {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 0.75em 2em;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.5);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    margin-left: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--accent-color);
}

/* Glassmorphism Card (Light Mode) */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s, padding 0.3s;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 80px;
}

.logo-img {
    height: 80px;
    /* Clean size for sticky header */
    transition: height 0.3s;
}

header.scrolled .logo-img {
    height: 60px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Subtle background shapes */
    background: radial-gradient(circle at top right, rgba(192, 57, 43, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(28, 35, 43, 0.05), transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.hero-text h1 span {
    color: var(--accent-color);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    position: relative;
}

.mockup-wrapper {
    position: relative;
    z-index: 10;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    /* Lighter shadow for light mode */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: #f8fafc;
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px dashed var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Features */
.features {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: #fff;
    /* White bg for icon */
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
}

/* Modules */
.modules {
    padding: 8rem 0;
    background: #f9fafb;
    /* Light Gray */
}

.module-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.module-row.reverse {
    direction: rtl;
}

.module-row.reverse .module-text {
    direction: ltr;
}

.module-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.module-text li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--secondary-color);
}

.module-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Workflow */
.workflow {
    padding: 8rem 0;
    text-align: center;
}

.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.step {
    padding: 2rem;
    min-width: 250px;
    background: white;
    /* Solid white card */
    border: 1px solid var(--glass-border);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(28, 35, 43, 0.05);
    /* Subtle dark number */
    line-height: 1;
    margin-bottom: -2rem;
    position: relative;
    z-index: 0;
}

.step-title {
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.arrow {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--secondary-color);
    background: white;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {

    .hero-content,
    .module-row,
    .features-grid,
    .workflow-steps {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .module-row.reverse {
        direction: ltr;
    }
}

/* Under Construction Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}