/* SaaScot Global Styles */

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

/* CSS Variables / Design Tokens */
:root {
    --primary-color: #4A9FDC;
    --secondary-color: #2B3439;
    --accent-color: #B8C1C1;
    --text-color: #2B3439;
    --light-bg: #F8F6F3;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient: linear-gradient(135deg, #4A9FDC 0%, #728286 100%);
    --font-family: 'Inter', sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 12px rgba(0,0,0,.05);
    --box-shadow-lg: 0 8px 25px rgba(74, 159, 220, 0.3);
}

/* Dark mode theme */
[data-theme="dark"] {
    --text-color: #f8fafc;
    --light-bg: #1e293b;
    --white: #0f172a;
    --secondary-color: #f8fafc;
    --accent-color: #64748b;
    --primary-color: #60a5fa;
    --gradient: linear-gradient(135deg, #60a5fa 0%, #8b5cf6 100%);
}

/* Typography */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h5 { font-size: clamp(1rem, 1.5vw, 1.125rem); }
h6 { font-size: clamp(0.9rem, 1.2vw, 1rem); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: var(--border-radius);
}

.skip-link:focus {
    top: 6px;
}

/* Visually Hidden Class */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header - Zoom Optimized */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(43, 52, 57, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    max-height: 80px; /* Limit header height even when zoomed */
}

[data-theme="dark"] header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    min-height: 60px;
    max-height: 80px;
}

/* Header Card for Centered Logo - Size Controlled */
.header-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.25rem 1rem;
    border-radius: 0.75rem;
    background: var(--white);
    box-shadow: var(--box-shadow);
    max-width: fit-content;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1rem, 2vw, 1.25rem); /* Controlled scaling */
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.logo img {
    width: clamp(24px, 5vw, 32px); /* Controlled logo size */
    height: clamp(24px, 5vw, 32px);
    max-width: 32px;
    max-height: 32px;
}

/* Mobile/Hamburger Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem); /* Controlled text scaling */
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    z-index: 999;
    padding: 2rem;
    animation: slideDown 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-overlay ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-overlay li {
    margin-bottom: 1.5rem;
}

.mobile-menu-overlay a {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.mobile-menu-overlay a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: clamp(8px, 2vw, 12px) clamp(16px, 3vw, 24px);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

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

.btn-lg {
    padding: 16px 28px;
    font-size: 1.1rem;
}

/* CTA Button */
.cta-button {
    background: var(--gradient);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(360deg);
}

/* Hero Section */
.hero {
    padding: 90px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, var(--light-bg), var(--white));
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Logo Showcase */
.logo-showcase {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.logo-showcase-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    max-width: 400px;
}

.logo-showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient);
    border-radius: var(--border-radius-lg);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-showcase-card:hover::before {
    opacity: 1;
}

.logo-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 159, 220, 0.4);
}

.logo-showcase-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(74, 159, 220, 0.3));
    transition: transform 0.3s ease;
}

.logo-showcase-card:hover .logo-showcase-icon {
    transform: scale(1.1);
}

.logo-showcase-text {
    text-align: left;
}

.logo-showcase-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-showcase-text p {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Social Proof Section */
.social-proof {
    padding: 60px 0;
    background: var(--white);
    text-align: center;
}

.social-proof h3 {
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-row img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-row img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(43, 52, 57, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

.feature-highlight {
    background: var(--gradient);
    color: #ffffff !important;
}

.feature-highlight h3,
.feature-highlight p {
    color: #ffffff !important;
}

/* Stats Section */
.stats {
    background: var(--gradient);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

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

.stat {
    padding: 1rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Enterprise Features Section */
.enterprise-features {
    padding: 60px 0;
    background: var(--light-bg);
}

.enterprise-features h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.enterprise-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.enterprise-item:hover {
    transform: translateY(-2px);
}

.enterprise-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.enterprise-text {
    font-weight: 500;
    color: var(--text-color);
}

/* Tables */
.comparison-table {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

.checkmark {
    color: var(--success);
    font-weight: 600;
}

.cross {
    color: var(--error);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #b8c1c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 2rem;
    text-align: center;
    color: #b8c1c1;
}

/* Warning and Info Boxes */
.warning-box {
    background: #fef3cd;
    border: 1px solid #fbbf24;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
}

.info-box {
    background: #dbeafe;
    border: 1px solid #60a5fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
}

.contact-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Mobile Responsive - Hamburger Menu for High Zoom & Mobile */
@media (max-width: 1024px) {
    /* Show hamburger menu at tablet size and high zoom levels */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    nav {
        justify-content: space-between;
    }
    
    .header-card {
        flex: 1;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
    }
    
    .hero .subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }
    
    .logo-showcase-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 2rem;
        margin: 0 1rem;
        max-width: none;
    }
    
    .logo-showcase-text {
        text-align: center;
    }
    
    .logo-showcase-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 350px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .enterprise-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .logo-row {
        gap: 2rem;
    }
    
    .logo-row img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: clamp(1.25rem, 8vw, 2rem);
    }
    
    .cta-section h2 {
        font-size: clamp(1.25rem, 6vw, 2rem);
    }
    
    .logo-showcase-card {
        padding: 1rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .logo-showcase-text h3 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .mobile-menu-overlay {
        padding: 1rem;
    }
}

/* High zoom level adjustments - ensures readability at 200%+ zoom */
@media (max-width: 1440px) and (min-width: 1025px) {
    /* This catches high zoom on desktop */
    body {
        font-size: 0.9rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
}

/* Extra high zoom adjustments */
@media (max-width: 1200px) and (min-width: 769px) {
    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
    
    .hero .subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
}

/* Dark Mode Overrides */
[data-theme="dark"] .feature-highlight {
    color: #ffffff !important;
}

[data-theme="dark"] .feature-highlight h3,
[data-theme="dark"] .feature-highlight p {
    color: #ffffff !important;
}

[data-theme="dark"] .warning-box {
    background: #451a03;
    border-color: #f59e0b;
    color: #fde68a;
}

[data-theme="dark"] .info-box {
    background: #1e3a8a;
    border-color: #60a5fa;
    color: #dbeafe;
}

/* High Contrast for Accessibility */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --primary-color: #0066cc;
    }
    
    [data-theme="dark"] {
        --text-color: #ffffff;
        --primary-color: #66b3ff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 