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

:root {
    --primary-red: #dc2626;
    --dark-red: #991b1b;
    --light-red: #fca5a5;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Header */
header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-red);
    font-size: 2rem;
    font-weight: 700;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: -0.25rem;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-red);
}

nav .cta {
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

nav .cta:hover {
    background: var(--dark-red);
    color: white;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--light-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.features h2, .architecture h2, .api h2, .use-cases h2, .deployment h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

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

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

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

.feature-card h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

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

/* Architecture Section */
.architecture {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.architecture-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.service {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    min-width: 180px;
    text-align: center;
}

.service h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.service p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.tech {
    display: inline-block;
    background: var(--bg-darker);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

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

.tech-stack {
    margin-top: 4rem;
    text-align: center;
}

.tech-stack h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-badge {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* API Section */
.api {
    padding: 6rem 0;
    background: var(--bg-dark);
}

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

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

.api-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.api-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.api-card code {
    display: block;
    background: var(--bg-darker);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    color: var(--light-red);
    font-size: 0.875rem;
}

.code-example {
    margin-top: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.code-example h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.code-example pre {
    background: var(--bg-darker);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.use-case h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.use-case p {
    color: var(--text-secondary);
}

/* Deployment Section */
.deployment {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.deployment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

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

.step-number {
    position: absolute;
    top: -1rem;
    left: 2rem;
    background: var(--primary-red);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.step code {
    display: block;
    background: var(--bg-darker);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    color: var(--light-red);
    font-size: 0.875rem;
    word-break: break-all;
}

.requirements {
    margin-top: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.requirements h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.requirements ul {
    list-style: none;
    color: var(--text-secondary);
}

.requirements li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

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

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--primary-red);
}

.copyright {
    margin-top: 1rem;
}

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

    .subtitle {
        font-size: 1.125rem;
    }

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

    nav {
        display: none;
    }

    .architecture-diagram {
        flex-direction: column;
    }

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