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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f5f7fa;
}

/* ===== Navigation ===== */
header {
    background: #1a1a2e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #cdd0f0;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: #4ade80;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
}

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

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background: #4ade80;
    color: #0f172a;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    background: #22c55e;
}

/* ===== Sections ===== */
.section {
    padding: 4rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.section.alt {
    background: #fff;
    max-width: 100%;
}

.section.alt > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #16213e;
}

.section p {
    margin-bottom: 1.5rem;
    color: #475569;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-bottom: 0.5rem;
}

/* ===== Steps ===== */
.steps {
    list-style: none;
    counter-reset: step;
}

.steps li {
    background: #f8fafc;
    border-left: 4px solid #4ade80;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #16213e;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 0.8rem;
}

/* ===== Inline code ===== */
code {
    background: #1a1a2e;
    color: #4ade80;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ===== Footer ===== */
footer {
    background: #1a1a2e;
    color: #cdd0f0;
    text-align: center;
    padding: 1.5rem;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
}

/* ===== Environment Variables Demo ===== */
.env-values {
    display: grid;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.env-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    gap: 1rem;
}

.env-key {
    font-family: monospace;
    font-weight: bold;
    color: #0f3460;
    white-space: nowrap;
}

.env-key small {
    font-weight: normal;
    opacity: 0.6;
    font-size: 0.8em;
}

.env-val {
    color: #334155;
    text-align: right;
    word-break: break-word;
}

.env-status {
    font-weight: bold;
    margin: 1rem 0;
}

.env-status.ok {
    color: #16a34a;
}

.env-status.note {
    color: #2563eb;
}

.env-help {
    margin-top: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

.env-help summary {
    cursor: pointer;
    font-weight: bold;
    color: #16213e;
}

.env-help ol {
    margin: 1rem 0 0 1.2rem;
    color: #475569;
}

.env-help li {
    margin-bottom: 0.5rem;
}
