:root {
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent: #EBFF01;
    --accent-dark: #d4e000;
    --border: #e0e0e0;
    --card-bg: #ffffff;
    --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding-top: 50px;
}

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

/* Typography */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

/* Section */
section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}

/* Hero / Header */
.hero {
    padding: 50px 0 30px;
    border-bottom: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    width: fit-content;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.header {
    padding: 50px 0 30px;
    border-bottom: none;
}
.header h1 {
    margin-bottom: 12px;
}
.header .meta {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.header .meta span {
    background: #f5f5f5;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}
.header .subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.tech-tag {
    background: #f5f5f5;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tech-tag i {
    color: #000;
}

/* Section Title with circle decoration */
.section-title {
    position: relative;
    padding-left: 16px;
}
.section-title::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -4px;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
}

/* Divider */
.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px 0;
}

/* Summary Grid */
.summary-grid {
    margin-bottom: 30px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.summary-grid .label {
    color: #000;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 700;
}
.summary-grid .value {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    background: #f5f5f5;
    color: #000;
}
.icon-cyan { background: #e0f2fe; color: #0284c7; }
.icon-green { background: #d1fae5; color: #059669; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-orange { background: #fed7aa; color: #ea580c; }

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.data-card {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.data-card h4 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}
.data-card p {
    margin: 0;
}

/* Architecture Flow */
.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.arch-node {
    background: #fff;
    border: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 120px;
}
.arch-node.highlight {
    border-color: #000;
    box-shadow: 0 0 0 2px var(--accent);
}
.arch-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Architecture Pre */
.architecture {
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
    color: var(--text-secondary);
    white-space: pre;
    line-height: 1.6;
}

/* Flow Steps */
.flow-steps {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}
.flow-step {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}
.flow-step .num {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    min-width: 30px;
}
.flow-step .desc {
    color: var(--text-secondary);
    font-size: 14px;
}
.flow-step .desc strong {
    color: var(--text);
}

/* Demo Link */
.demo-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}
.demo-link:hover {
    background: var(--accent-dark);
    opacity: 1;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.stat-card {
    text-align: center;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.stat-card.success { border-color: #10b981; }
.stat-card.warning { border-color: #f59e0b; }
.stat-card.danger { border-color: #ef4444; }

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.metric {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.metric .value {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}
.metric .label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Code Blocks */
.code-block {
    background: #f8f8f8;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 24px 0;
    overflow: hidden;
}
.code-header {
    background: #eee;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}
.code-content {
    padding: 18px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fafafa;
}
.code-content .comment { color: #6a9955; }
.code-content .keyword { color: #0000ff; }
.code-content .string { color: #a31515; }
.code-content .function { color: #795e26; }
.code-content .variable { color: #001080; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
thead {
    background: #f5f5f5;
}
th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    color: var(--text);
}
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text-secondary);
}
tbody tr:hover {
    background: #fafafa;
}

/* Callouts */
.callout {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid;
    background: #f9fafb;
    border-color: var(--accent);
}
.callout.info {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #1e3a8a;
}
.callout.warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
}
.callout.success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}
.callout.purple {
    background: #ede9fe;
    border-color: #7c3aed;
    color: #5b21b6;
}
.callout strong {
    display: block;
    margin-bottom: 4px;
}

/* Answer blocks */
.answer {
    background: #f0f9ff;
    border-left: 4px solid #000;
    padding: 14px 18px;
    margin: 10px 0 15px;
    border-radius: 0 8px 8px 0;
    color: var(--text);
}
.answer.example {
    background: #fef3c7;
    border-left-color: #f59e0b;
    font-style: italic;
}
.answer ul, .answer ol {
    padding-left: 22px;
    margin-bottom: 0;
}
.answer li {
    margin-bottom: 4px;
}
.answer code {
    background: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.88em;
    border: 1px solid var(--border);
}

/* Pre / Code inline */
pre {
    background: #f5f5f5;
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid var(--border);
}
code {
    font-family: var(--font-mono);
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: #000;
}
pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Checklist */
.checklist {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
    border: 1px solid var(--border);
}
.checklist-item {
    padding: 6px 0;
    display: flex;
    align-items: start;
    gap: 8px;
}
.checklist-item .check {
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}
.check { color: #10b981; font-weight: 700; }
.cross { color: #ef4444; font-weight: 700; }

/* CTA */
.cta {
    text-align: center;
    padding: 32px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 32px 0;
}
.cta .button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 16px;
}
.cta .button:hover {
    background: var(--accent-dark);
    opacity: 1;
}

/* Mermaid */
.mermaid {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
}

/* Mockup Image */
.mockup-wrapper {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f5f5f5;
}
.mockup-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    padding-left: 22px;
    margin-bottom: 12px;
}
li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Highlight */
.highlight {
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 15px 0;
}
.tech-item {
    background: #f9fafb;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}
.tech-item .tech-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}
.tech-item .tech-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}
.tech-item .tech-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    .arch-flow {
        flex-direction: column;
    }
    .arch-arrow {
        transform: rotate(90deg);
    }
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
