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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a2e;
    background: #ffffff;
}

a {
    color: #0099cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0077aa;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

code, pre {
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

/* === Container === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navigation === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0a1628;
    text-decoration: none;
}

.nav-brand:hover {
    text-decoration: none;
    color: #0a1628;
}

.nav-logo {
    height: 30px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
}

.nav-menu a:hover {
    color: #0099cc;
    text-decoration: none;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: 0.3s;
}

/* === Hero === */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0a1628;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 153, 204, 0.08);
    color: #0077aa;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid rgba(0, 153, 204, 0.15);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: #0a1628;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
}

.btn-primary:hover {
    background: #1a2a42;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(10, 22, 40, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: #0a1628;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0a1628;
}

.btn-large {
    padding: 14px 36px;
    font-size: 1rem;
}

/* === Sections === */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #f8fafc;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 1.125rem;
    color: #4a5568;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* === Grid === */
.grid {
    display: grid;
    gap: 24px;
}

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

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

/* === Cards === */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.65;
}

.card-highlight {
    border: 1.5px solid #e2e8f0;
}

.card-note {
    font-size: 0.8125rem;
    color: #718096;
    margin-top: 12px;
    font-style: italic;
}

/* === Feature List === */
.feature-list {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 32px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease;
}

.feature-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.feature-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 153, 204, 0.08);
    color: #0077aa;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 6px;
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0a1628;
}

.feature-item p {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.65;
}

/* === Steps === */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #0a1628;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.6;
}

.step code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #0a1628;
}

/* === Architecture Diagram === */
.architecture-diagram {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.arch-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.arch-label {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0a1628;
}

.arch-arrow {
    font-size: 1.25rem;
    color: #a0aec0;
    margin: 4px 0;
    line-height: 1;
}

/* === Code Block === */
.code-block {
    background: #0d1117;
    color: #c9d1d9;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 16px 0;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* === FAQ === */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid #e2e8f0;
}

.faq-item dt {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 8px;
}

.faq-item dd {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.65;
}

/* === CTA Section === */
.section-cta {
    background: #0a1628;
    color: #ffffff;
    text-align: center;
}

.section-cta .section-title {
    color: #ffffff;
}

.section-cta p {
    color: #a0aec0;
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 32px;
}

.section-cta .btn-primary {
    background: #ffffff;
    color: #0a1628;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.section-cta .btn-primary:hover {
    background: #f1f5f9;
}

.section-cta .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.section-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* === Footer === */
.footer {
    background: #0a1628;
    color: #94a3b8;
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9375rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .grid-2,
    .grid-3,
    .steps {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 60px 0 50px;
    }

    .section {
        padding: 56px 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .btn, .card, .feature-item {
        transition: none;
    }
}
