/* 
 * Shiteni360 Landing Page CSS 
 * Theme: White/Clean Modern SaaS
 */

:root {
    /* Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    /* Slate 50 */
    --bg-tertiary: #f1f5f9;
    /* Slate 100 */

    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-tertiary: #94a3b8;
    /* Slate 400 */
    --text-inverse: #ffffff;

    --brand-primary: #2563eb;
    /* Blue 600 */
    --brand-dark: #1e40af;
    /* Blue 800 */
    --brand-accent: #10b981;
    /* Emerald 500 */

    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Spacing */
    --container-max-width: 1280px;
    --section-padding: 5rem 1.5rem;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* Utilities */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-tertiary);
}

.btn-text {
    color: var(--text-secondary);
    padding: 0;
    background: none;
}

.btn-text:hover {
    color: var(--brand-primary);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    max-height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--brand-primary);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #ffffff 50%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-visual {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}


/* CSS Dashboard Mockup */
.dashboard-mockup {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    background: #f8fafc;
    aspect-ratio: 16/9;
    display: flex;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
    border: 1px solid var(--border-color);
}

.mockup-sidebar {
    width: 20%;
    height: 100%;
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-nav {
    height: 8px;
    width: 60%;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.mockup-nav-item {
    height: 8px;
    width: 80%;
    background: #f1f5f9;
    border-radius: 4px;
}

.mockup-nav-active {
    background: var(--brand-primary);
    opacity: 0.2;
}

.mockup-main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-header {
    height: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mockup-title {
    height: 12px;
    width: 30%;
    background: #cbd5e1;
    border-radius: 4px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mockup-widget {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mockup-chart-h {
    height: 40px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.mockup-bar {
    width: 100%;
    background: var(--brand-primary);
    opacity: 0.5;
    border-radius: 2px 2px 0 0;
}

/* Creative Charts Enhancement */
.mockup-area-chart {
    height: 60px;
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 100%);
    position: relative;
    clip-path: polygon(0 100%, 0 60%, 20% 45%, 40% 55%, 60% 35%, 80% 25%, 100% 15%, 100% 100%);
}

.mockup-area-chart::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.mockup-donut {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: conic-gradient(var(--brand-accent) 0% 65%, #e2e8f0 65% 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-donut::before {
    content: '';
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

.mockup-table {
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex: 1;
    margin-top: 1rem;
    padding: 1rem;
}

.mockup-row {
    height: 8px;
    width: 100%;
    background: #f1f5f9;
    margin-bottom: 8px;
    border-radius: 4px;
}

/* Floating Cards (Animatable) */
.float-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.8s ease forwards;
}

.card-rev {
    top: 10%;
    right: -2%;
    animation-delay: 0.5s;
}

.card-sales {
    bottom: 15%;
    left: -2%;
    animation-delay: 0.8s;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Common */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Trust / Social Proof */
.trust-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
    margin-top: 2rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.metric-card h3 {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

/* Comparison */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    text-align: left;
    font-size: 1.125rem;
}

.comparison-table th:first-child {
    width: 40%;
}

.check-icon {
    color: var(--brand-accent);
    font-weight: bold;
}

.x-icon {
    color: #ef4444;
}

/* Department Cards */
.dept-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
}

.dept-card {
    min-width: 300px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    scroll-snap-align: center;
    transition: var(--transition);
}

.dept-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.dept-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* How It Works */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-step {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    width: 45%;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-weight: bold;
}

/* Built For Scale */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-box {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
    z-index: 1;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    text-align: left;
    margin: 2rem 0;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* CTA & Footer */
.final-cta {
    background: var(--brand-primary);
    color: white;
    text-align: center;
    padding: 6rem 1.5rem;
}

.final-cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.final-cta .btn-secondary {
    background: white;
    border: none;
    color: var(--brand-primary);
}

footer {
    background: var(--text-primary);
    /* Dark footer for contrast */
    color: var(--text-tertiary);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: var(--container-max-width);
    margin: 0 auto 4rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-step,
    .timeline-step:nth-child(even) {
        flex-direction: column;
        padding-left: 4.5rem;
    }

    .step-content {
        width: 100%;
        margin-bottom: 2rem;
    }

    .step-icon {
        left: 2rem;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* Animations (JS Triggered) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tutorial Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalAppear 0.4s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.modal-sidebar {
    width: 250px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-secondary);
    overflow-y: auto;
    padding: 1rem;
}

.dept-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.dept-link:hover {
    background: var(--bg-tertiary);
    color: var(--brand-primary);
}

.dept-link.active {
    background: white;
    color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.tutorial-main {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.tutorial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tutorial-icon {
    font-size: 3rem;
}

.tutorial-title {
    font-size: 2rem;
    color: var(--text-primary);
}

.tutorial-section {
    margin-bottom: 2rem;
}

.tutorial-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--brand-primary);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--brand-primary);
    font-size: 0.95rem;
}

.guide-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: bold;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-primary);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-sidebar {
        width: 100%;
        max-height: 150px;
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }

    .dept-link {
        white-space: nowrap;
    }
}

/* Video Player Placeholder */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.video-container:hover .video-thumbnail {
    opacity: 0.8;
    transform: scale(1.02);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    transition: var(--transition);
}

.video-container:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--brand-primary);
}

.video-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}