/* ===========================
   RESET & GLOBAL STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.6;
}

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

/* ===========================
   TYPOGRAPHY & UTILITIES
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-secondary:hover {
    background: #f0f4ff;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #999;
    margin-left: 8px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-subtitle strong {
    color: #667eea;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-animation {
    position: relative;
    height: 300px;
}

.protocol-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
}

.block-item {
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    animation: float 3s ease-in-out infinite;
}

.block-item:nth-child(1) { animation-delay: 0s; }
.block-item:nth-child(3) { animation-delay: 1s; }
.block-item:nth-child(5) { animation-delay: 2s; }

.block-header {
    font-weight: 700;
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.block-line {
    font-size: 0.85rem;
    color: #666;
    font-family: 'Courier New', monospace;
}

.arrow {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    position: relative;
}

.arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #667eea;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===========================
   PROBLEMS SECTION
   =========================== */
.problems {
    padding: 60px 0;
    background: #f9fafb;
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #667eea;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
}

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

.problem-card h3 {
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.problem-card p {
    color: #666;
    line-height: 1.7;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features {
    padding: 80px 0;
}

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

.feature-card {
    background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e6eef7;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* ===========================
   BENCHMARKS SECTION
   =========================== */
.benchmarks {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
}

.benchmark-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benchmark-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.benchmark-table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

.benchmark-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.benchmark-table tbody tr:hover {
    background: #f9fafb;
}

.metric-value {
    font-weight: 600;
    color: #666;
}

.metric-h2c {
    color: #667eea;
    font-weight: 700;
}

.improvement {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.benchmark-note {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

/* ===========================
   USE CASES SECTION
   =========================== */
.use-cases {
    padding: 80px 0;
    background: #fafbfc;
}

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

.usecase-item {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.usecase-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e6eef7;
    margin-bottom: 0.5rem;
}

.usecase-item h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.usecase-item p {
    color: #666;
    line-height: 1.7;
}

.usecase-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* ===========================
   SYNTAX SECTION
   =========================== */
.syntax {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
}

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

.syntax-description h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.syntax-description p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.syntax-info {
    background: #f0f4ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 0.95rem;
    color: #555;
}

.syntax-code {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 2rem;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.syntax-code code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.syntax-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.metric-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-item.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.metric-label {
    font-weight: 600;
    color: #666;
}

.metric-item.highlight .metric-label {
    color: white;
}

.metric-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.metric-item.highlight .metric-number {
    color: white;
}

/* ===========================
   EXAMPLES SECTION
   =========================== */
.examples {
    padding: 80px 0;
    background: #fafbfc;
}

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

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.example-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.example-card h3 {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.example-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.example-link {
    color: #667eea;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.example-link:hover {
    gap: 1rem;
    color: #764ba2;
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
}

/* ===========================
   ROADMAP SECTION
   =========================== */
.roadmap {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea, #764ba2, #667eea);
}

.roadmap-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.roadmap-marker {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #667eea;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roadmap-released .roadmap-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.roadmap-info {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
}

.roadmap-info h4 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.roadmap-info p {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-released {
    background: #e6f7e6;
    color: #0d6e0d;
}

.badge-planned {
    background: #fff3cd;
    color: #856404;
}

.badge-research {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===========================
   INTEGRATION SECTION
   =========================== */
.integration {
    padding: 80px 0;
    background: #fafbfc;
}

.integration-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.integration-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.integration-card h4 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.integration-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.integration-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    border-color: white;
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-license {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 20px;
}

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

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

.footer-section p {
    color: #999;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

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

.footer-section a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

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

/* ===========================
   CODE EXAMPLES SECTION
   =========================== */

.code-examples {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.code-example {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.code-example:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.code-type {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.code-saving {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.code-content {
    padding: 16px;
    background: #f5f5f5;
    overflow-x: auto;
    max-height: 250px;
    overflow-y: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #1a1a1a;
}

.code-content code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-family: 'Monaco', 'Courier New', monospace;
}

.code-desc {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

/* Comparison Box */
.comparison-box {
    background: white;
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
}

.comparison-box h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
}

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

.comparison-item {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ddd;
}

.comparison-item:nth-child(2) {
    border-left-color: #667eea;
}

.comparison-item h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.comparison-item pre {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
}

.comparison-item code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.comparison-result {
    text-align: center;
    font-size: 1.2rem;
    color: #667eea;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
}

/* ===========================
   MODAL STYLES
   =========================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    color: #666;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #667eea;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #1a1a1a;
    flex: 1;
}

.modal-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.modal-body {
    padding: 30px;
    line-height: 1.8;
}

.modal-body h3 {
    font-size: 1.3rem;
    color: #667eea;
    margin: 1.5rem 0 0.8rem 0;
    padding-top: 1rem;
}

.modal-body h3:first-child {
    padding-top: 0;
    margin-top: 0;
}

.modal-body p {
    color: #555;
    margin-bottom: 1rem;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.modal-body li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: #555;
    position: relative;
}

.modal-body li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.modal-body pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #667eea;
    margin: 1rem 0;
}

.modal-body code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #1a1a1a;
}

.test-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.test-results-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.test-results-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.test-results-table tr:last-child td {
    border-bottom: none;
}

.test-results-table tr:hover {
    background: #f8f9ff;
}

.example-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.example-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

@keyframes fadeIn {
    from {
       opacity: 0;
    }
    to {
       opacity: 1;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

    .hero-title {
        font-size: 2.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-animation {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .problems-grid,
    .examples-grid,
    .code-examples-grid,
    .integration-grid {
        grid-template-columns: 1fr;
    }

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

    .syntax-metrics {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

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

    .comparison-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}
