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

:root {
    --primary-color: #0288d1;
    --secondary-color: #7b1fa2;
    --accent-color: #00acc1;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1e;
    --light-bg: #f5f5f5;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
}

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

/* Header */
header {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.9rem;
    color: #aaa;
}

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

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

.btn-github {
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.btn-github:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.btn-try-irc {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
    animation: pulse-red 2s ease-in-out infinite;
}

.btn-try-irc:hover {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.6);
}

.btn-chat-now {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
    animation: pulse-green 2s ease-in-out infinite;
}

.btn-chat-now:hover {
    background: linear-gradient(135deg, #00e676 0%, #69f0ae 100%);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.6);
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
    }
    50% {
        box-shadow: 0 2px 16px rgba(211, 47, 47, 0.7);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
    }
    50% {
        box-shadow: 0 2px 16px rgba(0, 200, 83, 0.7);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-light);
    padding: 6rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

.btn-webchat {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.btn-webchat:hover {
    background: linear-gradient(135deg, #00e676 0%, #69f0ae 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 200, 83, 0.4);
}

.btn-try-irc-large {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-try-irc-large:hover {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

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

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

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

.feature-card p {
    color: var(--text-secondary);
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text ul {
    margin-left: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

/* Screenshots Section */
.screenshots {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.screenshots-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.screenshot-category {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 100%;
}

.screenshot-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    max-width: 100%;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    display: block;
    border-bottom: 3px solid var(--primary-color);
}

.screenshot-caption {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* Use Cases Section */
.use-cases {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

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

.use-case {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.use-case h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.use-case p {
    color: var(--text-secondary);
}

/* Quick Start Section */
.quickstart {
    padding: 5rem 0;
}

.quickstart h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

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

.quickstart-step {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.quickstart-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

pre {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.quickstart-note {
    background-color: #e3f2fd;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

/* Comparison Section */
.comparison {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-bg);
}

.comparison-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table thead {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background-color: #e3f2fd;
    font-weight: bold;
}

.comparison-table tbody tr:hover {
    background-color: #f9f9f9;
}

.comparison-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Documentation Section */
.documentation {
    padding: 5rem 0;
}

.documentation h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-bg);
}

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

.doc-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border: 2px solid transparent;
}

.doc-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.doc-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.doc-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Legacy Section */
.legacy {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-light);
}

.legacy h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legacy-content > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.timeline-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.timeline-year {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.legacy-preservation {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--light-bg);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.cta .btn-secondary {
    background-color: transparent;
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
}

.cta .btn-secondary:hover {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

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

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.version {
    font-size: 0.9rem;
    color: #888;
}

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

.footer-tagline {
    font-style: italic;
    color: #888;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .use-case-grid,
    .quickstart-content,
    .doc-grid {
        grid-template-columns: 1fr;
    }

    .legacy-timeline {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--accent-color);
    color: var(--text-light);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    margin-top: 1rem;
}
