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

:root {
    --primary-color: #f37626;
    --primary-hover: #e56516;
    --primary-light: #fff4ed;
    --bg-color: #fafbfc;
    --card-bg: #ffffff;
    --text-color: #24292e;
    --text-secondary: #586069;
    --border-color: #e1e4e8;
    --added-bg: #e6ffed;
    --added-border: #34d058;
    --removed-bg: #ffeef0;
    --removed-border: #d73a49;
    --modified-bg: #fff5b1;
    --modified-border: #f9c513;
    --line-number-bg: #f6f8fa;
    --code-bg: #f6f8fa;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 10px 40px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== */
/* Navigation Bar */
/* ==================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
}

.nav-brand .logo-icon {
    font-size: 1.75rem;
}

.nav-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-brand .domain {
    color: var(--primary-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==================== */
/* Header & Hero */
/* ==================== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff9a56 100%);
    color: white;
}

.hero {
    text-align: center;
    padding: 3rem 2rem 4rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero .tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== */
/* Main Content */
/* ==================== */
main {
    flex: 1;
    padding: 0;
    max-width: 100%;
    width: 100%;
}

/* Section Common Styles */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==================== */
/* Upload Section */
/* ==================== */
.upload-section {
    background: var(--bg-color);
}

.upload-container {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.upload-box {
    flex: 1;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

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

.upload-box.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-box.has-file {
    border-style: solid;
    border-color: var(--added-border);
    background: var(--added-bg);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-icon {
    font-size: 3.5rem;
}

.upload-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.upload-divider {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.upload-divider span {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.file-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.file-info:empty {
    display: none;
}

/* Compare Actions */
.compare-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.compare-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.compare-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clear-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    border-color: var(--removed-border);
    color: var(--removed-border);
}

/* ==================== */
/* Diff Section */
/* ==================== */
.diff-section {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1400px;
}

.diff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--line-number-bg);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.diff-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.diff-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.diff-stats .added {
    color: var(--added-border);
}

.diff-stats .removed {
    color: var(--removed-border);
}

.diff-stats .modified {
    color: var(--modified-border);
}

.diff-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.toggle-label input {
    cursor: pointer;
    accent-color: var(--primary-color);
}

.diff-controls select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Diff Container */
.diff-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.diff-wrapper {
    min-width: 100%;
}

/* Header row with file names */
.diff-header-row {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--line-number-bg);
    border-bottom: 2px solid var(--border-color);
}

.diff-header-row .diff-pane-header {
    flex: 1;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.diff-header-row .diff-pane-header:first-child {
    border-right: 2px solid var(--border-color);
}

/* Rows container */
.diff-rows {
    display: flex;
    flex-direction: column;
}

/* Each row contains left and right panes */
.diff-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.diff-row:last-child {
    border-bottom: none;
}

/* Pane styles */
.diff-pane {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.diff-pane:first-child {
    border-right: 2px solid var(--border-color);
}

/* Empty pane for added/removed cells */
.pane-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--line-number-bg);
    min-height: 100px;
}

.empty-message {
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

/* Pane status colors */
.pane-removed {
    background: var(--removed-bg);
}

.pane-added {
    background: var(--added-bg);
}

.pane-modified {
    background: white;
}

@media (max-width: 768px) {
    .diff-row {
        flex-direction: column;
    }

    .diff-pane:first-child {
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .diff-header-row {
        flex-direction: column;
    }

    .diff-header-row .diff-pane-header:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Cell Header */
.cell-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--line-number-bg);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cell-type {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.cell-type.code {
    background: #e3f2fd;
    color: #1565c0;
}

.cell-type.markdown {
    background: #f3e5f5;
    color: #7b1fa2;
}

.cell-type.raw {
    background: #fff3e0;
    color: #ef6c00;
}

.cell-num {
    color: var(--text-secondary);
}

.cell-badge {
    margin-left: auto;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: white;
}

.cell-badge.added {
    background: var(--added-border);
}

.cell-badge.removed {
    background: var(--removed-border);
}

.cell-badge.modified {
    background: #f9c513;
    color: #333;
}

/* Cell Source */
.cell-source {
    margin: 0;
    padding: 1rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: transparent;
    flex: 1;
}

/* Diff Lines Container */
.diff-lines {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Single Diff Line */
.diff-line {
    display: flex;
    min-height: 1.5em;
}

.line-num {
    min-width: 3rem;
    padding: 0 0.5rem;
    text-align: right;
    color: var(--text-secondary);
    background: var(--line-number-bg);
    border-right: 1px solid var(--border-color);
    user-select: none;
    font-size: 0.8rem;
}

.line-content {
    flex: 1;
    padding: 0 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Line status colors - only highlight changed lines */
.line-removed {
    background: var(--removed-bg);
}

.line-removed .line-num {
    background: rgba(215, 58, 73, 0.2);
    color: var(--removed-border);
}

.line-added {
    background: var(--added-bg);
}

.line-added .line-num {
    background: rgba(52, 208, 88, 0.2);
    color: var(--added-border);
}

/* Empty line placeholder for alignment */
.line-empty {
    background: var(--line-number-bg);
    min-height: 1.5em;
}

.line-empty .line-num {
    background: var(--line-number-bg);
}

/* Pane header colors based on status */
.pane-removed .cell-header {
    background: rgba(215, 58, 73, 0.15);
}

.pane-added .cell-header {
    background: rgba(52, 208, 88, 0.15);
}

.pane-modified .cell-header {
    background: rgba(249, 197, 19, 0.15);
}

/* Legacy support - can be removed */
.cell-status.modified {
    background: var(--modified-border);
    color: #735c0f;
}

/* Empty/Placeholder */
.empty-cell {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--line-number-bg);
    font-style: italic;
}

/* ==================== */
/* Features Section */
/* ==================== */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== */
/* FAQ Section */
/* ==================== */
.faq-section {
    background: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

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

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== */
/* About Section */
/* ==================== */
.about-section {
    background: white;
}

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

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-text h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.about-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

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

.stat-item {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==================== */
/* Contact Section */
/* ==================== */
.contact-section {
    background: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

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

/* ==================== */
/* Footer */
/* ==================== */
footer {
    background: #1a1a2e;
    color: #a0a0b0;
    padding: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    font-size: 1.75rem;
}

.footer-brand > p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #a0a0b0;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-left: auto;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #a0a0b0;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-note {
    font-size: 0.85rem !important;
    opacity: 0.7;
}

.footer-trademark {
    font-size: 0.75rem !important;
    opacity: 0.6;
    margin-top: 1rem;
    line-height: 1.5;
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-stats {
        flex-direction: row;
        justify-content: center;
    }

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

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

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

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

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    section {
        padding: 3rem 1rem;
    }

    .upload-container {
        flex-direction: column;
    }

    .upload-divider {
        padding: 1rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
    }

    .diff-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .diff-controls {
        flex-wrap: wrap;
    }

    .diff-wrapper:not(.unified) {
        flex-direction: column;
    }

    .diff-pane {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ==================== */
/* Utility Classes */
/* ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Highlight for inline diffs */
.diff-added-inline {
    background: rgba(52, 208, 88, 0.4);
    padding: 0.1rem 0;
}

.diff-removed-inline {
    background: rgba(215, 58, 73, 0.4);
    padding: 0.1rem 0;
    text-decoration: line-through;
}

/* Unified View */
.unified-line {
    display: flex;
}

.unified-line .line-number {
    min-width: 2.5rem;
}

.unified-line .line-number.left {
    border-right: none;
}

.unified-line .line-number.right {
    border-right: 1px solid var(--border-color);
}

/* Notification animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ==================== */
/* Page Headers (Inner Pages) */
/* ==================== */
.header-minimal {
    background: white;
    box-shadow: var(--shadow);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff9a56 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 100%;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.95;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==================== */
/* How It Works Section */
/* ==================== */
.how-it-works-section {
    background: white;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 300;
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

/* ==================== */
/* CTA Section */
/* ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff9a56 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.secondary-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==================== */
/* FAQ Page Styles */
/* ==================== */
.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.faq-answer ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* ==================== */
/* About Page Styles */
/* ==================== */
.about-mission-section {
    background: white;
}

.about-mission-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.mission-text .lead {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mission-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.mission-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem;
    background: var(--primary-light);
    border-radius: 20px;
}

.visual-icon {
    font-size: 4rem;
}

.visual-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

.about-story-section {
    background: var(--bg-color);
}

.about-story-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-values-section {
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-stats-section {
    background: var(--bg-color);
    padding: 4rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.stat-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.stat-card .stat-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-usecases-section {
    background: white;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.platforms-grid-centered {
    justify-items: center;
    text-align: center;
}

.platform-card {
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 250px;
}

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

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

.platform-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

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

.usecase-card {
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

.usecase-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.usecase-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-opensource-section {
    background: var(--bg-color);
}

.opensource-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.opensource-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.opensource-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.opensource-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #24292e;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.opensource-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .about-mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .usecases-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* Contact Page Styles */
/* ==================== */
.contact-page-section {
    background: var(--bg-color);
}

.contact-page-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-column h2,
.contact-form-column h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-column > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.contact-method:hover {
    border-color: var(--primary-color);
}

.contact-method-icon {
    font-size: 1.75rem;
}

.contact-method-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-method-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-method-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-method-content a:hover {
    text-decoration: underline;
}

.response-time {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--primary-light);
    border-radius: 12px;
}

.response-time h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.response-time p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form-column .contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.required {
    color: var(--removed-border);
}

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

.form-note a {
    color: var(--primary-color);
}

.faq-teaser-section {
    background: white;
    text-align: center;
}

.faq-teaser-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-teaser-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contact-page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .platforms-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* Trademark Section (About Page) */
/* ==================== */
.about-trademark-section {
    background: var(--bg-color);
    padding: 3rem 2rem;
}

.trademark-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.trademark-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* ==================== */
/* Legal Pages (Privacy, Terms) */
/* ==================== */
.legal-content-section {
    background: var(--bg-color);
    padding: 4rem 2rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.legal-content li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }
}
