/* 
   Elevation Creative - Clean Science Aesthetic 
   Colors: Deep Navy (#0A192F), Clinical White (#F4F7F6), Cyan Accent (#64FFDA)
*/

:root {
    --navy: #0A192F;
    --navy-light: #112240;
    --navy-lighter: #233554;
    --slate: #8892b0;
    --white: #e6f1ff;
    --cyan: #64FFDA;
    --green: #4CAF50;
    --red: #F44336;
    --bg-light: #F4F7F6;
    --text-dark: #333;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: #555;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

.max-w-600 {
    max-width: 600px;
    margin: 0 auto;
}

.accent-text {
    color: var(--cyan);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--navy);
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: rgba(10, 25, 47, 0.1);
}

.btn-outline {
    background: none;
    border: 1px solid var(--navy);
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 15px;
    border-radius: 4px;
    color: var(--navy);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(244, 247, 246, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--navy);
}

.logo-icon {
    color: var(--cyan);
}

/* Hero */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}

/* Abstract Tech Background for Hero via CSS Gradients */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(100, 255, 218, 0.05) 0%, transparent 20%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
}

.hero p {
    color: var(--slate);
    font-size: 1.25rem;
}

/* Grid Layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.align-center {
    align-items: center;
}

/* Cards */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* SaniSystem Section (Dark Mode) */
.dark-mode {
    background-color: var(--navy);
    color: var(--white);
}

.dark-mode h2,
.dark-mode h3 {
    color: var(--white);
}

.dark-mode p,
.dark-mode span,
.dark-mode li {
    color: var(--slate);
}

.badge {
    color: var(--cyan);
    font-family: monospace;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.tech-visual {
    position: relative;
}

/* Dashboard Mockup - Pure CSS */
.dashboard-mockup {
    background: var(--navy-light);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--navy-lighter);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    min-height: 300px;
    position: relative;
}

.screen-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.screen-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-area {
    height: 150px;
    background: linear-gradient(180deg, rgba(100, 255, 218, 0.1) 0%, rgba(100, 255, 218, 0) 100%);
    border-bottom: 2px solid var(--cyan);
    border-radius: 4px;
    position: relative;
}

/* Simulate a graph line */
.chart-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(100, 255, 218, 0.05) 10px, rgba(100, 255, 218, 0.05) 20px);
}

.stats-row {
    display: flex;
    gap: 15px;
}

.stat-box {
    flex: 1;
    height: 60px;
    background: var(--navy-lighter);
    border-radius: 4px;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 20px;
    border-left: 2px solid var(--cyan);
    padding-left: 15px;
}

.feature-list strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

/* Inspector Tools - Phone Mockup */
.phone-frame {
    width: 280px;
    height: 550px;
    background: #111;
    border-radius: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin: 0 auto;
    border: 4px solid #333;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.app-header {
    background: var(--navy);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
}

.app-body {
    padding: 20px;
}

.app-row {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #333;
}

.check {
    color: var(--green);
    font-weight: bold;
}

.alert {
    color: var(--red);
    font-weight: 600;
    background: #fff0f0;
    border-radius: 4px;
}

/* Tags */
.tool-tags {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #eef2f6;
    color: var(--navy);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--navy-light);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-brand h4 {
    color: var(--cyan);
    letter-spacing: 2px;
}

.footer-links a {
    color: var(--slate);
    margin-left: 20px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--cyan);
}

.copyright {
    text-align: center;
    color: var(--slate);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .phone-frame {
        margin-bottom: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links a {
        margin: 0 10px;
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }
}

/* =========================================
   Sani Healthy Branding
   ========================================= */
.sani-body {
    --accent: #00ff88;
    /* Clinical Green */
    --accent-glow: rgba(0, 255, 136, 0.2);
}

.sani-hero {
    background: radial-gradient(circle at 20% 50%, #001f3f 0%, #000 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Specific overrides for Hero Text Visibility */
.sani-hero h1 {
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sani-hero p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sani-hero .trust-badges {
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure gradient text maintains its gradient */
.sani-hero .gradient-text {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
}

/* Micro-Animation for "Air Particles" */
.sani-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: floatParticles 60s linear infinite;
}

@keyframes floatParticles {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.check-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

.check-list li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.trust-badges .badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.feature-card.highlight {
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 0, 0, 0));
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* --- MoldPro Product Page Styles --- */

.product-hero {
    background: radial-gradient(circle at 50% 50%, #233554 0%, #0A192F 100%);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.product-hero h1 {
    margin-top: 10px;
}

.product-hero p {
    max-width: 600px;
    margin: 20px auto;
    color: #a8b2d1;
}

.small-frame {
    height: 480px;
    width: 260px;
}

/* Tabbed Interface */
.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    color: #8892b0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: var(--navy);
}

.tab-btn.active {
    color: var(--navy);
    border-color: var(--cyan);
    font-weight: 700;
}

.demo-content-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Report Mockup */
.report-mockup {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    padding: 30px;
    width: 320px;
    margin: 0 auto;
}

.report-header {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.8rem;
}

.status-badge {
    background: #d32f2f;
    color: white;
    padding: 2px 6px;
    font-size: 0.7rem;
}

.report-row {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.bar-container {
    display: block;
    height: 8px;
    background: #eee;
    margin: 5px 0;
    border-radius: 4px;
}

.bar {
    height: 100%;
    border-radius: 4px;
}

/* Integration Logos */
.integration-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.logo-box {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 1.5rem;
}

/* --- Client Portal Styles --- */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #112240 0%, #0A192F 100%);
}

.login-container {
    width: 400px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Dashboard Specifics */
.user-badge {
    color: var(--navy);
    font-weight: 600;
    margin-right: 20px;
    padding: 6px 12px;
    background: #eef2f6;
    border-radius: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.btn-micro {
    padding: 4px 8px;
    font-size: 0.75rem;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.doc-card {
    background: white;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.doc-card h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

/* =========================================
   Premium UI Kit (Sani Healthy Revamp)
   ========================================= */

.premium-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.premium-card:hover::before {
    opacity: 1;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.premium-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.gradient-text {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.doc-icon {
    font-size: 2rem;
}