/* assets/css/public-page.css - base styles (reset, body, hero, main, cards) for simple public pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f6fc;
    color: #082433;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dark-mode {
    background: #0a1628;
    color: #e8edf2;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3f59 100%);
}

.hero {
    background: linear-gradient(135deg, #0a2e44 0%, #1a5d86 100%);
    padding: 4rem 2rem 5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero h1 i {
    color: #4a9fd8;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .hero-badges span {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero .hero-badges span i {
    margin-right: 0.4rem;
    color: #4a9fd8;
}

.main {
    max-width: 1400px;
    margin: -2rem auto 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero {
        padding: 3rem 1rem 4rem;
    }
    .hero .hero-badges span {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    .main {
        padding: 0 1rem 3rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    .hero .hero-badges span {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }
}

/* Cards used by the SDKs, Status, Careers and Blog pages */
.page-section { margin-bottom: 2.5rem; }
.page-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.page-section > p { color: #4a6a85; margin-bottom: 1.2rem; }
/* auto-fit (not auto-fill) so a short row of cards stretches across wide screens instead of leaving empty columns */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.card {
    background: #ffffff; border: 1px solid #e4eef8; border-radius: 18px; padding: 1.5rem;
    transition: 0.2s; display: flex; flex-direction: column; gap: 0.6rem;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26, 122, 181, 0.08); }
.card .card-icon {
    width: 48px; height: 48px; border-radius: 14px; background: #e6f2fc; color: #1a7ab5;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.card h3 { font-size: 1.1rem; font-weight: 700; }
.card p { color: #4a6a85; font-size: 0.92rem; flex: 1; }
.card .meta { font-size: 0.8rem; color: #6a8aa0; }
.btn-card {
    display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
    padding: 0.55rem 1.2rem; border-radius: 60px; background: #1a7ab5; color: #fff;
    text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: 0.15s;
}
.btn-card:hover { background: #0f5f92; }
.btn-card.outline { background: transparent; color: #1a7ab5; border: 2px solid #1a7ab5; }
.btn-card.outline:hover { background: #1a7ab5; color: #fff; }
.notice {
    background: #ffffff; border: 1px solid #e4eef8; border-radius: 18px; padding: 2rem;
    text-align: center; color: #4a6a85;
}
.notice i.big { font-size: 2.6rem; color: #1a7ab5; margin-bottom: 0.8rem; }
.notice h2 { color: #082433; margin-bottom: 0.5rem; }
.notice a { color: #1a7ab5; font-weight: 600; text-decoration: none; }
.notice a:hover { text-decoration: underline; }
body.dark-mode .notice a { color: #4a9fd8; }
body.dark-mode .card, body.dark-mode .notice { background: #0f1f30; border-color: #1a3348; }
body.dark-mode .card p, body.dark-mode .page-section > p, body.dark-mode .notice { color: #b0c8db; }
body.dark-mode .notice h2, body.dark-mode .card h3, body.dark-mode .page-section h2 { color: #e8edf2; }
body.dark-mode .card .card-icon { background: #1a2a3f; color: #4a9fd8; }
