*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #111827;
    background: #f3f4f6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo a {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}

.logo span {
    color: #38bdf8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav a {
    font-size: 0.95rem;
    opacity: 0.9;
}

.main-nav a:hover {
    opacity: 1;
    color: #38bdf8;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
}

.btn-primary {
    background: #ef4444;
    border-color: #ef4444;
    color: #f9fafb;
}

.btn-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-outline {
    background: transparent;
    border-color: #64748b;
    color: #e5e7eb;
}

.btn-outline:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.btn-block {
    width: 100%;
}

/* Hero */
.hero {
    background: radial-gradient(circle at top left, #0f172a 0, #020617 55%, #020617 100%);
    color: #e5e7eb;
    padding: 4rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 3.1vw, 2.8rem);
    margin-bottom: 1rem;
}

.hero p {
    color: #9ca3af;
    max-width: 34rem;
}

.hero-actions {
    margin: 1.5rem 0 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.hero-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.75);
}

.hero-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.hero-card ul {
    margin: 0.5rem 0 1rem;
    list-style: none;
}

.hero-card li {
    font-size: 0.9rem;
    color: #cbd5f5;
    margin-bottom: 0.35rem;
}

/* Sections */
.section {
    padding: 3rem 0;
    background: #f3f4f6;
}

.section-alt {
    background: #ffffff;
}

.section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto 2rem;
}

/* Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.35rem 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.55rem;
}

.card-list {
    list-style: disc;
    margin-left: 1.25rem;
    font-size: 0.86rem;
    color: #6b7280;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: flex-start;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.metric {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 0.9rem;
    padding: 1rem;
}

.metric-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.metric-label {
    font-size: 0.8rem;
    color: #cbd5f5;
    margin-top: 0.2rem;
}

.note-box {
    background: #fef9c3;
    border-radius: 0.9rem;
    border: 1px solid #facc15;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.stack-block {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    font-size: 0.9rem;
}

/* Contact */
.contact-list {
    list-style: none;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.contact-list li {
    margin-bottom: 0.4rem;
}

.contact-form {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem 1.4rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 1px;
    border-color: #0ea5e9;
}

.alert {
    padding: 0.7rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #ef4444;
}

/* CTA */
.cta {
    background: linear-gradient(90deg, #0f172a, #1d4ed8);
    color: #e5e7eb;
    padding: 3rem 0;
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.cta-inner p {
    color: #bfdbfe;
    margin-bottom: 1.1rem;
}

/* Footer */
.site-footer {
    background: #020617;
    color: #9ca3af;
    padding-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-grid h3,
.footer-grid h4 {
    color: #e5e7eb;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.footer-grid ul {
    list-style: none;
    font-size: 0.9rem;
}

.footer-grid li {
    margin-bottom: 0.25rem;
}

.footer-grid a:hover {
    color: #38bdf8;
}

.footer-bottom {
    border-top: 1px solid #111827;
    padding: 0.9rem 1.25rem;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid,
    .card-grid,
    .two-column,
    .stack-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: #020617;
        flex-direction: column;
        padding: 0.75rem 1.25rem 1rem;
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-grid,
    .card-grid,
    .two-column,
    .stack-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        margin-top: 1rem;
    }
}
