/*
   VirtuCath Modern UI Theme (Light Mode)
   Style: SaaS / Tech / Premium
   Fonts: Inter (Google Fonts)
*/

:root {
    /* Color Palette */
    --primary: #2563EB;
    /* Royal Blue */
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --accent: #10B981;
    /* Emerald Green */

    --bg-body: #F8FAFC;
    /* Light Cool Grey Background */
    --bg-card: #FFFFFF;
    /* Pure White Cards */

    --text-main: #0F172A;
    /* Dark Slate */
    --text-muted: #475569;
    /* Slate 600 */
    --text-light: #64748B;
    /* Slate 500 */

    --border: #E2E8F0;
    /* Light Grey Border */

    /* Spacing & Layout */
    --container-max: 1280px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(135deg, #2563EB, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-xs {
    font-size: 0.75rem;
}

.bg-light {
    background-color: #F1F5F9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 0.5rem;
    border: none;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
}

.btn-secondary:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

/* Layout Containers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    /* Start transparent */
    backdrop-filter: blur(0px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

/* Hero Section (Split Layout) */
.hero {
    position: relative;
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #F0F9FF, #F8FAFC, #FFFFFF);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text-col {
    text-align: left;
    max-width: 600px;
}

.hero-text-col h1 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.hero-text-col p {
    color: var(--text-muted);
}

.hero-kicker {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.hero-buttons .btn-outline {
    color: var(--text-main);
    border-color: var(--border);
}

.hero-buttons .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

.trust-badge {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.trust-badge i {
    color: var(--primary-light);
    font-size: 0.75rem;
}

.hero-media-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-window {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    overflow: hidden;
    width: 100%;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-video-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}



.hero-video-window video {
    width: 100%;
    display: block;
}

.workflow-section {
    position: relative;
    padding: 0;
}

.feature-step {
    min-height: auto;
    /* Removed 100vh forcing */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    /* Consistent spacing between steps */
}

/* Reduce gap between title and first step */
#workflow .section-header {
    margin-bottom: 2rem;
    padding-top: 4rem;
}

.feature-step:nth-child(2) {
    padding-top: 2rem;
    /* Pull first step closer to header */
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 100%;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-media {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-container {
    max-height: 60vh;
    width: auto;
    max-width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.media-container video,
.media-container img {
    max-height: 60vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.step-number {
    font-size: 3rem;
    /* Reduced from 4rem */
    font-weight: 900;
    color: #E2E8F0;
    /* Slightly darker than F1F5F9 for visibility */
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    /* Reduced padding from 1.5rem */
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.value-card h3 {
    font-size: 1.1rem;
    /* Smaller heading */
    margin-bottom: 0;
    margin-top: 0.2rem;
    /* Visually align with icon */
    line-height: 1.3;
}

.value-card p {
    font-size: 0.9rem;
    /* Smaller body text */
    line-height: 1.5;
    margin-bottom: 0;
    /* Remove bottom margin to save space */
    color: var(--text-muted);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
}

.icon-box {
    flex-shrink: 0;
    width: 2.25rem;
    /* Slightly smaller icon box */
    height: 2.25rem;
    background: #EFF6FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0;
    /* Removed margin since we use gap now */
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.cta-section {
    padding: 3rem 1.5rem;
}

.cta-box {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-box h2,
.cta-box p {
    color: white;
    position: relative;
    z-index: 2;
}

.cta-actions {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.small-container {
    max-width: 600px;
}

.contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-message {
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

.footer {
    background: #0F172A;
    border-top: none;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
    color: #94A3B8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul li a {
    color: #94A3B8;
}

.footer ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.disclaimer {
    color: #64748B;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Feature List Styling */
.feature-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.feature-list li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.feature-list li strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    padding: 8rem 0 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Document Cards */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 4rem 0;
}

.document-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.document-icon {
    font-size: 2rem;
    color: #EF4444;
    /* PDF Red */
}

.document-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.document-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.document-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: block;
}

.doc-warning {
    font-size: 0.8rem;
    color: #b45309;
    /* Amber 700 */
    background: #fef3c7;
    /* Amber 100 */
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin: 0.75rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    border: 1px solid #fde68a;
}

.doc-warning i {
    font-size: 0.85rem;
}

/* Forms (Beta/Contact) */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-wrapper label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Release Tree (Beta Page) */
.release-tree {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-top: 2rem;
}

.release-entry {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.release-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.release-header {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: var(--text-main);
    user-select: none;
    gap: 0.75rem;
}

.release-header:hover {
    color: var(--primary);
}

.release-header i {
    width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
    color: var(--primary-light);
}

.release-date {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: auto;
    background: #F1F5F9;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.release-content {
    margin-top: 1rem;
    padding-left: 2rem;
    display: block;
}

.release-entry.collapsed .release-content {
    display: none;
}

.release-content h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
}

.release-content ul {
    list-style: disc;
    padding-left: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.release-content li {
    margin-bottom: 0.4rem;
}

.defender-notice {
    background: #FFF7ED;
    /* Orange/Yellow warning bg */
    border: 1px solid #FED7AA;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
}

.defender-notice h3 {
    color: #C2410C;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.defender-notice p,
.defender-notice li {
    font-size: 0.9rem;
    color: #9A3412;
}

/* Pricing Toggle */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 3.5rem;
    height: 2rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    /* Slate 300 */
    transition: .4s;
    border-radius: 2rem;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.5rem;
    width: 1.5rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.toggle-slider {
    background-color: var(--primary);
}

input:checked+.toggle-slider:before {
    transform: translateX(1.5rem);
}

.save-badge {
    background: #DCFCE7;
    /* Green 100 */
    color: #15803D;
    /* Green 700 */
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Tablet / Small Laptop */
@media (max-width: 1100px) {
    .container {
        padding: 0 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-grid {
        gap: 3rem;
    }

    .hero-video-window {
        /* Reduce 3D effect on smaller landscape screens */
        transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text-col {
        text-align: center;
        margin: 0 auto;
    }

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

    .hero-video-window {
        transform: none;
    }

    .hero-video-window:hover {
        transform: none;
    }

    .feature-step {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .nav-menu {
        display: none;
        /* Dropdown styles */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        gap: 2rem;
    }

    .mobile-toggle {
        display: block;
        color: var(--text-main);
    }

    .nav-active .nav-menu {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .feature-text {
        min-width: unset;
    }

    .media-container,
    .media-container video,
    .media-container img {
        max-height: none;
        width: 100%;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}