/* Compact & Cosy Design - UK Style */
/* Genuinely compact spacing for a cosy, professional feel */

/* Tighter container width for better focus */
.container {
    max-width: 1080px; /* Reduced from 1200px */
    padding: 0 20px;
}

/* Significantly reduce section padding */
section {
    padding: 35px 0 !important; /* Reduced from 50-120px */
}

/* Hero sections - much more compact */
.hero,
.tech-hero,
.beta-hero,
.contact-hero,
.docs-hero {
    padding: 60px 0 35px !important; /* Reduced from 120px+ */
}

/* Improved typography hierarchy - better contrast between levels */
h1 {
    margin-bottom: 0.875rem !important;
    line-height: 1.2 !important;
    font-size: 2.5rem !important; /* Increased for clear hierarchy */
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

h2 {
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    font-size: 1.85rem !important; /* Better gap from h1 */
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

h3 {
    margin-bottom: 0.625rem !important;
    line-height: 1.35 !important;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
}

h4 {
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

h5 {
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

p {
    margin-bottom: 0.875rem !important;
    line-height: 1.55 !important; /* Tighter line height */
}

/* Tighter list spacing */
ul, ol {
    margin-bottom: 1rem !important;
}

li {
    margin-bottom: 0.5rem !important; /* Reduced from 0.75-1rem */
}

/* Very compact cards and boxes */
.card,
.feature-card,
.step-card,
.info-box,
.warning-box,
.contribution-card {
    padding: 1.25rem !important; /* Much tighter */
    margin-bottom: 1.25rem !important;
}

/* Grid spacing very tight */
.grid,
.features-grid,
.steps-grid,
.specs-grid,
.contribution-grid {
    gap: 1.25rem !important; /* Much tighter grids */
}

/* Modern touches - Subtle shadows and borders */
.card,
.feature-card,
.info-box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Buttons - more compact and modern */
.btn,
.cta-button,
.btn-primary,
.btn-secondary {
    padding: 0.625rem 1.5rem !important; /* Reduced from 0.875rem 2rem */
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
}

/* Modern button hover effects */
.btn:hover,
.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Much tighter CTA sections */
.cta-section,
.support-cta {
    padding: 35px 20px !important; /* Very compact */
}

/* Footer - very compact */
.footer {
    padding: 30px 0 15px !important; /* Much tighter */
}

.footer-content {
    gap: 1.5rem !important; /* Tighter gaps */
    margin-bottom: 1.5rem !important;
}

/* FAQ items - tighter spacing */
.faq-item {
    margin-bottom: 1rem !important; /* Reduced from 1.5rem */
}

.faq-answer {
    padding: 1rem 1.25rem !important; /* Reduced from 1.5rem 2rem */
}

/* Technology page - compact */
.tech-overview,
.how-it-works,
.technical-specs {
    padding: 50px 0 !important;
}

.overview-grid,
.steps-grid {
    gap: 2rem !important; /* Reduced from 3rem */
}

/* Modern accent colors - subtle improvements */
.badge,
.beta-badge,
.tech-badges span {
    padding: 0.375rem 0.875rem !important; /* Reduced from 0.5rem 1rem */
    font-size: 0.8125rem !important;
}

/* Tables - improved readability with better spacing */
table {
    margin: 1.75rem 0 !important;
    border-collapse: collapse;
    width: 100%;
}

th {
    padding: 0.875rem 1rem !important; /* Slightly more padding for headers */
    font-weight: 600 !important;
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
}

td {
    padding: 0.875rem 1rem !important; /* Increased for better readability */
    border-bottom: 1px solid #f3f4f6;
}

tbody tr:hover {
    background-color: #fafbfc;
    transition: background-color 0.2s ease;
}

/* Comparison tables (specific styling) */
.comparison-table {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background-color: #667eea;
    color: white;
    border-bottom: none;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive: Very compact on mobile */
@media (max-width: 768px) {
    section {
        padding: 30px 0 !important;
    }

    .hero,
    .tech-hero,
    .beta-hero {
        padding: 50px 0 30px !important;
    }

    h1 {
        font-size: 2rem !important; /* Better readability on mobile */
        margin-bottom: 0.75rem !important;
        letter-spacing: -0.015em;
    }

    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.625rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    .card,
    .feature-card,
    .contribution-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .btn {
        padding: 0.5rem 1rem !important;
    }
}

/* Modern scrollbar styling (Chrome/Safari) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Modern focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle animations for modern feel */
.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improve link hover states */
a:not(.btn):not(.nav-link) {
    transition: color 0.2s ease;
}

a:not(.btn):not(.nav-link):hover {
    color: #667eea;
}

/* Modern input fields */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    padding: 0.625rem 1rem !important; /* Slightly more compact */
    border: 1.5px solid #e5e7eb !important;
    border-radius: 6px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    color: #1f2937 !important; /* Ensure text is visible */
}

/* Ensure dropdown options are always visible */
select option {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

/* Modern status badges */
.status-badge,
.credential-item {
    padding: 0.25rem 0.75rem !important;
    border-radius: 12px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
}
