* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
}

#main {
    width: 100%;
    background-color: #000;
    min-height: 100vh;
}

/* Navigation */
#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 30px 40px;
    background-color: #000;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

#nav a {
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#nav a:hover {
    opacity: 1;
}

#nav h4 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hero Section */
#hero {
    padding: 100px 40px;
    text-align: left;
    border-bottom: 1px solid #333;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.6;
}

.year {
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 20px;
}

.language {
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 20px;
}

#hero .description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 600px;
}

/* Overview Section */
#overview,
#why,
#architecture,
#flow,
#sync,
#data-handling,
#cache,
#performance {
    padding: 80px 40px;
    border-bottom: 1px solid #333;
}

section h2 {
    font-size: 18px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    font-size: 16px;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    opacity: 0.8;
}

.features li:before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.5;
}

.features li strong {
    color: #fff;
    opacity: 1;
}

/* Why Section */
.why-content {
    margin-top: 20px;
}

.why-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 30px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.tech-item {
    padding: 10px 20px;
    border: 1px solid #444;
    border-radius: 20px;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: #fff;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Architecture Section */
.arch-description {
    margin-top: 20px;
}

.arch-description img {
  position: sticky;
  top: 0;
  width: 100%;
  height: 80vh;
  object-fit: contain;
}

.arch-description p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 25px;
}

.pattern-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pattern-list li {
    font-size: 16px;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    opacity: 0.8;
}

.pattern-list li:before {
    content: "◦";
    position: absolute;
    left: 0;
    font-size: 20px;
    opacity: 0.5;
}

/* Flow Section */
.flow-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

#flow img {
  width: 50%;
  max-width: 600px;
  height: auto !important;
  display: block;
  margin: 0 auto;
}
/* .flow-steps li {
    font-size: 16px;
    padding: 20px 0;
    padding-left: 50px;
    position: relative;
    line-height: 1.6;
    opacity: 0.8;
    counter-increment: step-counter;
}

.flow-steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #888, #444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.sub-flow {
    list-style: none;
    padding: 15px 0;
    padding-left: 20px;
    margin-top: 10px;
}

.sub-flow li {
    font-size: 15px;
    padding: 8px 0;
    padding-left: 20px;
    opacity: 0.7;
}

.sub-flow li:before {
    content: "→";
    position: absolute;
    left: -15px;
    opacity: 0.5;
} */

/* Synchronization Section */
.sync-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.sync-card {
    padding: 30px;
    border: 1px solid #333;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.05), rgba(50, 50, 50, 0.05));
    transition: all 0.3s ease;
}

.sync-card:hover {
    border-color: #555;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.1), rgba(50, 50, 50, 0.1));
}

.sync-card h3 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.9;
}

.sync-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.7;
}

.sync-benefit {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    padding: 20px;
    border-left: 3px solid #666;
    padding-left: 20px;
}

.sync-benefit strong {
    color: #fff;
    opacity: 1;
}

/* Data Handling Section */
#data-handling p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 30px;
}

.benefits {
    background: rgba(100, 100, 100, 0.05);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.benefits h4 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

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

.benefits li {
    font-size: 15px;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    opacity: 0.8;
}

.benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    opacity: 0.6;
}

.note {
    font-size: 14px;
    opacity: 0.6;
    font-style: italic;
    margin-top: 20px;
}

/* Cache Design Section */
.cache-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cache-features li {
    font-size: 16px;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    opacity: 0.8;
}

.cache-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.5;
}

.cache-features li strong {
    color: #fff;
    opacity: 1;
}

.cache-benefit {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #333;
    border-left: 3px solid #888;
    border-radius: 4px;
}

/* Performance Section */
.perf-subsection {
    margin-bottom: 50px;
}

.perf-subsection h3 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}

.perf-subsection p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 25px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric {
    padding: 25px;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
    background: rgba(100, 100, 100, 0.05);
    transition: all 0.3s ease;
}

.metric:hover {
    border-color: #555;
    background: rgba(100, 100, 100, 0.1);
}

.metric-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.stability-note {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 15px;
}

/* Footer */
#footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid #333;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

#footer a {
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#footer a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #nav {
        padding: 20px 20px;
    }

    #overview,
    #why,
    #architecture,
    #flow,
    #sync,
    #data-handling,
    #cache,
    #performance {
        padding: 50px 20px;
    }

    #hero {
        padding: 60px 20px;
    }

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

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

    #footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.8rem;
    }

    #nav {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .subtitle {
        flex-direction: column;
        gap: 10px;
    }

    #hero .description {
        font-size: 16px;
    }
}
