/* === Design System === */

:root {
    --accent: #e8590c;
    --accent-hover: #d94f08;
    --accent-subtle: rgba(232, 89, 12, 0.08);
}

h1, h2, h3, h4, h5, h6, nav strong {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

/* === Landing: Hero === */

.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #fdf6f0 0%, #ffffff 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--pico-muted-color);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* === Landing: Terminal === */

.terminal {
    margin: 2.5rem auto 0;
    max-width: 520px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.terminal-header {
    background: #2d333b;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: #768390;
}

.terminal-body {
    background: #0d1117;
    padding: 1.25rem 1.5rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: left;
}

.terminal-line {
    opacity: 0;
    animation: line-appear 0.4s ease forwards;
}
.terminal-line:first-child { animation-delay: 0.3s; }
.line-delay-1 { animation-delay: 1.0s; color: #8b949e; }
.line-delay-2 { animation-delay: 1.6s; color: #8b949e; }
.line-delay-3 { animation-delay: 2.2s; }

.terminal-body .prompt { color: #8b949e; }
.terminal-body .cmd { color: #e6edf3; }
.terminal-body .success { color: #3fb950; }

@keyframes line-appear {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Landing: CTA Buttons === */

.cta-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(232, 89, 12, 0.25);
}
.cta-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 89, 12, 0.3);
}

/* === Landing: Features === */

.features {
    padding: 3rem 0;
}
.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    padding: 1.75rem;
    border-radius: 10px;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    transition: border-color 0.2s ease;
}
.feature-card:hover {
    border-color: var(--accent);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}
.feature-card p {
    margin-bottom: 0;
    color: var(--pico-muted-color);
    font-size: 0.95rem;
}

/* === Landing: How It Works === */

.how-it-works {
    padding: 3rem 0;
}
.how-it-works h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.steps h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.steps p {
    color: var(--pico-muted-color);
    font-size: 0.9rem;
}

/* === Landing: Bottom CTA === */

.bottom-cta {
    text-align: center;
    padding: 3rem 0;
}
.bottom-cta h2 {
    margin-bottom: 1rem;
}

/* === Login === */

.login-container {
    max-width: 420px;
    margin: 2rem auto;
}

/* === Status indicators === */

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.status-running {
    background-color: #2ecc40;
    box-shadow: 0 0 4px rgba(46, 204, 64, 0.5);
}

.status-sleeping {
    background-color: #ffdc00;
    box-shadow: 0 0 4px rgba(255, 220, 0, 0.4);
}

.status-stopped {
    background-color: #aaa;
}

/* === Deployment status badges === */

.deploy-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15em 0.5em;
    border-radius: 4px;
}

.deploy-status-success {
    background: rgba(46, 204, 64, 0.15);
    color: #2ecc40;
}

.deploy-status-failed {
    background: rgba(255, 65, 54, 0.15);
    color: #ff4136;
}

.deploy-status-building {
    background: rgba(0, 116, 217, 0.15);
    color: #0074d9;
}

.deploy-status-pending {
    background: rgba(170, 170, 170, 0.15);
    color: #888;
}

/* === Git URL block === */

.git-url-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pico-code-background-color, #1a1a2e);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.git-url-block code {
    flex: 1;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--pico-code-color, #e0e0e0);
}

.git-url-block .copy-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    width: auto;
}

/* === Build log viewer === */

.build-log {
    background: #0d1117;
    color: #c9d1d9;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 6px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* === Delete button === */

.delete-btn {
    --pico-background-color: #ff4136;
    --pico-border-color: #ff4136;
    --pico-color: #fff;
}

.delete-btn:hover {
    --pico-background-color: #e0392d;
    --pico-border-color: #e0392d;
}

/* === Documentation layout === */

.docs-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
}

.docs-sidebar nav {
    position: sticky;
    top: 1rem;
}

.docs-sidebar strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
}

.docs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-sidebar li {
    margin-bottom: 0.25rem;
}

.docs-sidebar a {
    display: block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.docs-sidebar a[aria-current="page"] {
    background: var(--pico-primary-focus);
    font-weight: 600;
}

/* === Docs content styling === */

.docs-content h1 {
    margin-top: 0;
}

.docs-content pre {
    background: #0d1117;
    color: #c9d1d9;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

.docs-content code {
    font-size: 0.85em;
}

.docs-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

.docs-content table {
    width: 100%;
}

.docs-content table th,
.docs-content table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
}
