@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
    --owf-ink: #0f172a;
    --owf-slate: #475569;
    --owf-muted: #475569;
    --owf-accent: #0f766e;
    --owf-accent-strong: #0a5c53;
    --owf-warm: #f59f00;
    --owf-bg: #f8fafc;
    --owf-card: #ffffff;
    --owf-border: #e2e8f0;
    --owf-hero: #0b1422;
    --owf-today: #6c757d;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--owf-ink);
    background:
        radial-gradient(900px circle at 10% 10%, rgba(15, 118, 110, 0.15), transparent 60%),
        radial-gradient(700px circle at 90% 5%, rgba(245, 159, 0, 0.18), transparent 65%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.text-muted {
    color: var(--owf-muted) !important;
}

.small, .form-text {
    color: #475569;
}

.navbar-owf {
    background: linear-gradient(120deg, #0b1422, #12263a 60%, #1b3a2f);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.navbar-owf .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-owf .nav-link:hover {
    color: #ffffff;
}

.btn-owf {
    background: var(--owf-accent);
    border-color: var(--owf-accent);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
}

.btn-owf:hover {
    background: var(--owf-accent-strong);
    border-color: var(--owf-accent-strong);
    color: #ffffff;
}

.btn-owf-outline {
    border: 1px solid var(--owf-accent);
    color: var(--owf-accent);
    background: transparent;
}

.btn-owf-outline:hover {
    background: var(--owf-accent);
    color: #ffffff;
}

.owf-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--owf-border);
    background: #ffffff;
    color: var(--owf-slate);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0;
}

.owf-info:hover,
.owf-info:focus {
    background: var(--owf-accent);
    border-color: var(--owf-accent);
    color: #ffffff;
    text-decoration: none;
}

.owf-info:focus-visible {
    outline: 2px solid var(--owf-accent);
    outline-offset: 2px;
}

.navbar-owf .btn-owf-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.navbar-owf .btn-owf-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.owf-hero {
    padding: 3rem 0 2rem;
    animation: fadeUp 0.7s ease;
}

.hero-card {
    background: var(--owf-hero);
    color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 50px rgba(15, 23, 42, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at 80% 0%, rgba(245, 159, 0, 0.2), transparent 60%);
    pointer-events: none;
}

.hero-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-card .small {
    color: rgba(255, 255, 255, 0.75);
}

.badge-hero {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-owf {
    color: var(--owf-accent);
}

.hero-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--owf-muted);
    font-size: 0.95rem;
}

.hero-meta span {
    padding-right: 1rem;
    border-right: 1px solid rgba(100, 116, 139, 0.3);
}

.hero-meta span:last-child {
    border-right: none;
}

.status-dot {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.6);
    animation: statusPulse 1.6s ease-in-out infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
        opacity: 1;
    }
    70% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
        opacity: 0.85;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot {
        animation: none;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 16px;
}

.feature-card {
    background: var(--owf-card);
    border: 1px solid var(--owf-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    animation: fadeUp 0.6s ease;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.check-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.check-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 4px;
    background: #22c55e;
}

.owf-card {
    border: 1px solid var(--owf-border);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.terms-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: #0b1422;
    color: #f8fafc;
    padding: 0.75rem 0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.35);
}

.terms-banner .btn {
    font-weight: 600;
}

.link-muted {
    color: #94a3b8;
}

.link-muted:hover,
.link-muted:focus {
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .terms-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 12px;
}

.code-block code {
    color: #e2e8f0;
}

.change-card {
    background: #f8fafc;
    border: 1px dashed var(--owf-border);
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
}

.owf-calendar-today {
    background: var(--owf-today);
}

.diff-view {
    background: #0b1422;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

.diff-line {
    white-space: pre-wrap;
    word-break: break-word;
    padding: 0.05rem 0.4rem;
    border-radius: 6px;
}

.diff-add {
    background: rgba(34, 197, 94, 0.2);
    color: #dcfce7;
    border-left: 3px solid #22c55e;
}

.diff-del {
    background: rgba(239, 68, 68, 0.2);
    color: #fee2e2;
    border-left: 3px solid #ef4444;
}

.sticky-card {
    position: sticky;
    top: 1.5rem;
}

.owf-footer {
    border-top: 1px solid var(--owf-border);
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control, .form-select {
    color: var(--owf-ink);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .sticky-card {
        position: static;
    }
    .hero-card {
        margin-top: 2rem;
    }
}
