/* ── Storm Forge Homepage ── */
/* Kill Forgejo's default footer space on homepage */html body div.full.height[style],
html body .full.height {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.sf-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 30%, #111 70%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}
.sf-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(30,144,255,0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0,212,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.sf-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.sf-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 2px solid rgba(0,212,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,5,5,0.8);
    box-shadow: 0 0 40px rgba(0,212,255,0.15);
}

.sf-logo img {
    width: 64px;
    height: 64px;
}

.sf-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.sf-title-storm {
    background: linear-gradient(135deg, #1e90ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sf-title-forge {
    color: #fcd34d;
    -webkit-text-fill-color: #fcd34d;
}

.sf-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #9ca3af;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.sf-subtitle strong {
    color: #e5e7eb;
}

.sf-tagline {
    font-size: 0.875rem;
    color: #6b7280;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.sf-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sf-btn-primary {
    background: linear-gradient(135deg, #1e90ff, #00d4ff);
    color: #ffffff !important;
    border: none;
}

.sf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30,144,255,0.3);
    color: #ffffff !important;
}

.sf-btn-secondary {
    background: transparent;
    color: #00d4ff !important;
    border: 1px solid rgba(0,212,255,0.3);
}

.sf-btn-secondary:hover {
    background: rgba(0,212,255,0.1);
    border-color: rgba(0,212,255,0.5);
    color: #ffffff !important;
}

/* ── Why Section ── */
.sf-why {
    padding: 3rem 2rem;
    background: #0a0a0a;
    border-top: 1px solid rgba(30,144,255,0.1);
    border-bottom: 1px solid rgba(30,144,255,0.1);
}

.sf-why-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.sf-section-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00d4ff;
    margin-bottom: 0.75rem;
}

.sf-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2.5rem;
}

.sf-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sf-card {
    background: rgba(26,26,26,0.6);
    border: 1px solid #2d3748;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sf-card:hover {
    border-color: rgba(30,144,255,0.4);
    background: rgba(30,144,255,0.03);
    transform: translateY(-2px);
}

.sf-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.sf-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.sf-card-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* ── Projects Section ── */
.sf-projects {
    padding: 3rem 2rem;
    background: #050505;
}

.sf-projects-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.sf-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.sf-project {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(26,26,26,0.4);
    border: 1px solid #2d3748;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.sf-project:hover {
    border-color: rgba(30,144,255,0.4);
    background: rgba(30,144,255,0.03);
}

.sf-project-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30,144,255,0.08);
    border-radius: 0.5rem;
    border: 1px solid rgba(30,144,255,0.15);
}

.sf-project-info {
    flex: 1;
    min-width: 0;
}

.sf-project-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.25rem;
}

.sf-project-desc {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.4;
}

.sf-project-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

.sf-tag-oss {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.3);
}

.sf-tag-product {
    background: rgba(30,144,255,0.15);
    color: #00d4ff;
    border: 1px solid rgba(30,144,255,0.3);
}

.sf-tag-infra {
    background: rgba(252,211,77,0.15);
    color: #fcd34d;
    border: 1px solid rgba(252,211,77,0.3);
}

/* ── Sovereignty Banner ── */
.sf-sovereignty {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0a0a0a, #111);
    border-top: 1px solid rgba(30,144,255,0.1);
    text-align: center;
}

.sf-sovereignty-inner {
    max-width: 700px;
    margin: 0 auto;
}

.sf-flag {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.sf-sovereignty-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.sf-sovereignty-text {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sf-sovereignty-text strong {
    color: #e5e7eb;
}

.sf-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(30,144,255,0.3);
    background: rgba(30,144,255,0.05);
    color: #00d4ff;
}

.sf-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16,185,129,0.5);
}

/* ── Hide Forgejo default footer on homepage ── */
footer:not(.storm-footer),
.page-footer {
    display: none !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sf-cards {
        grid-template-columns: 1fr;
    }
    .sf-project-grid {
        grid-template-columns: 1fr;
    }
    .sf-hero {
        padding: 3rem 1.5rem 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sf-project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
